-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-compile.xml
33 lines (30 loc) · 1.23 KB
/
build-compile.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<project name="boost-compile" default="ignore" basedir=".">
<import file="build-init.xml"/>
<target name="compile">
<macro_compile version="1.5" src.type="edge"/>
<macro_compile version="1.5" src.type="core"/>
<macro_compile version="1.5" src.type="test"/>
<macro_compile version="1.5" src.type="demo"/>
</target>
<macrodef name="macro_compile">
<attribute name="version"/>
<attribute name="src.type"/>
<sequential>
<macro_javac version="@{version}" srcdir="${@{src.type}.src.dir}" destdir="${@{src.type}.class.dir}"
classpathref="@{src.type}.compile.classpath"/>
</sequential>
</macrodef>
<macrodef name="macro_javac">
<attribute name="version"/>
<attribute name="srcdir"/>
<attribute name="destdir"/>
<attribute name="classpathref"/>
<sequential>
<mkdir dir="@{destdir}"/>
<javac source="@{version}" target="@{version}" srcdir="@{srcdir}" destdir="@{destdir}"
classpathref="@{classpathref}"
debug="true"/>
</sequential>
</macrodef>
</project>