Home | History | Annotate | Download | only in DocumentsUI
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_MODULE_TAGS := optional
      5 LOCAL_PRIVILEGED_MODULE := true
      6 
      7 LOCAL_SRC_FILES := $(call all-java-files-under, src)
      8 
      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
     12 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
     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 
     18 LOCAL_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)
     22 LOCAL_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.
     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
     33 
     34 LOCAL_JACK_FLAGS := \
     35   -D jack.optimization.inner-class.accessors=true
     36 
     37 # Only enable asserts on userdebug/eng builds
     38 ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
     39 LOCAL_JACK_FLAGS += -D jack.assert.policy=always
     40 endif
     41 
     42 LOCAL_PACKAGE_NAME := DocumentsUI
     43 LOCAL_CERTIFICATE := platform
     44 
     45 include $(BUILD_PACKAGE)
     46 include $(call all-makefiles-under, $(LOCAL_PATH))
     47