cmsdk: Set explicity dependency for res package files.

During checkapi-cm invocation under make, the api
  text generation dependant on the stubs (which depend
  on the sdk intermediates) needs the res package files:
  Manifest and R.java, to be available in the intermediates.

Change-Id: I19921f1b5531822341a6804cf83e1b0b21b9f8bf
TICKET: CYNGNOS-2049
This commit is contained in:
Adnan Begovic 2016-02-15 15:25:21 -08:00
parent 34ff00c8a4
commit 182b972c0b
1 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,12 @@ cmsdk_LOCAL_INTERMEDIATE_SOURCES := \
LOCAL_INTERMEDIATE_SOURCES := \
$(cmsdk_LOCAL_INTERMEDIATE_SOURCES)
# Make sure that R.java and Manifest.java are built before we build
# the source for this library.
cm_framework_res_R_stamp := \
$(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/src/R.stamp
$(full_classes_compiled_jar): $(cm_framework_res_R_stamp)
$(built_dex_intermediate): $(cm_framework_res_R_stamp)
$(full_target): $(cm_framework_built) $(gen)
include $(BUILD_STATIC_JAVA_LIBRARY)