-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.iOS
More file actions
55 lines (44 loc) · 2.24 KB
/
Makefile.iOS
File metadata and controls
55 lines (44 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
################################################################
# iOS rules
################################################################
# Some magic to control which versions of iOS we try to build. N.b. you may
# also need to modify the buildbot configuration
IPHONEOS_VERSIONS ?= 11.2 12.1 13.2 14.4 14.5
IPHONESIMULATOR_VERSIONS ?= 11.2 12.1 13.2 14.4 14.5
SKIP_IPHONEOS_VERSIONS ?= 9.2 10.2
SKIP_IPHONESIMULATOR_VERSIONS ?= 6.1 7.1 8.2 9.2 10.2
IOS_SDKS ?= \
$(addprefix iphoneos,$(IPHONEOS_VERSIONS)) \
$(addprefix iphonesimulator,$(IPHONESIMULATOR_VERSIONS))
all-ios-%:
$(MAKE) config-ios-$*
$(MAKE) compile-ios-$*
config-ios-%:
./config.sh --platform ios --generator-output build-ios-$*/livecode -Dtarget_sdk=$*
compile-ios-%:
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default
check-ios-%:
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
# Dummy targets to prevent our build system from building old iOS simulators+devices
$(addprefix config-ios-iphonesimulator,$(SKIP_IPHONESIMULATOR_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
$(addprefix compile-ios-iphonesimulator,$(SKIP_IPHONESIMULATOR_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
$(addprefix check-ios-iphonesimulator,$(SKIP_IPHONESIMULATOR_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
$(addprefix config-ios-iphonesimulator,$(SKIP_IPHONEOS_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
$(addprefix compile-ios-iphonesimulator,$(SKIP_IPHONEOS_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
$(addprefix check-ios-iphonesimulator,$(SKIP_IPHONEOS_VERSIONS)):
# @echo "Skipping $@ (no longer supported)"
# Provide some synonyms for "latest iOS SDK"
$(addsuffix -ios-iphoneos,all config compile check): %: %$(lastword $(IPHONEOS_VERSIONS))
@true
$(addsuffix -ios-iphonesimulator,all config compile check): %: %$(lastword ($IPHONESIMULATOR_VERSIONS))
@true
all_ios_subplatforms = iphoneos iphonesimulator $(IOS_SDKS)
all-ios: $(addprefix all-ios-,$(IOS_SDKS))
config-ios: $(addprefix config-ios-,$(IOS_SDKS))
compile-ios: $(addprefix compile-ios-,$(IOS_SDKS))
check-ios: $(addprefix check-ios-,$(IOS_SDKS))