OSDN Git Service

Update URLs of native bridge libraries again
[android-x86/packages-apps-Settings.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_SRC_FILES := \
5         $(call all-logtags-files-under, src)
6
7 LOCAL_MODULE := settings-logtags
8
9 include $(BUILD_STATIC_JAVA_LIBRARY)
10
11 # Build the Settings APK
12 include $(CLEAR_VARS)
13
14 LOCAL_PACKAGE_NAME := Settings
15 LOCAL_CERTIFICATE := platform
16 LOCAL_PRIVILEGED_MODULE := true
17 LOCAL_MODULE_TAGS := optional
18 LOCAL_USE_AAPT2 := true
19
20 LOCAL_SRC_FILES := $(call all-java-files-under, src) \
21     $(call all-java-files-under,../../../external/koush/Widgets/Widgets/src) \
22     $(call all-java-files-under,../../../external/koush/Superuser/Superuser/src)
23
24 LOCAL_STATIC_ANDROID_LIBRARIES := \
25     android-support-v4 \
26     android-support-v13 \
27     android-support-v7-appcompat \
28     android-support-v7-cardview \
29     android-support-v7-preference \
30     android-support-v7-recyclerview \
31     android-support-v14-preference
32
33 LOCAL_JAVA_LIBRARIES := \
34     bouncycastle \
35     core-oj \
36     telephony-common \
37     ims-common
38
39 LOCAL_STATIC_JAVA_LIBRARIES := \
40     jsr305 \
41     settings-logtags
42
43 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
44
45 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
46     external/koush/Widgets/Widgets/res \
47     external/koush/Superuser/Superuser/res
48
49 LOCAL_AAPT_INCLUDE_ALL_RESOURCES := true
50
51 LOCAL_AAPT_FLAGS := --auto-add-overlay \
52     --extra-packages com.koushikdutta.superuser:com.koushikdutta.widgets
53
54 ifneq ($(INCREMENTAL_BUILDS),)
55     LOCAL_PROGUARD_ENABLED := disabled
56     LOCAL_JACK_ENABLED := incremental
57     LOCAL_JACK_FLAGS := --multi-dex native
58 endif
59
60 include frameworks/opt/setupwizard/library/common-gingerbread.mk
61 include frameworks/base/packages/SettingsLib/common.mk
62
63 include $(BUILD_PACKAGE)
64
65 # Use the following include to make our test apk.
66 ifeq (,$(ONE_SHOT_MAKEFILE))
67 include $(call all-makefiles-under,$(LOCAL_PATH))
68 endif