blob: 0d56227b7953013c12387077ee91b66d8bf5124b [file] [log] [blame]
Ying Wangb335bb02011-11-29 10:23:55 -08001#
2# Copyright (C) 2010 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH:= $(call my-dir)
Ying Wangc7036822015-04-16 11:54:37 -070018
Yohann Roussel855a9502016-08-19 18:58:57 +020019# $(1): sdk version
20define declare_sdk_prebuilts
21
Ying Wangb335bb02011-11-29 10:23:55 -080022include $(CLEAR_VARS)
Yohann Roussel855a9502016-08-19 18:58:57 +020023LOCAL_MODULE := sdk_v$(1)
24LOCAL_SRC_FILES := $(1)/android.jar
25LOCAL_MODULE_CLASS := JAVA_LIBRARIES
26LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
27LOCAL_BUILT_MODULE_STEM := sdk_v$(1)$(COMMON_JAVA_PACKAGE_SUFFIX)
Dan Willemsene383f132016-09-30 18:41:21 -070028LOCAL_MIN_SDK_VERSION := $(if $(call math_is_number,$(strip $(1))),$(1),$(PLATFORM_JACK_MIN_SDK_VERSION))
Yohann Roussel855a9502016-08-19 18:58:57 +020029LOCAL_UNINSTALLABLE_MODULE := true
30include $(BUILD_PREBUILT)
Ying Wangb335bb02011-11-29 10:23:55 -080031
Yohann Roussel855a9502016-08-19 18:58:57 +020032include $(CLEAR_VARS)
33LOCAL_MODULE := uiautomator_sdk_v$(1)
34LOCAL_SRC_FILES := $(1)/uiautomator.jar
35LOCAL_MODULE_CLASS := JAVA_LIBRARIES
36LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
37LOCAL_BUILT_MODULE_STEM := uiautomator_sdk_v$(1)$(COMMON_JAVA_PACKAGE_SUFFIX)
Dan Willemsene383f132016-09-30 18:41:21 -070038LOCAL_MIN_SDK_VERSION := $(if $(call math_is_number,$(strip $(1))),$(1),$(PLATFORM_JACK_MIN_SDK_VERSION))
Yohann Roussel855a9502016-08-19 18:58:57 +020039LOCAL_UNINSTALLABLE_MODULE := true
40include $(BUILD_PREBUILT)
Ying Wangb335bb02011-11-29 10:23:55 -080041
Yohann Roussel855a9502016-08-19 18:58:57 +020042endef
43
44$(foreach s,$(TARGET_AVAILABLE_SDK_VERSIONS),\
45 $(eval $(call declare_sdk_prebuilts,$(s))))
Ying Wang2a38d242014-04-25 14:49:31 -070046
Ying Wangb335bb02011-11-29 10:23:55 -080047include $(call all-makefiles-under,$(LOCAL_PATH))