summaryrefslogtreecommitdiffstats
path: root/make/gluegen-properties.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-11 00:26:31 +0200
committerSven Gothel <[email protected]>2014-06-11 00:26:31 +0200
commit65cbb89d04936df2f385d32d1649abaa4da4581c (patch)
treec7f8e3ce761b3cec6a28646597c8f5ffa36a85a0 /make/gluegen-properties.xml
parentaddb639e6dde90519f772a66222eb86107b35176 (diff)
OSX Build: Default gcc.compat.compiler=xcode.clang ; Remove explicit xcode.clang property files
Diffstat (limited to 'make/gluegen-properties.xml')
-rwxr-xr-xmake/gluegen-properties.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/make/gluegen-properties.xml b/make/gluegen-properties.xml
index 7e51e0a..8038de3 100755
--- a/make/gluegen-properties.xml
+++ b/make/gluegen-properties.xml
@@ -7,7 +7,7 @@
- externally:
-
- gcc.compat.compiler
- - either "gcc" (default) or "clang"
+ - either "gcc" (default), "clang" or "xcode.clang" (default for OSX)
-
- win32.c.compiler (required to be set on Windows):
- one of "vc6", "vc7", "vc8", "mingw32" (default) or "mingw64".
@@ -49,6 +49,7 @@
<property name="gluegen.user.properties.file.set" value="${gluegen.user.properties.file}"/>
<property file="${gluegen.user.properties.file.set}" />
<echo message="Loaded ${gluegen.user.properties.file.set}." />
+ <echo message="Setting defaults:" />
<property name="antlr.jar" value="${gluegen.root}/make/lib/antlr.jar" />
<property name="junit.jar" value="${gluegen.root}/make/lib/junit.jar" />
<property name="ant.jar" value="${ant.home}/lib/ant.jar" />
@@ -85,7 +86,14 @@
<property name="ant-junit-all.apk" value="${gluegen.root}/make/lib/ant-junit-all.apk" />
<!-- maybe overriden, e.g. with "clang" -->
- <property name="gcc.compat.compiler" value="gcc"/>
+ <echo message="Setting default gcc.compat.compiler" />
+ <condition property="gcc.compat.compiler" value="xcode.clang"> <!-- default for OSX -->
+ <and>
+ <os family="mac"/>
+ <os family="unix"/>
+ </and>
+ </condition>
+ <property name="gcc.compat.compiler" value="gcc"/> <!-- default for all others .. -->
<echo message="gcc.compat.compiler=${gcc.compat.compiler}" />
<condition property="win32.c.compiler" value="mingw64">