• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5LOCAL_PRIVILEGED_MODULE := true
6
7LOCAL_SRC_FILES := $(call all-java-files-under, src)
8
9LOCAL_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
12LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
13# 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
18LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
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)
22LOCAL_RESOURCE_DIR += \
23  frameworks/support/v7/appcompat/res \
24  frameworks/support/design/res \
25  frameworks/support/v7/recyclerview/res
26
27# Again, required to pull in appcompat resources.  See abovementioned demo code.
28LOCAL_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
33
34LOCAL_JACK_FLAGS := \
35  -D jack.optimization.inner-class.accessors=true
36
37# Only enable asserts on userdebug/eng builds
38ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
39LOCAL_JACK_FLAGS += -D jack.assert.policy=always
40endif
41
42LOCAL_PACKAGE_NAME := DocumentsUI
43LOCAL_CERTIFICATE := platform
44
45include $(BUILD_PACKAGE)
46include $(call all-makefiles-under, $(LOCAL_PATH))
47