blob: 9d44a6deb0c8eeca530f76c78bcfaac77c38806f [file] [log] [blame]
Jeff Sharkeye22d02e2013-04-26 16:54:55 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
Steve McKay6359af22016-04-13 10:20:46 -07005LOCAL_PRIVILEGED_MODULE := true
Jeff Sharkeye22d02e2013-04-26 16:54:55 -07006
Jeff Sharkey06c41872013-09-06 10:43:45 -07007LOCAL_SRC_FILES := $(call all-java-files-under, src)
Jeff Sharkeye22d02e2013-04-26 16:54:55 -07008
Ben Kwa3512cb22015-08-24 10:15:56 -07009LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
10# The design lib requires that the client package use appcompat themes.
11LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
Ben Kwa13e26052016-02-18 16:45:45 -080012LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
Ben Kwa3512cb22015-08-24 10:15:56 -070013# Supplies material design components, e.g. Snackbar.
14LOCAL_STATIC_JAVA_LIBRARIES += android-support-design
15LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
16LOCAL_STATIC_JAVA_LIBRARIES += guava
17
Ying Wangccd9ee32015-09-02 11:17:04 -070018LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Ben Kwa3512cb22015-08-24 10:15:56 -070019# Not quite sure why it is necessary to explicitly pull in resources from the
20# appcompat lib, but the demo code indicates it's necessary (see
21# development/samples/Support7Demos/Android.mk)
Ying Wangccd9ee32015-09-02 11:17:04 -070022LOCAL_RESOURCE_DIR += \
23 frameworks/support/v7/appcompat/res \
24 frameworks/support/design/res \
25 frameworks/support/v7/recyclerview/res
Ben Kwa3512cb22015-08-24 10:15:56 -070026
27# Again, required to pull in appcompat resources. See abovementioned demo code.
Ying Wangccd9ee32015-09-02 11:17:04 -070028LOCAL_AAPT_FLAGS := \
29 --auto-add-overlay \
30 --extra-packages android.support.v7.appcompat \
31 --extra-packages android.support.design \
32 --extra-packages android.support.v7.recyclerview
Jeff Sharkey46165b52013-07-31 20:53:22 -070033
Steve McKay0af8afd2016-02-25 13:34:03 -080034LOCAL_JACK_FLAGS := \
Steve McKay0af8afd2016-02-25 13:34:03 -080035 -D jack.optimization.inner-class.accessors=true
36
Jeff Sharkey67b1ce82016-03-21 17:04:02 -060037# Only enable asserts on userdebug/eng builds
38ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
Delphine Martin71b49562016-05-10 15:41:34 +020039LOCAL_JACK_FLAGS += -D jack.assert.policy=always
Jeff Sharkey67b1ce82016-03-21 17:04:02 -060040endif
41
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070042LOCAL_PACKAGE_NAME := DocumentsUI
43LOCAL_CERTIFICATE := platform
44
45include $(BUILD_PACKAGE)
Tomasz Mikolajewskie2d42742016-03-02 16:58:55 +090046include $(call all-makefiles-under, $(LOCAL_PATH))