blob: ad79c2565ac71d389f8cf4d3b7128515f1cd5c64 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is an example of how to add custom compiler/linker
arguments for a crosscompiler.
You can use such files with setting the property 'gluegen-cpptasks.file', ie:
-Dgluegen-cpptasks.file=`pwd`/lib/gluegen-cpptasks-linux-32bit.xml
In case you want to compile for 32bit on a 64bit machine,
you might also need to set the 'os.arch' to 'x86'.
Example: gluegen/make/make.gluegen.all.linux-x86.sh
-->
<project name="GlueGen-cpptasks" basedir="." >
<import file="../gluegen-cpptasks-base.xml" optional="false" />
<target name="gluegen.cpptasks.configure.compiler" depends="setup.java.home.dir">
<echo message="Custom forced compiler.cfg.linux, linker.cfg.linux" />
<compiler id="compiler.cfg.linux" name="gcc">
<compilerarg value="-m32" />
<compilerarg value="-Wall" />
<compilerarg value="-include"/>
<compilerarg value="${gluegen.root.abs-path}/make/stub_includes/platform/glibc-compat-symbols.h" />
<defineset>
<define name="LINUX" />
</defineset>
</compiler>
<linker id="linker.cfg.linux" name="gcc">
<linkerarg value="-m32" />
</linker>
</target>
<target name="gluegen.cpptasks.declare.compiler" depends="setup.java.home.dir">
<echo message="Custom forced Linux.x86" />
<!--
<property name="isLinux" value="true"/>
<property name="isLinuxX86" value="true"/>
-->
<property name="compiler.cfg.id.base" value="compiler.cfg.linux" />
<property name="linker.cfg.id.base" value="linker.cfg.linux" />
<property name="java.includes.dir.platform" value="${java.includes.dir}/x11" />
<available property="java.lib.dir.platform" value="${java.home.dir}/jre/lib/i386"
file="${java.home.dir}/jre/lib/i386/libjava.so"/>
<available property="java.lib.dir.platform" value="${java.home.dir}/lib/i386"
file="${java.home.dir}/lib/i386/libjava.so"/>
<property name="java.lib.dir.platform" value="${java.home.dir}/lib"/> <!-- new default -->
</target>
</project>
|