forked from microg/IchnaeaNlpBackend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
26 lines (20 loc) · 818 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 := IchnaeaNlpBackend
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := IchnaeaNlpBackend
ichnaea_root := $(LOCAL_PATH)
ichnaea_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
ichnaea_build := $(ichnaea_root)/build
ichnaea_apk := build/outputs/apk/IchnaeaNlpBackend-release-unsigned.apk
$(ichnaea_root)/$(ichnaea_apk):
rm -Rf $(ichnaea_build)
mkdir -p $(ichnaea_out)
mkdir -p $(ichnaea_build)
ln -sf $(ichnaea_out) $(ichnaea_build)
cd $(ichnaea_root) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ./gradlew assembleRelease
LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(ichnaea_apk)
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)