-
-
Save douyw/4578856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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