Skip to content

Commit

Permalink
Create Android.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
daktak authored Nov 11, 2016
1 parent 42b332a commit 60f4fe1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := Nominatem
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := Nominatem

nominatem_root := $(LOCAL_PATH)
nominatem_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
nominatem_build := $(nominatem_root)/build
nominatem_apk := build/outputs/apk/NominatemBackend-release-unsigned.apk

$(nominatem_root)/$(nominatem_apk):
rm -Rf $(nominatem_build)
mkdir -p $(nominatem_out)
mkdir -p $(nominatem_build)
ln -sf $(nominatem_out) $(nominatem_build)
cd $(nominatem_root) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ./gradlew assembleRelease

LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(nominatem_apk)
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)

include $(BUILD_PREBUILT)

0 comments on commit 60f4fe1

Please sign in to comment.