summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2011-11-29 10:23:55 -0800
committerYing Wang <wangying@google.com>2011-11-29 10:23:55 -0800
commitb335bb0453b866ff735c772666ec1af4a8563183 (patch)
tree817f3582e7dfa79a19964e4a9b9eba4c4e0cd2a2 /Android.mk
parentc10b88d2365e173f0038279d981f985bb48276ee (diff)
downloadprebuilts_sdk-b335bb0453b866ff735c772666ec1af4a8563183.zip
prebuilts_sdk-b335bb0453b866ff735c772666ec1af4a8563183.tar.gz
prebuilts_sdk-b335bb0453b866ff735c772666ec1af4a8563183.tar.bz2
Move prebuilt SDKs to their own git project.
Change-Id: I030bf99d6a8f2a313fdfde97f6456d80c199e524
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..98d6ed9
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,34 @@
+#
+# Copyright (C) 2010 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+# $(1): sdk version
+define _copy_prebuilt_sdk_to_the_right_place
+_cpsttrp_src_jar := $(LOCAL_PATH)/$(1)/android.jar
+_cpsttrp_sdk_intermediates := $(call intermediates-dir-for,JAVA_LIBRARIES,sdk_v$(1),,COMMON)
+$$(_cpsttrp_sdk_intermediates)/classes.jar : $$(_cpsttrp_src_jar) | $(ACP)
+ $$(call copy-file-to-target)
+
+$$(_cpsttrp_sdk_intermediates)/javalib.jar : $$(_cpsttrp_sdk_intermediates)/classes.jar | $(ACP)
+ $$(call copy-file-to-target)
+endef
+
+_historic_sdk_versions := $(filter-out current, $(TARGET_AVAILABLE_SDK_VERSIONS))
+$(foreach s,$(_historic_sdk_versions),$(eval $(call _copy_prebuilt_sdk_to_the_right_place,$(s))))
+
+include $(call all-makefiles-under,$(LOCAL_PATH))