/ Android.mk
Android.mk
1 # Copyright (c) 2015 μg Project Team 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH:= $(call my-dir) 16 include $(CLEAR_VARS) 17 18 LOCAL_MODULE := GmsCore 19 LOCAL_MODULE_TAGS := optional 20 LOCAL_PACKAGE_NAME := GmsCore 21 22 gmscore_root := $(LOCAL_PATH) 23 gmscore_dir := play-services-core 24 gmscore_out := $(TARGET_COMMON_OUT_ROOT)/obj/APPS/$(LOCAL_MODULE)_intermediates 25 gmscore_build := $(gmscore_dir)/build 26 gmscore_apk := $(gmscore_build)/outputs/apk/release/play-services-core-release-unsigned.apk 27 28 $(gmscore_root)/$(gmscore_apk): 29 rm -Rf $(gmscore_root)/$(gmscore_build) 30 mkdir -p $(ANDROID_BUILD_TOP)/$(gmscore_out) 31 ln -s $(ANDROID_BUILD_TOP)/$(gmscore_out) $(ANDROID_BUILD_TOP)/$(gmscore_root)/$(gmscore_build) 32 echo "sdk.dir=$(ANDROID_HOME)" > $(gmscore_root)/local.properties 33 cd $(gmscore_root) && git submodule update --recursive --init 34 cd $(gmscore_root)/$(gmscore_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease 35 36 LOCAL_CERTIFICATE := platform 37 LOCAL_SRC_FILES := $(gmscore_apk) 38 LOCAL_MODULE_CLASS := APPS 39 LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) 40 41 include $(BUILD_PREBUILT)