-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 loc) · 2.35 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
djinni: djinni/lapse.djinni gearsbox/djinni/gearsbox.djinni gearsbox/djinni/ui.djinni
-rm -rf generated-src
cd gearsbox/ && make djinni
sh ./run_djinni.sh
ios_proj: djinni lapse.gyp ./gearsbox/deps/djinni/support-lib/support_lib.gyp
./gearsbox/deps/gyp/gyp --depth=. -f xcode -DOS=ios --generator-output ./ios/build_ios -Igearsbox/deps/djinni/common.gypi ./lapse.gyp --root-target=lapse_objc
ios: ios_proj
xcodebuild -workspace ios/lapse.xcworkspace \
-scheme gearsbox \
-configuration 'Debug' \
-sdk iphonesimulator
android_proj: djinni lapse.gyp ./gearsbox/deps/djinni/support-lib/support_lib.gyp djinni/lapse.djinni
sh ./run_djinni.sh
ANDROID_BUILD_TOP=$(shell dirname `which ndk-build`) ./gearsbox/deps/gyp/gyp --depth=. -f android -DOS=android -Igearsbox/deps/djinni/common.gypi ./lapse.gyp --root-target=lapse_jni
.PHONY: android
android:
cd android/lapse/ && chmod +x gradlew &&./gradlew app:assembleRelease
cp android/lapse/app/build/outputs/apk/app-armv7-release.apk android/lapse-`date +%Y%m%d-%H%M`-armv7.apk
cp android/lapse/app/build/outputs/apk/app-armv64-release.apk android/lapse-`date +%Y%m%d-%H%M`-arm64.apk
cp android/lapse/app/build/outputs/apk/app-fat-release.apk android/lapse-`date +%Y%m%d-%H%M`-fat.apk
cp android/lapse/app/build/outputs/apk/app-x64-release.apk android/lapse-`date +%Y%m%d-%H%M`-x64.apk
cp android/lapse/app/build/outputs/apk/app-arm-release.apk android/lapse-`date +%Y%m%d-%H%M`-arm.apk
@echo "Apks produced at:"
@python ./gearsbox/deps/djinni/example/glob.py ./ '*.apk'
ndk_build: GypAndroid.mk android/jni/Android.mk android/jni/Application.mk
sh ./ndk_build.sh
clean_ios:
-rm -rf build
-xcodebuild -workspace ios/lapse.xcworkspace \
-scheme gearsbox \
-configuration 'Debug' \
-sdk iphonesimulator clean
clean_android:
#-rm -f GypAndroid.mk
-rm -rf android/lapse/build
-rm -rf android/lapse/app/build
clean: clean_ios clean_android
deps:
git submodule add https://github.com/oldmannt/gearsbox_client.git gearsbox
mac_proj: djinni lapse.gyp ./gearsbox/deps/djinni/support-lib/support_lib.gyp
gearsbox/deps/gyp/gyp --depth=. -f xcode -DOS=mac --generator-output ./build_mac -Igearsbox/deps/djinni/common.gypi ./lapse.gyp --root-target lapse_objc --root-target test --root-target gtest
test: mac_proj
xcodebuild -project build_mac/lapse.xcodeproj -configuration Debug -target test | cat && ./build/Debug/test