diff options
Diffstat (limited to 'ios/qa/sc/Makefile')
-rw-r--r-- | ios/qa/sc/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/ios/qa/sc/Makefile b/ios/qa/sc/Makefile index 2081346c35ca..1300785ecc22 100644 --- a/ios/qa/sc/Makefile +++ b/ios/qa/sc/Makefile @@ -1,8 +1,21 @@ include ../../../config_host.mk +APP=lo-qa-sc-filters-test + +# If run from Xcode, check the CURRENT_ARCH env var for which platform we are +# building, device or simulator + +ifeq ($(CURRENT_ARCH),i386) +PLATFORM=iphonesimulator +else +PLATFORM=iphoneos +endif + +APPDIR=build/Debug-$(PLATFORM)/$(APP).app + # Stuff lifted from solenv/gbuild/platform/IOS_ARM_GCC.mk -gb_OBJC_OBJCXX_COMMON_FLAGS := -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 +gb_OBJC_OBJCXX_COMMON_FLAGS := -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -g gb_OBJCFLAGS := -x objective-c $(gb_OBJC_OBJCXX_COMMON_FLAGS) gb_OBJCXXFLAGS := -x objective-c++ $(gb_OBJC_OBJCXX_COMMON_FLAGS) @@ -13,9 +26,6 @@ gb_Library__FRAMEWORKS := \ CoreText \ UIKit \ -APP=lo-qa-sc-filters-test -APPDIR=$(APP).app - SRCS = filters-test.m CFLAGS = $(SOLARINC) |