OSDN Git Service

3197abddb7a39afd89f770fa9ca97645de5ce568
[android-x86/frameworks-base.git] / packages / DocumentsUI / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_MODULE_TAGS := optional
5
6 LOCAL_SRC_FILES := $(call all-java-files-under, src)
7
8 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
9 # The design lib requires that the client package use appcompat themes.
10 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
11 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
12 # Supplies material design components, e.g. Snackbar.
13 LOCAL_STATIC_JAVA_LIBRARIES += android-support-design
14 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
15 LOCAL_STATIC_JAVA_LIBRARIES += guava
16
17 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
18 # Not quite sure why it is necessary to explicitly pull in resources from the
19 # appcompat lib, but the demo code indicates it's necessary (see
20 # development/samples/Support7Demos/Android.mk)
21 LOCAL_RESOURCE_DIR += \
22   frameworks/support/v7/appcompat/res \
23   frameworks/support/design/res \
24   frameworks/support/v7/recyclerview/res
25
26 # Again, required to pull in appcompat resources.  See abovementioned demo code.
27 LOCAL_AAPT_FLAGS := \
28   --auto-add-overlay \
29   --extra-packages android.support.v7.appcompat \
30   --extra-packages android.support.design \
31   --extra-packages android.support.v7.recyclerview
32
33 LOCAL_JACK_FLAGS := \
34   -D jack.optimization.inner-class.accessors=true
35
36 # Only enable asserts on userdebug/eng builds
37 ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
38 LOCAL_JACK_FLAGS += -D jack.assert.policy=enable
39 endif
40
41 LOCAL_PACKAGE_NAME := DocumentsUI
42 LOCAL_CERTIFICATE := platform
43
44 include $(BUILD_PACKAGE)
45 include $(call all-makefiles-under, $(LOCAL_PATH))