Allow soong java libraries to include exported resources and proguard flags
Test: m checkbuild Change-Id: Ia02f816084d0eb1c0e0f20e1ecd57aaf3778874c
This commit is contained in:
parent
f6799e859a
commit
7874138a8a
|
@ -235,6 +235,7 @@ LOCAL_SHARED_ANDROID_LIBRARIES:=
|
|||
LOCAL_SHARED_LIBRARIES:=
|
||||
LOCAL_SOONG_CLASSES_JAR :=
|
||||
LOCAL_SOONG_DEX_JAR :=
|
||||
LOCAL_SOONG_EXPORT_PROGUARD_FLAGS :=
|
||||
LOCAL_SOONG_HEADER_JAR :=
|
||||
LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=
|
||||
LOCAL_SOONG_PROGUARD_DICT :=
|
||||
|
|
|
@ -55,6 +55,7 @@ $(resource_export_package): $(LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE)
|
|||
@echo "Copy: $$@"
|
||||
$(copy-file-to-target)
|
||||
touch $(PRIVATE_STAMP)
|
||||
$(call add-dependency,$(LOCAL_BUILT_MODULE),$(resource_export_package))
|
||||
|
||||
endif # LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE
|
||||
|
||||
|
|
|
@ -39,6 +39,24 @@ ifdef LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR
|
|||
$(intermediates.COMMON)/jacoco-report-classes.jar)
|
||||
endif
|
||||
|
||||
ifdef LOCAL_SOONG_EXPORT_PROGUARD_FLAGS
|
||||
$(eval $(call copy-one-file,$(LOCAL_SOONG_EXPORT_PROGUARD_FLAGS),\
|
||||
$(intermediates.COMMON)/export_proguard_flags))
|
||||
$(call add-dependency,$(LOCAL_BUILT_MODULE),\
|
||||
$(intermediates.COMMON)/export_proguard_flags)
|
||||
endif
|
||||
|
||||
ifdef LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE
|
||||
my_res_package := $(intermediates.COMMON)/package-res.apk
|
||||
|
||||
$(my_res_package): $(LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE)
|
||||
@echo "Copy: $$@"
|
||||
$(copy-file-to-target)
|
||||
|
||||
$(call add-dependency,$(LOCAL_BUILT_MODULE),$(my_res_package))
|
||||
|
||||
endif # LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE
|
||||
|
||||
ifneq ($(TURBINE_ENABLED),false)
|
||||
ifdef LOCAL_SOONG_HEADER_JAR
|
||||
$(eval $(call copy-one-file,$(LOCAL_SOONG_HEADER_JAR),$(full_classes_header_jar)))
|
||||
|
|
Loading…
Reference in New Issue