-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
32 lines (29 loc) · 957 Bytes
/
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
BUILD_DIR=Build
framework:
rm -rf ${BUILD_DIR}
swift package generate-xcodeproj --skip-extra-files
xcodebuild \
'ENABLE_BITCODE=YES' \
'BITCODE_GENERATION_MODE=bitcode' \
'OTHER_CFLAGS=-fembed-bitcode' \
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES' \
'CONFIGURATION_BUILD_DIR=${BUILD_DIR}' \
-project UnityVideoCreator.xcodeproj \
-scheme UnityVideoCreator-Package \
-configuration Release \
-sdk iphoneos
xcframework: framework
xcodebuild -create-xcframework \
-framework ${BUILD_DIR}/UnityVideoCreator.framework \
-debug-symbols $(CURDIR)/${BUILD_DIR}/UnityVideoCreator.framework.dSYM \
-debug-symbols $(CURDIR)/${BUILD_DIR}/*.bcsymbolmap \
-output ${BUILD_DIR}/UnityVideoCreator.xcframework
lint:
xcrun --sdk macosx \
swift run --package-path ./tools swiftlint \
--config tools/.swiftlint.yml \
autocorrect --format
pwd
xcrun --sdk macosx \
swift run --package-path ./tools swiftlint \
--config tools/.swiftlint.yml