2 Star 0 Fork 1

vvashington / handycipher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 3.66 KB
一键复制 编辑 原始数据 按行查看 历史
wangshudong 提交于 2018-05-23 16:38 . 调通浏览器插件数据同步
#
# Environment variables for overriding default behavior.
#
ifndef ANDROID_NDK_HOME
ANDROID_NDK_HOME = $(abspath $(dir $(realpath $(shell which ndk-build))))
endif
#
# Global targets.
#
all: djinni example_ios example_android example_localhost test
clean:
-ndk-build -C example/android/app/ clean
-xcodebuild -workspace example/objc/TextSort.xcworkspace -scheme TextSort -configuration 'Debug' -sdk iphonesimulator clean
-rm -rf example/android/libs/arm64-v8a/libmx_jni.so
-rm -rf example/android/libs/armeabi/libmx_jni.so
-rm -rf example/android/libs/armeabi-v7a/libmx_jni.so
-rm -rf example/android/libs/mips/libmx_jni.so
-rm -rf example/android/libs/mips64/libmx_jni.so
-rm -rf example/android/libs/x86/libmx_jni.so
-rm -rf example/android/libs/x86_64/libmx_jni.so
-rm -rf obj/
-rm -rf build_ios/
-rm -rf example/djinni-output-temp/
-rm -rf example/generated-src/
-rm -f GypAndroid.mk
# rule to lazily clone gyp
# freeze gyp at the last version with android support
./deps/gyp:
git clone https://chromium.googlesource.com/external/gyp ./deps/gyp
cd deps/gyp && git checkout -q 0bb67471bca068996e15b56738fa4824dfa19de0
#echo "copy file now."
djinni:
cd src && ./build
# we specify a root target for android to prevent all of the targets from spidering out
GypAndroid.mk: ./deps/gyp example/libmx.gyp support-lib/support_lib.gyp example/djinni/mx.djinni
./example/run_djinni.sh
ANDROID_BUILD_TOP=$(ANDROID_NDK_HOME) deps/gyp/gyp --depth=. -f android -DOS=android -Icommon.gypi example/libmx.gyp --root-target=libmx_jni
# we specify a root target for android to prevent all of the targets from spidering out
ios_proj: ./deps/gyp example/libmx.gyp support-lib/support_lib.gyp example/djinni/mx.djinni
./example/run_djinni.sh
deps/gyp/gyp --depth=. -f xcode -DOS=ios --generator-output ./build_ios -Icommon.gypi example/libmx.gyp
#ios: ios_proj
# xcodebuild -workspace example/ios/CTB/CTB.xcworkspace \
# -scheme CTB \
# -configuration 'Debug' \
# -sdk iphonesimulator \
# -destination 'platform=iOS Simulator,name=iPhone 5,OS=10.2'
ios: ios_proj
xcodebuild archive -workspace example/ios/CTB/CTB.xcworkspace \
-scheme CTB \
-configuration 'Debug' \
-archivePath ./output
xcodebuild -exportArchive -archivePath ./output.xcarchive \
# -exportPath ctb -exportFormat ipa
-exportProvisioningProfile "Prof_dev_enter_com_yqj_test_fp"
ios_release: ios_proj
xcodebuild archive -workspace example/ios/CTB/CTB.xcworkspace \
-scheme CTB \
-configuration 'Release' \
-archivePath ./output
xcodebuild -exportArchive -archivePath ./output.xcarchive \
# -exportPath ctb -exportFormat ipa
-exportProvisioningProfile "Prof_dis_enter_com_yqj_test_fp"
#for inner test release version,this should chang the package name space.
ios_inner: ios_proj
xcodebuild archive -workspace example/ios/CTB/CTB.xcworkspace \
-scheme CTB \
-configuration 'Release' \
-archivePath ./output
xcodebuild -exportArchive -archivePath ./output.xcarchive \
-exportPath ctb -exportFormat ipa \
-exportProvisioningProfile "Pro_Dis_Enter_CTB"
# this target implicitly depends on GypAndroid.mk since gradle will try to make it
android: GypAndroid.mk
cd example/android/ && ./gradlew app:assembleDebug
@echo "Apks produced at:"
@python example/glob.py example/ '*.apk'
android_release: GypAndroid.mk
cd example/android/ && ./gradlew app:assembleRelease
@echo "Apks produced at:"
@python example/glob.py example/ '*.apk'
example_localhost: ./deps/java
cd example && make localhost
test: ./deps/java
make -C test-suite
.PHONY: example_android example_ios example_localhost test djinni clean all
1
https://gitee.com/wsd_card_admin/handycipher.git
git@gitee.com:wsd_card_admin/handycipher.git
wsd_card_admin
handycipher
handycipher
master

搜索帮助