OSDN Git Service

Add BuildConfig to allow using gradle compile time fields
[android-x86/packages-apps-Eleven.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_MODULE_TAGS := optional
5
6 LOCAL_SRC_FILES := src/org/lineageos/eleven/IElevenService.aidl
7 LOCAL_SRC_FILES += $(call all-java-files-under, src)
8 LOCAL_SRC_FILES += $(call all-java-files-under, src_aosp)
9
10 LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, res)
11
12 LOCAL_STATIC_JAVA_LIBRARIES := \
13     android-support-v8-renderscript \
14     android-common
15
16 LOCAL_STATIC_ANDROID_LIBRARIES := \
17     android-support-v4 \
18     android-support-v7-appcompat \
19     android-support-v7-cardview \
20     android-support-v7-palette \
21     android-support-v7-recyclerview
22
23 LOCAL_USE_AAPT2 := true
24
25 LOCAL_PACKAGE_NAME := Eleven
26 LOCAL_OVERRIDES_PACKAGES := Music
27
28 LOCAL_PRIVILEGED_MODULE := true
29
30 LOCAL_JNI_SHARED_LIBRARIES := librsjni
31
32 LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.cfg
33 ifeq ($(TARGET_BUILD_VARIANT),user)
34     LOCAL_PROGUARD_ENABLED := obfuscation
35 else
36     LOCAL_PROGUARD_ENABLED := disabled
37 endif
38
39 include $(BUILD_PACKAGE)
40
41 include $(CLEAR_VARS)
42 include $(BUILD_MULTI_PREBUILT)