1 # 2 # Include this make file to build your application against this module. 3 # 4 # Make sure to include it after you've set all your desired LOCAL variables. 5 # Note that you must explicitly set your LOCAL_RESOURCE_DIR before including 6 # this file. 7 # 8 # For example: 9 # 10 # LOCAL_RESOURCE_DIR := \ 11 # $(LOCAL_PATH)/res 12 # 13 # include frameworks/base/packages/SettingsLib/common.mk 14 # 15 16 ifeq ($(LOCAL_USE_AAPT2),true) 17 LOCAL_STATIC_ANDROID_LIBRARIES += \ 18 android-support-annotations \ 19 android-support-v4 \ 20 SettingsLib 21 else 22 LOCAL_RESOURCE_DIR += $(call my-dir)/res 23 LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.settingslib 24 LOCAL_STATIC_JAVA_LIBRARIES += \ 25 android-support-annotations \ 26 android-support-v4 \ 27 SettingsLib 28 endif 29