Add LOCAL_AAPT2_ONLY

This allows modules to specify that they may only be used from modules
using aapt2. Using aapt2 removes absolute path references to modules, so
this can be useful if a module is preparing to move its sources, or
replace itself with a prebuilt aar.

Test: m
Test: Label frameworks/support/design; m
Test: Label frameworks/support/v4; m
Test: build/soong/build_test.bash
Change-Id: Icfb3d4b19a6a0e3a3bb00091d2a97a4d88c0c761
This commit is contained in:
Dan Willemsen
2017-11-17 15:39:52 -08:00
parent f1f66974c6
commit bb6393c5a4
5 changed files with 21 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ intermediates.COMMON := $(call local-intermediates-dir,COMMON)
my_res_package :=
ifdef LOCAL_AAPT2_ONLY
LOCAL_USE_AAPT2 := true
endif
# Hack to build static Java library with Android resource
# See bug 5714516
all_resources :=