Skip to content

Instantly share code, notes, and snippets.

@douyw
Forked from rowanj/user-config.jam
Created January 20, 2013 14:00
Show Gist options
  • Save douyw/4578856 to your computer and use it in GitHub Desktop.
Save douyw/4578856 to your computer and use it in GitHub Desktop.
local xcCLANG = [ SHELL "xcrun -sdk iphoneos -f clang" ] ;
local CLANG = [ MATCH "([^
]*)" : $(xcCLANG) ] ;
ECHO "CLANG = $(CLANG)" ;
local xcDEVDIR = [ SHELL "xcode-select --print-path" ] ;
local DEVDIR = [ MATCH "([^
]*)" : $(xcDEVDIR) ] ;
ECHO "DEVDIR = $(DEVDIR)" ;
local EXTRA_CXX_FLAGS = "-g -fvisibility=hidden -fvisibility-inlines-hidden" ;
local IPHONE_CXX_FLAGS = "-miphoneos-version-min=5.0" ;
local IOS_SIMULATOR_CXX_FLAGS = "-mios-simulator-version-min=5.0" ;
using darwin :
: $(CLANG)
: <cxxflags>$(EXTRA_CXX_FLAGS)
;
using darwin : 6.0~iphone
: $(CLANG) -arch armv6 -arch armv7 -arch armv7s
: <cxxflags>$(IPHONE_CXX_FLAGS) <root>$(DEVDIR)/Platforms/iPhoneOS.platform/Developer <macosx-version>iphone-6.0 <target-os>iphone
;
using darwin : 6.0~iphonesim
: $(CLANG) -arch i386
: <cxxflags>$(IOS_SIMULATOR_CXX_FLAGS) <root>$(DEVDIR)/Platforms/iPhoneSimulator.platform/Developer <macosx-version>iphonesim-6.0 <target-os>iphone
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment