diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-09-30 12:17:41 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2015-10-09 13:29:45 -0700 |
commit | 9e316e6c963b84cdfb1a2576d60793a492a15907 (patch) | |
tree | e21be006cba6486d0ee93f6a03500103676d109e /core/package_internal.mk | |
parent | 92b2b6982a39fb0eb158286c3ff614a0469f7208 (diff) | |
download | build-9e316e6c963b84cdfb1a2576d60793a492a15907.zip build-9e316e6c963b84cdfb1a2576d60793a492a15907.tar.gz build-9e316e6c963b84cdfb1a2576d60793a492a15907.tar.bz2 |
build: Make sure we're building our secondary resource package as dependency.
This allows us to reference internal or public resources without
going explicitily through the platform sdk.
Change-Id: Iba361a3dcd20bc62a06e600e0240fb09d4e7bda4
Diffstat (limited to 'core/package_internal.mk')
-rw-r--r-- | core/package_internal.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/package_internal.mk b/core/package_internal.mk index 23648c1..27fe9b4 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -320,11 +320,24 @@ framework_res_package_export_deps := $(framework_res_package_export) else # LOCAL_SDK_RES_VERSION framework_res_package_export := \ $(call intermediates-dir-for,APPS,framework-res,,COMMON)/package-export.apk + +# Avoid possible circular dependency with our platform-res +ifneq ($(LOCAL_IGNORE_SUBDIR), true) +cm_plat_res_package_export := \ + $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/package-export.apk +endif # LOCAL_IGNORE_SUBDIR + # We can't depend directly on the export.apk file; it won't get its # PRIVATE_ vars set up correctly if we do. Instead, depend on the # corresponding R.stamp file, which lists the export.apk as a dependency. framework_res_package_export_deps := \ $(dir $(framework_res_package_export))src/R.stamp + +ifneq ($(LOCAL_IGNORE_SUBDIR), true) +cm_plat_res_package_export_deps := \ + $(dir $(cm_plat_res_package_export))src/R.stamp +endif # LOCAL_IGNORE_SUBDIR + endif # LOCAL_SDK_RES_VERSION all_library_res_package_exports := \ $(framework_res_package_export) \ @@ -336,6 +349,13 @@ all_library_res_package_export_deps := \ $(foreach lib,$(LOCAL_RES_LIBRARIES),\ $(call intermediates-dir-for,APPS,$(lib),,COMMON)/src/R.stamp) +ifneq ($(LOCAL_IGNORE_SUBDIR), true) +all_library_res_package_exports += \ + $(cm_plat_res_package_export) +all_library_res_package_export_deps += \ + $(cm_plat_res_package_export_deps) +endif # LOCAL_IGNORE_SUBDIR + $(resource_export_package) $(R_file_stamp) $(LOCAL_BUILT_MODULE): $(all_library_res_package_export_deps) $(LOCAL_INTERMEDIATE_TARGETS): \ PRIVATE_AAPT_INCLUDES := $(all_library_res_package_exports) |