Home | History | Annotate | Download | only in tools

Lines Matching refs:sdk

1 # Makefile to build the SDK repository packages.
12 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
15 define sdk-repo-pkg-zip
16 $(dir $(2))/sdk-repo-$(1)-$(3)-$(FILE_NAME_TAG).zip
19 # Defines the rule to build an SDK repository package by zipping all
21 # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/tools
22 # this generates an sdk-repo-linux-tools that contains tools/*
26 # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
29 # The rule depends on the SDK zip file, which is defined by $2.
31 define mk-sdk-repo-pkg-1
32 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3)
33 @echo "Building SDK repository package $(4) from $(notdir $(3))"
35 rm -f ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \
36 zip -9rq ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) $(4)/*
37 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
39 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
42 # Defines the rule to build an SDK repository package when the
44 # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/samples/android-N
45 # this generates an sdk-repo-linux-samples that contains android-N/*
49 # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
52 # The rule depends on the SDK zip file, which is defined by $2.
54 define mk-sdk-repo-pkg-2
55 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3)
56 @echo "Building SDK repository package $(4) from $(notdir $(3))"
58 rm -f ../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \
59 zip -9rq ../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) *
60 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
62 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
65 # Defines the rule to build an SDK repository package when the
66 # package directory contains 3 levels from the sdk dir, for example
67 # to package SDK/extra/android/support or SDK/system-images/android-N/armeabi.
69 # if each directory contains a single sub-directory (e.g. sdk/$4/*/* must be
74 # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
76 # $5=the root of directory to package in the sdk (e.g. extra/android).
79 # The rule depends on the SDK zip file, which is defined by $2.
81 define mk-sdk-repo-pkg-3
82 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3)
83 @echo "Building SDK repository package $(4) from $(notdir $(3))"
85 rm -f ../../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \
86 zip -9rq ../../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) *
87 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
89 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
92 # Defines the rule to build an SDK sources package.
96 # $3=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
99 define mk-sdk-repo-sources
100 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) $(HOST_OUT)/development/sdk/source_source.properties
101 @echo "Building SDK sources package"
103 $(HOST_OUT)/development/sdk/source_source.properties \
104 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)) \
106 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
108 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4)))
112 # Rules for main host sdk
114 ifneq ($(filter sdk win_sdk,$(MAKECMDGOALS)),)
117 $(eval $(call mk-sdk-repo-pkg-3,SDK_EXTRAS_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),support,extras/android))
120 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),support)
123 $(eval $(call mk-sdk-repo-pkg-3,SDK_SYSIMG_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),system-images,system-images/*))
126 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),system-images) \
129 $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),build-tools))
130 $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools))
131 $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),docs))
132 $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),platforms))
133 $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),samples))
134 $(eval $(call mk-sdk-repo-sources,SDK_REPO_XML_ARGS,$(HOST_OS),$(MAIN_SDK_ZIP),sources))
137 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),build-tools) \
138 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools) \
139 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),docs) \
140 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platforms) \
141 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),samples) \
142 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),sources)
152 $(eval $(call mk-sdk-repo-pkg-2,SDK_REPO_XML_ARGS,windows,$(WIN_SDK_ZIP),build-tools))
153 $(eval $(call mk-sdk-repo-pkg-1,SDK_REPO_XML_ARGS,windows,$(WIN_SDK_ZIP),platform-tools))
156 $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),build-tools) \
157 $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),platform-tools)
167 $(TOPDIR)prebuilts/devtools/repository/sdk-repository-*.xsd \
173 $(TOPDIR)prebuilts/devtools/repository/sdk-addon-*.xsd \
179 $(TOPDIR)prebuilts/devtools/repository/sdk-sys-img-*.xsd \
184 # Rules for sdk addon
188 # ADDON_SDK_ZIP is defined in build/core/tasks/sdk-addon.sh and is
192 RENAMED_ADDON_ZIP := $(ADDON_SDK_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_ZIP),addon))
210 # Copy/rename the ADDON_SDK_IMG_ZIP file as an sdk-repo zip in the dist dir
212 RENAMED_ADDON_IMG_ZIP := $(ADDON_SDK_IMG_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_IMG_ZIP),system-images))
229 # Rules for the SDK Repository XML
282 @echo "Packing of SDK repository done"