<projectname="OS X Native code"basedir="../../bin/lwjgl"default="nativelibrary"><propertyname="native"location="../../src/native"/><targetname="init"><mkdirdir="i386"/><mkdirdir="x86_64"/><propertyenvironment="env"/><!-- Check which gcc we have, newer releasse of Mac OS do not have gcc-4.2 installed by defaault --><availablefile="gcc"filepath="${env.PATH}"property="gcc.name"value="gcc"/><availablefile="gcc-4.2"filepath="${env.PATH}"property="gcc42.name"value="gcc-4.2"/><conditionproperty="gcc"value="${gcc42.name}"else="${gcc.name}"><issetproperty="gcc42.name"/></condition><!-- Ask Xcode for correct path to XCode tools --><!-- Will fail if XCode Command Line Tools are not installed on 10.7+ (Lion) --><execexecutable="xcode-select"outputproperty="developer_path"errorproperty="xcode-select.error"failonerror="false"failifexecutionfails="false"><argvalue="-print-path"/></exec><!-- Default to /Developer if xcode-select fails --><conditionproperty="developer_path"value="/Developer"><issetproperty="xcode-select.error"/></condition><!-- Detect Mac OS X 10.7 SDK in new Xcode path for for Mac OS 10.7+ --><conditionproperty="sdk-10.7"value="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"><availablefile="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"type="dir"/></condition><conditionproperty="javavm-10.7"value="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"><availablefile="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers"type="dir"/></condition><!-- Detect Mac OS X 10.6 SDK copied into new Xcode path for Mac OS 10.7+ --><conditionproperty="sdk-10.6"value="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"><availablefile="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"type="dir"/></condition><conditionproperty="javavm-10.6"value="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"><availablefile="${developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers"type="dir"/></condition><!-- Detect Mac OS X 10.6 SDK in old XCode location for Mac OS 10.6 --><conditionproperty="old.sdk-10.6"value="${developer_path}/SDKs/MacOSx10.6.sdk"><availablefile="${developer_path}/SDKs/MacOSx10.6.sdk"type="dir"/></condition><conditionproperty="old.javavm-10.6"value=""><availablefile="/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers"type="dir"/></condition><!-- Use old JavaVM.framework location if nothing else is available --><conditionproperty="javavmroot"value="${old.javavm-10.6}"><and><issetproperty="old.javavm-10.6"/><not><or><issetproperty="javavm-10.6"/><issetproperty="javavm-10.7"/></or></not></and></condition><!-- Use JavaVM.framework from 10.6 in new Xcode path if available --><conditionproperty="javavmroot"value="${javavm-10.6}"><issetproperty="javavm-10.6"/></condition><!-- Use JavaVM.framework from 10.7 in new Xcode path if available and 10.6 isn't also there --><conditionproperty="javavmroot"value="${javavm-10.7}"><and><issetproperty="javavm-10.7"/><not><issetproperty="javavm-10.6"/></not></and></condition><!-- Use MacOS SDK 10.6 from /Developer if nothing else is available --><conditionproperty="sdkroot"value="${old.sdk-10.6}"><and><issetproperty="old.sdk-10.6"/><not><or><issetproperty="sdk-10.6"/><issetproperty="sdk-10.7"/></or></not></and></condition><!-- Use MacOS SDK 10.6 from new Xcode location if available --><conditionproperty="sdkroot"value="${sdk-10.6}"><issetproperty="sdk-10.6"/></condition><!-- Use MacOS SD