-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
109 lines (88 loc) · 2.72 KB
/
Makefile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
APP_NAME=Bucketeer
BUILD_SETTINGS ?= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
CONFIGURATION ?= Debug
SCHEME ?= $(APP_NAME)
DEVICE ?= "iPhone\ 15"
XCODEBUILD=xcodebuild
OPTIONS=\
-project $(APP_NAME).xcodeproj \
-scheme $(SCHEME)
EXAMPLE_OPTIONS=\
-project $(APP_NAME).xcodeproj \
-scheme Example
DESTINATION=-destination "name=$(DEVICE)"
CLEAN=rm -rf build
SHOW_BUILD_SETTINGS=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
-showBuildSettings
BUILD=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
build
BUILD_FOR_TESTING=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
build-for-testing
TEST_WITHOUT_BUILDING=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
-skip-testing:BucketeerTests/E2EBKTClientForceUpdateTests \
-skip-testing:BucketeerTests/E2EEvaluationTests \
-skip-testing:BucketeerTests/E2EEventTests \
-skip-testing:BucketeerTests/E2EMetricsEventTests \
test-without-building
E2E_WITHOUT_BUILDING=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
-only-testing:BucketeerTests/E2EBKTClientForceUpdateTests \
-only-testing:BucketeerTests/E2EEvaluationTests \
-only-testing:BucketeerTests/E2EEventTests \
-only-testing:BucketeerTests/E2EMetricsEventTests \
test-without-building E2E_API_ENDPOINT=$(E2E_API_ENDPOINT) E2E_API_KEY=$(E2E_API_KEY)
ALL_TEST_WITHOUT_BUILDING=$(XCODEBUILD) $(BUILD_SETTINGS) $(OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
test-without-building
BUILD_EXAMPLE=$(XCODEBUILD) $(BUILD_SETTINGS) $(EXAMPLE_OPTIONS) $(DESTINATION) \
-configuration $(CONFIGURATION) \
build
.PHONY: clean
clean:
$(CLEAN)
.PHONY: settings
settings:
$(SHOW_BUILD_SETTINGS)
.PHONY: build
build:
$(BUILD)
.PHONY: build-for-testing
build-for-testing:
$(BUILD_FOR_TESTING)
.PHONY: install-mint
install-mint:
./hack/mint.sh --install
.PHONY: bootstrap-mint
bootstrap-mint:
./hack/mint.sh --bootstrap
.PHONY: run-lint
run-lint:
./hack/lint.sh --run
.PHONY: test-without-building
test-without-building:
$(TEST_WITHOUT_BUILDING)
.PHONY: e2e-without-building
e2e-without-building:
$(E2E_WITHOUT_BUILDING)
.PHONY: all-test-without-building
all-test-without-building:
$(ALL_TEST_WITHOUT_BUILDING)
.PHONY: build-example
build-example:
$(BUILD_EXAMPLE)
.PHONY: environment-setup
environment-setup:
./hack/environment-setup.sh
.PHONY: generate-project-file
generate-project-file:
./hack/xcodegen.sh --generate
.PHONY: create-xcframework-zip
create-xcframework-zip:
./hack/create-xcframework.sh --zip
.PHONY: sort-proj
sort-proj:
./hack/sort-Xcode-project-file $(APP_NAME).xcodeproj