| Hyunyoung Song | 170a9f3 | 2015-03-02 11:55:42 -0800 | [diff] [blame] | 1 | # Copyright (C) 2015 The Android Open Source Project | 
| Tsu Chiang Chuang | 8c7a2b7 | 2011-05-20 16:17:17 -0700 | [diff] [blame] | 2 | # | 
 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 
 | 4 | # you may not use this file except in compliance with the License. | 
 | 5 | # You may obtain a copy of the License at | 
 | 6 | # | 
 | 7 | #      http://www.apache.org/licenses/LICENSE-2.0 | 
 | 8 | # | 
 | 9 | # Unless required by applicable law or agreed to in writing, software | 
 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, | 
 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
 | 12 | # See the License for the specific language governing permissions and | 
 | 13 | # limitations under the License. | 
 | 14 | # | 
| Hyunyoung Song | 170a9f3 | 2015-03-02 11:55:42 -0800 | [diff] [blame] | 15 |  | 
 | 16 | LOCAL_PATH := $(call my-dir) | 
| Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 17 |  | 
 | 18 | # | 
 | 19 | # Build rule for Tapl library. | 
 | 20 | # | 
 | 21 | include $(CLEAR_VARS) | 
| Sunny Goyal | d230307 | 2018-08-14 15:21:45 -0700 | [diff] [blame] | 22 | LOCAL_STATIC_JAVA_LIBRARIES := \ | 
 | 23 | 	androidx.annotation_annotation \ | 
| Brett Chabot | d7d692c | 2018-10-23 21:17:58 -0700 | [diff] [blame] | 24 | 	androidx.test.runner \ | 
 | 25 | 	androidx.test.rules \ | 
| Hyunyoung Song | bb71582 | 2020-08-04 10:45:53 -0700 | [diff] [blame] | 26 | 	androidx.preference_preference \ | 
| Hyunyoung Song | 896a715 | 2019-03-21 14:06:02 -0700 | [diff] [blame] | 27 | 	androidx.test.uiautomator_uiautomator | 
 | 28 |  | 
 | 29 | ifneq (,$(wildcard frameworks/base)) | 
 | 30 | else | 
| Hyunyoung Song | a68fba3 | 2019-08-08 00:58:05 -0700 | [diff] [blame] | 31 |     LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib | 
| Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 32 |  | 
| Hyunyoung Song | 40bea55 | 2019-03-22 14:40:49 -0700 | [diff] [blame] | 33 |     LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \ | 
| vadimt | 1b383af | 2019-05-08 15:29:37 -0700 | [diff] [blame] | 34 |         ../src/com/android/launcher3/ResourceUtils.java \ | 
| Sunny Goyal | ab3963d | 2019-05-23 00:50:08 -0700 | [diff] [blame] | 35 |         ../src/com/android/launcher3/testing/TestProtocol.java | 
| Hyunyoung Song | 40bea55 | 2019-03-22 14:40:49 -0700 | [diff] [blame] | 36 | endif | 
| Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 37 |  | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 38 | LOCAL_MODULE := ub-launcher-aosp-tapl | 
| Bob Badour | 4bdf380 | 2021-02-12 17:08:17 -0800 | [diff] [blame] | 39 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 | 
 | 40 | LOCAL_LICENSE_CONDITIONS := notice | 
 | 41 | LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE | 
| Winson Chung | a879f9c | 2019-09-06 12:04:27 -0700 | [diff] [blame] | 42 | LOCAL_SDK_VERSION := system_current | 
| Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 43 |  | 
 | 44 | include $(BUILD_STATIC_JAVA_LIBRARY) | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 45 |  | 
 | 46 | # | 
 | 47 | # Build rule for Launcher3Tests | 
 | 48 | # | 
 | 49 | include $(CLEAR_VARS) | 
 | 50 |  | 
 | 51 | LOCAL_MODULE_TAGS := tests | 
 | 52 | LOCAL_STATIC_JAVA_LIBRARIES := \ | 
| Winson Chung | f25461c | 2019-03-11 16:23:45 -0700 | [diff] [blame] | 53 |     androidx.test.runner \ | 
 | 54 |     androidx.test.rules \ | 
 | 55 |     androidx.test.uiautomator_uiautomator \ | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 56 |     mockito-target-minus-junit4 \ | 
| thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 57 |     launcher_log_protos_lite | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 58 |  | 
 | 59 | ifneq (,$(wildcard frameworks/base)) | 
| Winson Chung | f25461c | 2019-03-11 16:23:45 -0700 | [diff] [blame] | 60 |     LOCAL_PRIVATE_PLATFORM_APIS := true | 
 | 61 |     LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 62 | else | 
| Dan Willemsen | 26b0938 | 2019-11-04 13:12:32 -0800 | [diff] [blame] | 63 |     LOCAL_SDK_VERSION := system_28 | 
| Winson Chung | f25461c | 2019-03-11 16:23:45 -0700 | [diff] [blame] | 64 |     LOCAL_MIN_SDK_VERSION := 21 | 
 | 65 |     LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 66 | endif | 
 | 67 |  | 
| Sunny Goyal | 34ff8cb | 2020-04-20 14:41:23 -0700 | [diff] [blame] | 68 | LOCAL_SRC_FILES := \ | 
 | 69 | 	$(call all-java-files-under, src) \ | 
 | 70 | 	$(call all-java-files-under, src_common) | 
 | 71 |  | 
 | 72 |  | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 73 | LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml | 
 | 74 |  | 
 | 75 | LOCAL_PACKAGE_NAME := Launcher3Tests | 
 | 76 |  | 
 | 77 | LOCAL_INSTRUMENTATION_FOR := Launcher3 | 
 | 78 |  | 
 | 79 | include $(BUILD_PACKAGE) | 
| vadimt | 8296c61 | 2019-05-29 12:07:55 -0700 | [diff] [blame] | 80 |  | 
 | 81 | include $(call all-makefiles-under,$(LOCAL_PATH)) |