0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-30 23:23:01 +00:00

cleaned Android.mk, added symlink to out dir

This commit is contained in:
Simon Wörner 2015-06-30 00:55:30 +02:00
parent 7099a3230e
commit 59731c4009

View file

@ -19,19 +19,22 @@ LOCAL_MODULE := GmsCore
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := GmsCore LOCAL_PACKAGE_NAME := GmsCore
gmscore_dir := $(LOCAL_PATH) module_root := $(LOCAL_PATH)
#gmscore_apk := play-services-core/build/outputs/apk/play-services-core-release-unsigned.apk module_dir := play-services-core
gmscore_apk := play-services-core/build/outputs/apk/play-services-core-debug.apk module_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
module_build := $(module_root)/$(module_dir)/build
module_apk := build/outputs/apk/play-services-core-release-unsigned.apk
$(LOCAL_PATH)/$(gmscore_apk): $(module_root)/$(module_dir)/$(module_apk):
echo "sdk.dir=$(ANDROID_HOME)" > $(gmscore_dir)/local.properties rm -Rf $(module_build)
cd $(gmscore_dir) && git submodule update --recursive --init mkdir -p $(module_out)
cd $(gmscore_dir) && ./gradlew clean ln -s $(module_out) $(module_build)
# cd $(gmscore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ./gradlew assembleRelease echo "sdk.dir=$(ANDROID_HOME)" > $(module_root)/local.properties
cd $(gmscore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ./gradlew assembleDebug cd $(module_root) && git submodule update --recursive --init
cd $(module_root)/$(module_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease
LOCAL_CERTIFICATE := platform LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(gmscore_apk) LOCAL_SRC_FILES := $(module_dir)/$(module_apk)
LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)