代码拉取完成,页面将自动刷新
#
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。