diff options
author | Michael Bien <[email protected]> | 2009-11-20 14:59:55 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-20 14:59:55 +0100 |
commit | 8d92b2e1fa285f10e9f8703a8686e607dcc0f08b (patch) | |
tree | 634391c1f6836395fc6783c7fbd4cbb2bde762c7 /make/build.xml | |
parent | 129e783741d91e9ee5cd7da5d5c962c32ec96b0b (diff) |
preparations for continuous builds and cross compilation (WIP).
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/make/build.xml b/make/build.xml index 7b5f073..7832aea 100755 --- a/make/build.xml +++ b/make/build.xml @@ -329,7 +329,8 @@ <msvc.manifest objdir="${build}/obj" dllname="gluegen-rt" /> </target> - <target name="c.build" depends="c.configure" unless="build.javaonly" > + <target name="c.build" depends="init, c.configure" unless="build.javaonly" > + <fail message="Requires '${c.compiler.src.files.os}'" unless="c.compiler.src.files.os"/> <fail message="Requires '${compiler.cfg.id}'" unless="compiler.cfg.id"/> <fail message="Requires '${linker.cfg.id}'" unless="linker.cfg.id"/> @@ -344,7 +345,10 @@ <condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition> - <mkdir dir="${build}/obj" /> + <!--namespace can be overwritten from outside--> + <property name="namespace" value=""/> + + <mkdir dir="${build}/obj/${namespace}" /> <property name="c.compiler.src.files.common" value="src/native/common/*.c" /> @@ -352,8 +356,8 @@ <echo message="user.dir=${user.dir}" /> <cc outtype="shared" - objdir="${build}/obj" - outfile="${build}/obj/${output.lib.name}" + objdir="${build}/obj/${namespace}" + outfile="${build}/obj/${namespace}/${output.lib.name}" optimize="${c.compiler.optimise}" debug="${c.compiler.debug}" multithreaded="true" @@ -399,7 +403,7 @@ </jar> </target> - <target name="build.nativelibrary" unless="build.javaonly" > + <target name="build.nativelibrary" depends="init" unless="build.javaonly" > <antcall target="c.build" inheritRefs="true" /> </target> |