-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (52 loc) · 2.53 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
PODS_ROOT="./ios/Example/Pods"
PODS_PROJECT="$(PODS_ROOT)/Pods.xcodeproj"
SYMROOT="$(PODS_ROOT)/Build"
IPHONEOS_DEPLOYMENT_TARGET = 13.4
build-cocoapods:
@xcodebuild -project "$(PODS_PROJECT)" \
-sdk iphoneos \
-configuration Release -target Yoga \
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$(SYMROOT)" \
CLANG_ENABLE_MODULE_DEBUGGING=NO \
BITCODE_GENERATION_MODE=bitcode \
IPHONEOS_DEPLOYMENT_TARGET="$(IPHONEOS_DEPLOYMENT_TARGET)" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
@xcodebuild -project "$(PODS_PROJECT)" \
-sdk iphonesimulator \
-configuration Release -target Yoga \
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$(SYMROOT)" \
CLANG_ENABLE_MODULE_DEBUGGING=NO \
BITCODE_GENERATION_MODE=bitcode \
IPHONEOS_DEPLOYMENT_TARGET="$(IPHONEOS_DEPLOYMENT_TARGET)" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
@xcodebuild -project "$(PODS_PROJECT)" \
-sdk iphoneos \
-configuration Release -target YogaKit \
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$(SYMROOT)" \
CLANG_ENABLE_MODULE_DEBUGGING=NO \
BITCODE_GENERATION_MODE=bitcode \
IPHONEOS_DEPLOYMENT_TARGET="$(IPHONEOS_DEPLOYMENT_TARGET)" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
@xcodebuild -project "$(PODS_PROJECT)" \
-sdk iphonesimulator \
-configuration Release -target YogaKit \
ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=NO SYMROOT="$(SYMROOT)" \
CLANG_ENABLE_MODULE_DEBUGGING=NO \
BITCODE_GENERATION_MODE=bitcode \
IPHONEOS_DEPLOYMENT_TARGET="$(IPHONEOS_DEPLOYMENT_TARGET)" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
build-xcframeworks: build-cocoapods
@rm -rf ./ios/xcframeworks
@xcodebuild -create-xcframework \
-framework $(PODS_ROOT)/$(PODS_ROOT)/Build/Release-iphonesimulator/Yoga/yoga.framework \
-framework $(PODS_ROOT)/$(PODS_ROOT)/Build/Release-iphoneos/Yoga/yoga.framework \
-output ./ios/xcframeworks/yoga.xcframework
@xcodebuild -create-xcframework \
-framework $(PODS_ROOT)/$(PODS_ROOT)/Build/Release-iphonesimulator/YogaKit/YogaKit.framework \
-framework $(PODS_ROOT)/$(PODS_ROOT)/Build/Release-iphoneos/YogaKit/YogaKit.framework \
-output ./ios/xcframeworks/YogaKit.xcframework
build-xcframework-archives: build-xcframeworks
@cd ./ios/xcframeworks && zip -r yoga.xcframework.zip yoga.xcframework
@cd ./ios/xcframeworks && zip -r YogaKit.xcframework.zip YogaKit.xcframework
@swift package compute-checksum ./ios/xcframeworks/yoga.xcframework.zip > ./ios/xcframeworks/yoga.xcframework.zip.checksum
@swift package compute-checksum ./ios/xcframeworks/YogaKit.xcframework.zip > ./ios/xcframeworks/YogaKit.xcframework.zip.checksum