Files
Upsilon/build/toolchain.ios.mak
Romain Goyet d70bad84f3 Rename the scripts folder to build
And the build folder to output
2019-09-18 17:46:38 +02:00

29 lines
706 B
Makefile

ifdef ARCH
CC = $(shell xcrun --sdk $(IOS_PLATFORM) --find clang)
CXX = $(shell xcrun --sdk $(IOS_PLATFORM) --find clang++)
LD = $(shell xcrun --sdk $(IOS_PLATFORM) --find clang++)
SYSROOT = $(shell xcrun --sdk $(IOS_PLATFORM) --show-sdk-path)
SFLAGS += -arch $(ARCH)
SFLAGS += -isysroot $(SYSROOT)
SFLAGS += -fPIC
SFLAGS += -miphoneos-version-min=$(IOS_MIN_VERSION)
LDFLAGS += -arch $(ARCH)
LDFLAGS += -isysroot $(SYSROOT)
LDFLAGS += -miphoneos-version-min=$(IOS_MIN_VERSION)
else
CC = false
CXX = false
LD = false
endif
ACTOOL = $(shell xcrun --sdk $(IOS_PLATFORM) --find actool)
IBTOOL = $(shell xcrun --sdk $(IOS_PLATFORM) --find ibtool)
LIPO = $(shell xcrun --sdk $(IOS_PLATFORM) --find lipo)