-
Notifications
You must be signed in to change notification settings - Fork 24
/
Android.mk
26 lines (20 loc) · 856 Bytes
/
Android.mk
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
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := GSMBackend
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := GSMBackend
gsmback_root := $(LOCAL_PATH)
gsmback_dir := app
gsmback_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
gsmback_build := $(gsmback_root)/$(gsmback_dir)/build
gsmback_apk := build/outputs/apk/$(gsmback_dir)-release-unsigned.apk
$(gsmback_root)/$(gsmback_dir)/$(gsmback_apk):
rm -Rf $(gsmback_build)
mkdir -p $(gsmback_out)
ln -sf $(gsmback_out) $(gsmback_build)
cd $(gsmback_root)/$(gsmback_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease
LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(gsmback_dir)/$(gsmback_apk)
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)