OSDN Git Service

Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES
authorColin Cross <ccross@android.com>
Tue, 29 Nov 2016 19:12:56 +0000 (11:12 -0800)
committerColin Cross <ccross@android.com>
Tue, 29 Nov 2016 19:12:56 +0000 (11:12 -0800)
commitfe109634964ad75e1c35872eb6e37c55e76e44bc
tree6eaa46fed1b80b438624ac08de23b2190e16c68e
parent31543713fc12648fe1d97c31d85e2c5cfda9cf3e
Fix warning with AAPT2 and LOCAL_STATIC_ANDROID_LIBRARIES

Building with LOCAL_STATIC_ANDROID_LIBARIES and LOCAL_USE_APPT2
causes a warning:
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets

Only call find-subdir-assets if my_res_dir is not empty.

Also improve the warning message to make it easier to find the module
that caused it.

Test: m -j
Change-Id: I9a71162c7e2ed82f64d6844baca256968ac77317
core/definitions.mk
core/package_internal.mk