-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.mk
42 lines (29 loc) · 1.44 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_JAVA_LIBRARIES := bouncycastle telephony-common
LOCAL_STATIC_JAVA_LIBRARIES := guava android-support-v4 jsr305
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
BLUETOOTH_SRC := \
src/com/android/settings/bluetooth \
BLUETOOTH_MSM_SRC := \
src/com/android/settings/bluetooth_msm \
ifeq ($(BOARD_HAVE_BLUETOOTH_BLUEZ), true)
LOCAL_SRC_FILES := $(filter-out \
$(call find-other-java-files, $(BLUETOOTH_SRC)) \
,$(LOCAL_SRC_FILES))
else
LOCAL_SRC_FILES := $(filter-out \
$(call find-other-java-files, $(BLUETOOTH_MSM_SRC)) \
,$(LOCAL_SRC_FILES))
endif
LOCAL_PACKAGE_NAME := Settings
LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_AAPT_INCLUDE_ALL_RESOURCES := true
LOCAL_AAPT_FLAGS := --extra-packages com.koushikdutta.superuser:com.koushikdutta.widgets --auto-add-overlay
LOCAL_SRC_FILES += $(call all-java-files-under,../../../external/koush/Superuser/Superuser/src) $(call all-java-files-under,../../../external/koush/Widgets/Widgets/src)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res $(LOCAL_PATH)/../../../external/koush/Widgets/Widgets/res $(LOCAL_PATH)/../../../external/koush/Superuser/Superuser/res
include $(BUILD_PACKAGE)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))