• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Droiddoc prebuilt coming from Soong.
2
3ifneq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK))
4  $(call pretty-error,soong_droiddoc_prebuilt.mk may only be used from Soong)
5endif
6
7ifdef LOCAL_DROIDDOC_STUBS_SRCJAR
8$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_STUBS_SRCJAR),$(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar))
9ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar
10
11.PHONY: $(LOCAL_MODULE)
12$(LOCAL_MODULE) : $(OUT_DOCS)/$(LOCAL_MODULE)-stubs.srcjar
13endif
14
15ifdef LOCAL_DROIDDOC_DOC_ZIP
16$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_DOC_ZIP),$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip))
17$(call dist-for-goals,docs,$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip)
18
19.PHONY: $(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip
20$(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip : $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
21ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
22endif
23
24ifdef LOCAL_DROIDDOC_ANNOTATIONS_ZIP
25$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_ANNOTATIONS_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_annotations.zip))
26endif
27
28ifdef LOCAL_DROIDDOC_API_VERSIONS_XML
29$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_API_VERSIONS_XML),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_generated-api-versions.xml))
30endif
31
32ifdef LOCAL_DROIDDOC_METADATA_ZIP
33$(eval $(call copy-one-file,$(LOCAL_DROIDDOC_METADATA_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)-metadata.zip))
34endif
35