Permalink
Browse files

Support Xcode in custom locations in the Ant build.

Mainly so that Xcode 3 (which would typically be somewhere other than
/Developer on Lion) can still be used to compile Poedit.
  • Loading branch information...
1 parent d203963 commit 175eed5ec961fc40a8a0bd64de2f6517501602ad @vslavik committed with Oct 8, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 build.properties
View
@@ -3,6 +3,7 @@ poedit.version=1.5beta1
# Set this to sign binaries
#codesign.identity=
+poedit.osx.xcoderoot=/Developer
poedit.osx.sdk=10.6
poedit.osx.deploy=10.5
poedit.osx.arch.native=i386
@@ -14,9 +15,9 @@ imagemagick.convert=convert.exe
deps.dir=${basedir}/deps
-poedit.osx.sdk.path=/Developer/SDKs/MacOSX${poedit.osx.sdk}.sdk
-poedit.osx.cc=gcc
-poedit.osx.cxx=g++
+poedit.osx.sdk.path=${poedit.osx.xcoderoot}/SDKs/MacOSX${poedit.osx.sdk}.sdk
+poedit.osx.cc=${poedit.osx.xcoderoot}/usr/bin/gcc
+poedit.osx.cxx=${poedit.osx.xcoderoot}/usr/bin/g++
poedit.osx.cflags.sdk=-isysroot ${poedit.osx.sdk.path} -mmacosx-version-min=${poedit.osx.deploy}
poedit.osx.ldflags.sdk=${poedit.osx.cflags.sdk} -Wl,-syslibroot,${poedit.osx.sdk.path} -Wl,-macosx_version_min,${poedit.osx.deploy}
poedit.osx.cflags=-O2 -ggdb3 ${poedit.osx.cflags.sdk}

0 comments on commit 175eed5

Please sign in to comment.