Jeff Sharkey | e22d02e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_MODULE_TAGS := optional |
Steve McKay | 6359af2 | 2016-04-13 10:20:46 -0700 | [diff] [blame] | 5 | LOCAL_PRIVILEGED_MODULE := true |
Jeff Sharkey | e22d02e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 6 | |
Jeff Sharkey | 06c4187 | 2013-09-06 10:43:45 -0700 | [diff] [blame] | 7 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Jeff Sharkey | e22d02e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 8 | |
Ben Kwa | 3512cb2 | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 9 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 |
| 10 | # The design lib requires that the client package use appcompat themes. |
| 11 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat |
Ben Kwa | 13e2605 | 2016-02-18 16:45:45 -0800 | [diff] [blame] | 12 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13 |
Ben Kwa | 3512cb2 | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 13 | # Supplies material design components, e.g. Snackbar. |
| 14 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-design |
| 15 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview |
| 16 | LOCAL_STATIC_JAVA_LIBRARIES += guava |
| 17 | |
Ying Wang | ccd9ee3 | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 18 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Ben Kwa | 3512cb2 | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 19 | # 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 Wang | ccd9ee3 | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 22 | LOCAL_RESOURCE_DIR += \ |
| 23 | frameworks/support/v7/appcompat/res \ |
| 24 | frameworks/support/design/res \ |
| 25 | frameworks/support/v7/recyclerview/res |
Ben Kwa | 3512cb2 | 2015-08-24 10:15:56 -0700 | [diff] [blame] | 26 | |
| 27 | # Again, required to pull in appcompat resources. See abovementioned demo code. |
Ying Wang | ccd9ee3 | 2015-09-02 11:17:04 -0700 | [diff] [blame] | 28 | LOCAL_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 Sharkey | 46165b5 | 2013-07-31 20:53:22 -0700 | [diff] [blame] | 33 | |
Steve McKay | 0af8afd | 2016-02-25 13:34:03 -0800 | [diff] [blame] | 34 | LOCAL_JACK_FLAGS := \ |
Steve McKay | 0af8afd | 2016-02-25 13:34:03 -0800 | [diff] [blame] | 35 | -D jack.optimization.inner-class.accessors=true |
| 36 | |
Jeff Sharkey | 67b1ce8 | 2016-03-21 17:04:02 -0600 | [diff] [blame] | 37 | # Only enable asserts on userdebug/eng builds |
| 38 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
Delphine Martin | 71b4956 | 2016-05-10 15:41:34 +0200 | [diff] [blame] | 39 | LOCAL_JACK_FLAGS += -D jack.assert.policy=always |
Jeff Sharkey | 67b1ce8 | 2016-03-21 17:04:02 -0600 | [diff] [blame] | 40 | endif |
| 41 | |
Jeff Sharkey | e22d02e | 2013-04-26 16:54:55 -0700 | [diff] [blame] | 42 | LOCAL_PACKAGE_NAME := DocumentsUI |
| 43 | LOCAL_CERTIFICATE := platform |
| 44 | |
| 45 | include $(BUILD_PACKAGE) |
Tomasz Mikolajewski | e2d4274 | 2016-03-02 16:58:55 +0900 | [diff] [blame] | 46 | include $(call all-makefiles-under, $(LOCAL_PATH)) |