Build Support7Demos with AAPT2
am: 6ec7099
* commit '6ec7099f1a5d38e193ca493d17813516bc33cecd':
Build Support7Demos with AAPT2
Change-Id: I97753cccbacb22feff83c3c055949f48213efc5c
This commit is contained in:
@@ -15,36 +15,20 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
LOCAL_PATH:= $(call my-dir)
|
||||||
|
|
||||||
# Build the samples.
|
# Build the samples.
|
||||||
# We need to add some special AAPT flags to generate R classes
|
|
||||||
# for resources that are included from the libraries.
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_USE_AAPT2 := true
|
||||||
LOCAL_PACKAGE_NAME := Support7Demos
|
LOCAL_PACKAGE_NAME := Support7Demos
|
||||||
LOCAL_MODULE_TAGS := samples tests
|
LOCAL_MODULE_TAGS := samples tests
|
||||||
LOCAL_SDK_VERSION := current
|
LOCAL_SDK_VERSION := current
|
||||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := \
|
LOCAL_STATIC_ANDROID_LIBRARIES := \
|
||||||
android-support-v4 \
|
|
||||||
android-support-v7-appcompat \
|
android-support-v7-appcompat \
|
||||||
android-support-v7-gridlayout \
|
android-support-v7-gridlayout \
|
||||||
android-support-v7-mediarouter \
|
android-support-v7-mediarouter \
|
||||||
android-support-v7-palette \
|
android-support-v7-cardview \
|
||||||
|
android-support-design \
|
||||||
android-support-v7-recyclerview \
|
android-support-v7-recyclerview \
|
||||||
android-support-v7-cardview
|
android-support-v7-palette \
|
||||||
LOCAL_RESOURCE_DIR = \
|
android-support-v4
|
||||||
$(LOCAL_PATH)/res \
|
LOCAL_AAPT_FLAGS := --no-version-vectors
|
||||||
frameworks/support/v7/appcompat/res \
|
|
||||||
frameworks/support/v7/gridlayout/res \
|
|
||||||
frameworks/support/v7/mediarouter/res \
|
|
||||||
frameworks/support/v7/cardview/res \
|
|
||||||
frameworks/support/design/res \
|
|
||||||
frameworks/support/v7/recyclerview/res
|
|
||||||
LOCAL_AAPT_FLAGS := \
|
|
||||||
--auto-add-overlay \
|
|
||||||
--extra-packages android.support.v7.appcompat \
|
|
||||||
--extra-packages android.support.v7.cardview \
|
|
||||||
--extra-packages android.support.v7.gridlayout \
|
|
||||||
--extra-packages android.support.v7.mediarouter \
|
|
||||||
--extra-packages android.support.design \
|
|
||||||
--extra-packages android.support.v7.recyclerview \
|
|
||||||
--no-version-vectors
|
|
||||||
include $(BUILD_PACKAGE)
|
include $(BUILD_PACKAGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user