blob: 9d44a6deb0c8eeca530f76c78bcfaac77c38806f [file] [log] [blame]
Jeff Sharkey9e0036e2013-04-26 16:54:55 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
Steve McKay92bf96d2016-04-13 10:20:46 -07005LOCAL_PRIVILEGED_MODULE := true
Jeff Sharkey9e0036e2013-04-26 16:54:55 -07006
Jeff Sharkey6d97d3c2013-09-06 10:43:45 -07007LOCAL_SRC_FILES := $(call all-java-files-under, src)
Jeff Sharkey9e0036e2013-04-26 16:54:55 -07008
Ben Kwaa747d2e2015-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 Kwae3dfebf2016-02-18 16:45:45 -080012LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
Ben Kwaa747d2e2015-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 Wang94252de2015-09-02 11:17:04 -070018LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Ben Kwaa747d2e2015-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 Wang94252de2015-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 Kwaa747d2e2015-08-24 10:15:56 -070026
27# Again, required to pull in appcompat resources. See abovementioned demo code.
Ying Wang94252de2015-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 Sharkeybc2971d2013-07-31 20:53:22 -070033
Steve McKaya1f76802016-02-25 13:34:03 -080034LOCAL_JACK_FLAGS := \
Steve McKaya1f76802016-02-25 13:34:03 -080035 -D jack.optimization.inner-class.accessors=true
36
Jeff Sharkey33758d852016-03-21 17:04:02 -060037# Only enable asserts on userdebug/eng builds
38ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
Delphine Martin2a6b5c62016-05-10 15:41:34 +020039LOCAL_JACK_FLAGS += -D jack.assert.policy=always
Jeff Sharkey33758d852016-03-21 17:04:02 -060040endif
41
Jeff Sharkey9e0036e2013-04-26 16:54:55 -070042LOCAL_PACKAGE_NAME := DocumentsUI
43LOCAL_CERTIFICATE := platform
44
45include $(BUILD_PACKAGE)
Tomasz Mikolajewski04049402016-03-02 16:58:55 +090046include $(call all-makefiles-under, $(LOCAL_PATH))