Home | History | Annotate | Download | only in tools

Lines Matching defs: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/*
25 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
28 # The rule depends on the SDK zip file, which is defined by $2.
30 define mk-sdk-repo-pkg-1
31 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2)
32 @echo "Building SDK repository package $(3) from $(notdir $(2))"
34 zip -9rq ../$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3))) $(3)/*
35 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
37 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)):$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
40 # Defines the rule to build an SDK repository package when the
42 # E.g. given a folder out/host/linux.../sdk/android-eng-sdk/samples/android-N
43 # this generates an sdk-repo-linux-samples that contains android-N/*
46 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
49 # The rule depends on the SDK zip file, which is defined by $2.
51 define mk-sdk-repo-pkg-2
52 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2)
53 @echo "Building SDK repository package $(3) from $(notdir $(2))"
55 zip -9rq ../../$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3))) *
56 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
58 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)):$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
61 # Defines the rule to build an SDK repository package when the
62 # package directory contains 3 levels from the sdk dir, for example
63 # to package SDK/extra/android/support or SDK/system-images/android-N/armeabi.
65 # if each directory contains a single sub-directory (e.g. sdk/$4/*/* must be
69 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
71 # $4=the root of directory to package in the sdk (e.g. extra/android).
74 # The rule depends on the SDK zip file, which is defined by $2.
76 define mk-sdk-repo-pkg-3
77 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2)
78 @echo "Building SDK repository package $(3) from $(notdir $(2))"
80 zip -9rq ../../../$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3))) *
81 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
83 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)):$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
86 # Defines the rule to build an SDK sources package.
89 # $2=sdk zip (e.g. out/host/linux.../android-eng-sdk.zip)
92 define mk-sdk-repo-sources
93 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)): $(2) $(HOST_OUT)/development/sdk/source_source.properties
94 @echo "Building SDK sources package"
96 $(HOST_OUT)/development/sdk/source_source.properties \
97 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)) \
99 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
101 $(call sdk-repo-pkg-zip,$(1),$(2),$(3)):$(notdir $(call sdk-repo-pkg-zip,$(1),$(2),$(3)))
105 # Rules for main host sdk
107 ifneq ($(filter sdk win_sdk,$(MAKECMDGOALS)),)
111 $(eval $(call mk-sdk-repo-pkg-3,$(HOST_OS),$(MAIN_SDK_ZIP),support,extras/android))
116 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),support)
119 $(eval $(call mk-sdk-repo-pkg-1,$(HOST_OS),$(MAIN_SDK_ZIP),tools))
120 $(eval $(call mk-sdk-repo-pkg-1,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools))
121 $(eval $(call mk-sdk-repo-pkg-1,$(HOST_OS),$(MAIN_SDK_ZIP),docs))
122 $(eval $(call mk-sdk-repo-pkg-2,$(HOST_OS),$(MAIN_SDK_ZIP),platforms))
123 $(eval $(call mk-sdk-repo-pkg-2,$(HOST_OS),$(MAIN_SDK_ZIP),samples))
124 $(eval $(call mk-sdk-repo-pkg-3,$(HOST_OS),$(MAIN_SDK_ZIP),system-images,system-images/*))
125 $(eval $(call mk-sdk-repo-sources,$(HOST_OS),$(MAIN_SDK_ZIP),sources))
128 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),tools) \
129 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platform-tools) \
130 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),docs) \
131 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),platforms) \
132 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),samples) \
133 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),system-images) \
134 $(call sdk-repo-pkg-zip,$(HOST_OS),$(MAIN_SDK_ZIP),sources)
144 $(eval $(call mk-sdk-repo-pkg-1,windows,$(WIN_SDK_ZIP),tools))
145 $(eval $(call mk-sdk-repo-pkg-1,windows,$(WIN_SDK_ZIP),platform-tools))
148 $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),tools) \
149 $(call sdk-repo-pkg-zip,windows,$(WIN_SDK_ZIP),platform-tools)
159 $(TOPDIR)sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-repository-*.xsd \
165 $(TOPDIR)sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/repository/sdk-addon-*.xsd \
169 # Rules for sdk addon
173 # ADDON_SDK_ZIP is defined in build/core/tasks/sdk-addon.sh and is
177 RENAMED_ADDON_ZIP := $(ADDON_SDK_ZIP):$(notdir $(call sdk-repo-pkg-zip,$(HOST_OS),$(ADDON_SDK_ZIP),addon))
194 # Rules for the SDK Repository XML
196 SDK_REPO_XML := $(HOST_OUT)/sdk/repository.xml
197 SDK_EXTRAS_XML := $(HOST_OUT)/sdk/repo-extras.xml
231 @echo "Packing of SDK repository done"