Paul Duffin | 898e7de | 2018-01-30 13:01:30 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2018 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 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | # For unbundled build we'll use the prebuilt jar from prebuilts/sdk. |
| 20 | ifeq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) |
| 21 | |
| 22 | # Build the android.test.legacy library |
| 23 | # ===================================== |
Paul Duffin | 4cdec67 | 2018-02-14 10:36:16 +0000 | [diff] [blame] | 24 | # Built against the SDK so that it can be statically included in APKs |
| 25 | # without breaking link type checks. |
| 26 | # |
Paul Duffin | 898e7de | 2018-01-30 13:01:30 +0000 | [diff] [blame] | 27 | include $(CLEAR_VARS) |
| 28 | |
| 29 | LOCAL_MODULE := android.test.legacy |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 30 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS |
| 31 | LOCAL_LICENSE_CONDITIONS := notice |
| 32 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE |
Paul Duffin | 898e7de | 2018-01-30 13:01:30 +0000 | [diff] [blame] | 33 | |
| 34 | LOCAL_SDK_VERSION := current |
| 35 | |
Paul Duffin | 4cdec67 | 2018-02-14 10:36:16 +0000 | [diff] [blame] | 36 | LOCAL_JAVA_LIBRARIES := junit android.test.mock.stubs |
Paul Duffin | 79d7ba2 | 2019-02-25 19:18:37 +0000 | [diff] [blame] | 37 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 38 | android.test.base-minus-junit \ |
| 39 | android.test.runner-minus-junit \ |
Paul Duffin | 898e7de | 2018-01-30 13:01:30 +0000 | [diff] [blame] | 40 | |
| 41 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 42 | |
| 43 | # Archive a copy of the classes.jar in SDK build. |
Anton Hansson | dd8ef67 | 2022-01-04 08:53:19 +0000 | [diff] [blame] | 44 | $(call dist-for-goals,sdk,$(full_classes_jar):android.test.legacy.jar) |
Paul Duffin | 898e7de | 2018-01-30 13:01:30 +0000 | [diff] [blame] | 45 | |
| 46 | endif # not TARGET_BUILD_APPS not TARGET_BUILD_PDK=true |