aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake/gluegen-cpptasks.xml16
-rwxr-xr-xmake/gluegen.properties6
2 files changed, 18 insertions, 4 deletions
diff --git a/make/gluegen-cpptasks.xml b/make/gluegen-cpptasks.xml
index 484cb0a..0e9f6af 100755
--- a/make/gluegen-cpptasks.xml
+++ b/make/gluegen-cpptasks.xml
@@ -19,6 +19,10 @@
- c.compiler.debug:
- set to "true" if debug version of the compiled
- C code is desired.
+ - macosppc:
+ - set to "true" if ppc universal / fat binaries are desired
+ - on Mac OS X. Requires support for cross-compilation from the
+ - underlying C compiler. Note: Unsupported on Snow Leopard!
- macosx64:
- set to "true" if 64-bit universal / fat binaries are desired
- on Mac OS X. Requires support for cross-compilation from the
@@ -141,6 +145,9 @@
</and>
</condition>
<!-- Need a way to be able to disable the macosx64 property specification in a build.xml -->
+ <condition property="use.macosppc">
+ <istrue value="${macosppc}" />
+ </condition>
<condition property="use.macosx64">
<istrue value="${macosx64}" />
</condition>
@@ -546,8 +553,9 @@
</compiler>
<compiler id="compiler.cfg.macosx" name="gcc">
- <compilerarg value="-arch" />
- <compilerarg value="ppc" />
+ <!-- Note: Apple doesn't seem to provide ppc binaries on Snow Leopard -->
+ <compilerarg value="-arch" if="use.macosppc"/>
+ <compilerarg value="ppc" if="use.macosppc"/>
<compilerarg value="-arch" />
<compilerarg value="i386" />
<compilerarg value="-arch" if="use.macosx64"/>
@@ -622,8 +630,8 @@
</linker>
<linker id="linker.cfg.macosx" name="gcc">
- <linkerarg value="-arch" />
- <linkerarg value="ppc" />
+ <linkerarg value="-arch" if="use.macosppc"/>
+ <linkerarg value="ppc" if="use.macosppc"/>
<linkerarg value="-arch" />
<linkerarg value="i386" />
<linkerarg value="-arch" if="use.macosx64"/>
diff --git a/make/gluegen.properties b/make/gluegen.properties
index bc5af68..c8756ea 100755
--- a/make/gluegen.properties
+++ b/make/gluegen.properties
@@ -28,4 +28,10 @@ antlr.jar=C:/Users/kbr/ANTLR/antlr-2.7.2/antlr.jar
# x86_64 code, uncomment the property below
# macosx64=true
+# If you are building on a Mac OS X system supporting
+# cross-compilation and want to generate fat binaries containing
+# ppc code, uncomment the property below.
+# Note: Unsupported on Snow Leopard!
+# macosppc=true
+
#user.compiler.import="${user.home}/gluegen.compiler.xml"