cmsdk: Add an internal target which includes all resources

* This can be referenced instead of the standard jar if internal
   resource identifiers are needed for sharing between platform apps
   (systemui + settings is a good use case).

Change-Id: Ib078f6dd861a0a3a4cdcfccd6e245200d18368c4
This commit is contained in:
Steve Kondik 2015-11-03 17:34:01 -08:00
parent 1a5c249b67
commit 5e522e6805

View File

@ -123,6 +123,35 @@ LOCAL_INTERMEDIATE_SOURCES := \
$(full_target): $(cm_framework_built) $(gen)
include $(BUILD_STATIC_JAVA_LIBRARY)
# full target for use by platform apps
#
include $(CLEAR_VARS)
LOCAL_MODULE:= org.cyanogenmod.platform.internal
LOCAL_MODULE_TAGS := optional
LOCAL_REQUIRED_MODULES := services
LOCAL_SRC_FILES := \
$(call all-java-files-under, $(cyanogenmod_src)) \
$(call all-Iaidl-files-under, $(cyanogenmod_src)) \
$(call all-Iaidl-files-under, $(cyanogenmod_internal_src))
# Included aidl files from cyanogenmod.app namespace
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src/java
cmsdk_LOCAL_INTERMEDIATE_SOURCES := \
$(cm_platform_res)/cyanogenmod/platform/R.java \
$(cm_platform_res)/cyanogenmod/platform/Manifest.java \
$(cm_platform_res)/org/cyanogenmod/platform/internal/R.java \
$(cm_platform_res)/org/cyanogenmod/platform/internal/Manifest.java
LOCAL_INTERMEDIATE_SOURCES := \
$(cmsdk_LOCAL_INTERMEDIATE_SOURCES)
$(full_target): $(cm_framework_built) $(gen)
include $(BUILD_STATIC_JAVA_LIBRARY)
# ===========================================================
# Common Droiddoc vars
cmplat_docs_src_files := \