blob: 2c7d30a08e1d36033e51edb17b60ce841e65f713 [file] [log] [blame]
Hyunyoung Song170a9f32015-03-02 11:55:42 -08001# Copyright (C) 2015 The Android Open Source Project
Tsu Chiang Chuang8c7a2b72011-05-20 16:17:17 -07002#
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 Song170a9f32015-03-02 11:55:42 -080015
16LOCAL_PATH := $(call my-dir)
Vadim Trysheva279b2e2018-06-18 19:14:44 -070017
18#
19# Build rule for Tapl library.
20#
21include $(CLEAR_VARS)
Sunny Goyald2303072018-08-14 15:21:45 -070022LOCAL_STATIC_JAVA_LIBRARIES := \
23 androidx.annotation_annotation \
Brett Chabotd7d692c2018-10-23 21:17:58 -070024 androidx.test.runner \
25 androidx.test.rules \
Hyunyoung Songbb715822020-08-04 10:45:53 -070026 androidx.preference_preference \
Hyunyoung Song896a7152019-03-21 14:06:02 -070027 androidx.test.uiautomator_uiautomator
28
29ifneq (,$(wildcard frameworks/base))
30else
Hyunyoung Songa68fba32019-08-08 00:58:05 -070031 LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib
Vadim Trysheva279b2e2018-06-18 19:14:44 -070032
Hyunyoung Song40bea552019-03-22 14:40:49 -070033 LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \
vadimt1b383af2019-05-08 15:29:37 -070034 ../src/com/android/launcher3/ResourceUtils.java \
Sunny Goyalab3963d2019-05-23 00:50:08 -070035 ../src/com/android/launcher3/testing/TestProtocol.java
Hyunyoung Song40bea552019-03-22 14:40:49 -070036endif
Vadim Trysheva279b2e2018-06-18 19:14:44 -070037
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070038LOCAL_MODULE := ub-launcher-aosp-tapl
Bob Badour4bdf3802021-02-12 17:08:17 -080039LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
40LOCAL_LICENSE_CONDITIONS := notice
41LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
Winson Chunga879f9c2019-09-06 12:04:27 -070042LOCAL_SDK_VERSION := system_current
Vadim Trysheva279b2e2018-06-18 19:14:44 -070043
44include $(BUILD_STATIC_JAVA_LIBRARY)
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070045
46#
47# Build rule for Launcher3Tests
48#
49include $(CLEAR_VARS)
50
51LOCAL_MODULE_TAGS := tests
52LOCAL_STATIC_JAVA_LIBRARIES := \
Winson Chungf25461c2019-03-11 16:23:45 -070053 androidx.test.runner \
54 androidx.test.rules \
55 androidx.test.uiautomator_uiautomator \
thiruram5e1ecf62019-11-13 17:49:35 -080056 mockito-target-minus-junit4 \
thiruramc1c2bfa2020-02-04 18:56:40 -080057 launcher_log_protos_lite
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070058
59ifneq (,$(wildcard frameworks/base))
Winson Chungf25461c2019-03-11 16:23:45 -070060 LOCAL_PRIVATE_PLATFORM_APIS := true
61 LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070062else
Dan Willemsen26b09382019-11-04 13:12:32 -080063 LOCAL_SDK_VERSION := system_28
Winson Chungf25461c2019-03-11 16:23:45 -070064 LOCAL_MIN_SDK_VERSION := 21
65 LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070066endif
67
Sunny Goyal34ff8cb2020-04-20 14:41:23 -070068LOCAL_SRC_FILES := \
69 $(call all-java-files-under, src) \
70 $(call all-java-files-under, src_common)
71
72
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070073LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
74
75LOCAL_PACKAGE_NAME := Launcher3Tests
76
77LOCAL_INSTRUMENTATION_FOR := Launcher3
78
79include $(BUILD_PACKAGE)
vadimt8296c612019-05-29 12:07:55 -070080
81include $(call all-makefiles-under,$(LOCAL_PATH))