summaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks-base.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-04 08:34:29 +0200
committerSven Gothel <[email protected]>2011-08-04 08:34:29 +0200
commit847d4d93f28423d9f4bc1f3c4e02c936f90d0798 (patch)
treeec4b88e9ca9520707a7c45fda6a6c7841348cf92 /make/gluegen-cpptasks-base.xml
parentd522b4dffd5d569c4116275d6ef278bb0741c79d (diff)
Add define '__X11__', is isX11 ; Android attach system include folders via -isystem (which come after -I)
Diffstat (limited to 'make/gluegen-cpptasks-base.xml')
-rwxr-xr-xmake/gluegen-cpptasks-base.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/make/gluegen-cpptasks-base.xml b/make/gluegen-cpptasks-base.xml
index dd7f1cf..e7af64c 100755
--- a/make/gluegen-cpptasks-base.xml
+++ b/make/gluegen-cpptasks-base.xml
@@ -317,6 +317,7 @@
<and>
<isfalse value="${isWindows}" />
<isfalse value="${isOSX}" />
+ <isfalse value="${isAndroid}" />
<isfalse value="${noX11}" />
</and>
</condition>
@@ -600,6 +601,7 @@
<compiler id="compiler.cfg.freebsd" name="gcc">
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="FREEBSD" />
<define name="BSD" />
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -611,6 +613,7 @@
<compiler id="compiler.cfg.linux" name="gcc">
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -621,6 +624,7 @@
<compilerarg value="-m32"/>
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -632,6 +636,7 @@
<compilerarg value="-m64"/>
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -641,15 +646,21 @@
<compiler id="compiler.cfg.linux.armv7" name="gcc">
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
</defineset>
</compiler>
+ <compiler id="compiler.cfg.android" name="gcc">
+ <!-- shall be defined in custom ${gluegen-cpptasks.file} ! -->
+ </compiler>
+
<compiler id="compiler.cfg.freebsd" name="gcc">
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="FREEBSD" />
<define name="BSD" />
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -669,6 +680,7 @@
<compilerarg value="+W942,129"/>
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<!-- aCC doesn't seem to define a generic system macro, a la
"__sun". The documentation claims it defines the following,
but don't seem to work: __HP_aCC, __LP64__, __RISC_0__.
@@ -688,6 +700,7 @@
<compiler id="compiler.cfg.solaris" name="gcc">
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -701,6 +714,7 @@
<compilerarg value="-xarch=v9a" />
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -715,6 +729,7 @@
<compilerarg value="-xcache=64/64/2:1024/64/16" />
<defineset>
<define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>
<define name="NDEBUG" unless="c.compiler.use-debug"/>
@@ -834,6 +849,10 @@
<linker id="linker.cfg.linux.armv7" name="gcc">
</linker>
+ <compiler id="linker.cfg.android" name="gcc">
+ <!-- shall be defined in custom ${gluegen-cpptasks.file} ! -->
+ </compiler>
+
<linker id="linker.cfg.hpux" name="aCC">
</linker>