2018-08-09 06:42:53 +02:00
|
|
|
# Droiddoc prebuilt coming from Soong.
|
|
|
|
|
|
|
|
ifneq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK))
|
|
|
|
$(call pretty-error,soong_droiddoc_prebuilt.mk may only be used from Soong)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef LOCAL_DROIDDOC_STUBS_SRCJAR
|
|
|
|
$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_STUBS_SRCJAR),$(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar))
|
2022-04-05 22:11:57 +02:00
|
|
|
$(eval ALL_TARGETS.$(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar.META_LIC := $(LOCAL_SOONG_LICENSE_METADATA))
|
2018-08-09 06:42:53 +02:00
|
|
|
ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar
|
|
|
|
|
|
|
|
.PHONY: $(LOCAL_MODULE)
|
|
|
|
$(LOCAL_MODULE) : $(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef LOCAL_DROIDDOC_DOC_ZIP
|
|
|
|
$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_DOC_ZIP),$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip))
|
2022-04-05 22:11:57 +02:00
|
|
|
$(eval ALL_TARGETS.$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip.META_LIC := $(LOCAL_SOONG_LICENSE_METADATA))
|
2018-08-09 06:42:53 +02:00
|
|
|
$(call dist-for-goals,docs,$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip)
|
|
|
|
|
2019-01-19 01:04:06 +01:00
|
|
|
.PHONY: $(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip
|
|
|
|
$(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip : $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
|
|
|
|
ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
|
2018-08-09 06:42:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef LOCAL_DROIDDOC_ANNOTATIONS_ZIP
|
|
|
|
$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_ANNOTATIONS_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_annotations.zip))
|
2022-04-05 22:11:57 +02:00
|
|
|
$(eval ALL_TARGETS.$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_annotations.zip.META_LIC := $(LOCAL_SOONG_LICENSE_METADATA))
|
2018-08-09 06:42:53 +02:00
|
|
|
endif
|
2018-09-17 23:32:52 +02:00
|
|
|
|
2018-09-18 19:48:35 +02:00
|
|
|
ifdef LOCAL_DROIDDOC_API_VERSIONS_XML
|
|
|
|
$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_API_VERSIONS_XML),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_generated-api-versions.xml))
|
2022-04-05 22:11:57 +02:00
|
|
|
$(eval ALL_TARGETS.$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_generated-api-versions.xml.META_LIC := $(LOCAL_SOONG_LICENSE_METADATA))
|
2018-09-18 19:48:35 +02:00
|
|
|
endif
|
|
|
|
|
2019-10-10 20:35:08 +02:00
|
|
|
ifdef LOCAL_DROIDDOC_METADATA_ZIP
|
|
|
|
$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_METADATA_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)-metadata.zip))
|
2022-04-05 22:11:57 +02:00
|
|
|
$(eval ALL_TARGETS.$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)-metadata.zip.META_LIC := $(LOCAL_SOONG_LICENSE_METADATA))
|
2019-10-10 20:35:08 +02:00
|
|
|
endif
|