summaryrefslogtreecommitdiffstats
path: root/make/gluegen.compiler.xml
blob: 7d94567475e1a89f66566455cf05a74ea9aa0a0e (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
<?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.user.compiler.file', ie:

        -Dgluegen.user.compiler.file=`pwd`/lib/gluegen.compiler.xml

    or by having such file in your home directory, ie:

        ~/gluegen.compiler.xml
  -->

<project name="GlueGen-cpptasks" basedir="." >

<target name="gluegen.cpptasks.configure.compiler" depends="setup.java.home.dir">
    <compiler id="compiler.cfg.linux" name="gcc">
      <compilerarg value="-m32" />
      <compilerarg value="-Wall" />
      <compilerarg value="-I/devtools/i686-unknown-linux-gnu/include" />
      <compilerarg value="-I/devtools/share/include" />
      <compilerarg value="-I/devtools/i686-unknown-linux-gnu/xfree86-4.3.0-linux-ix86-glibc23/include" />
      <defineset>
        <define name="LINUX" />
      </defineset>
    </compiler>

    <linker id="linker.cfg.linux" name="gcc">
      <linkerarg value="-m32" />
      <linkerarg value="-L/devtools/i686-unknown-linux-gnu/lib" />
      <linkerarg value="-L/devtools/i686-unknown-linux-gnu/xfree86-4.3.0-linux-ix86-glibc23/lib" />
    </linker>
</target>
</project>