blob: 080c98bb345258f646356d2bff03209f88a55137 [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 Song896a7152019-03-21 14:06:02 -070026 androidx.test.uiautomator_uiautomator
27
28ifneq (,$(wildcard frameworks/base))
29else
30 LOCAL_STATIC_JAVA_LIBRARIES += libSharedSystemUI
Vadim Trysheva279b2e2018-06-18 19:14:44 -070031
Hyunyoung Song40bea552019-03-22 14:40:49 -070032 LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \
Hyunyoung Song40bea552019-03-22 14:40:49 -070033 ../src/com/android/launcher3/util/SecureSettingsObserver.java \
34 ../src/com/android/launcher3/TestProtocol.java
35endif
Vadim Trysheva279b2e2018-06-18 19:14:44 -070036
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070037LOCAL_MODULE := ub-launcher-aosp-tapl
Winson Chungf25461c2019-03-11 16:23:45 -070038LOCAL_SDK_VERSION := current
Vadim Trysheva279b2e2018-06-18 19:14:44 -070039
40include $(BUILD_STATIC_JAVA_LIBRARY)
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070041
42#
43# Build rule for Launcher3Tests
44#
45include $(CLEAR_VARS)
46
47LOCAL_MODULE_TAGS := tests
48LOCAL_STATIC_JAVA_LIBRARIES := \
Winson Chungf25461c2019-03-11 16:23:45 -070049 androidx.test.runner \
50 androidx.test.rules \
51 androidx.test.uiautomator_uiautomator \
52 mockito-target-minus-junit4
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070053
54ifneq (,$(wildcard frameworks/base))
Winson Chungf25461c2019-03-11 16:23:45 -070055 LOCAL_PRIVATE_PLATFORM_APIS := true
56 LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070057else
Winson Chungf25461c2019-03-11 16:23:45 -070058 LOCAL_SDK_VERSION := 28
59 LOCAL_MIN_SDK_VERSION := 21
60 LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070061endif
62
63LOCAL_SRC_FILES := $(call all-java-files-under, src)
64LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
65
66LOCAL_PACKAGE_NAME := Launcher3Tests
67
68LOCAL_INSTRUMENTATION_FOR := Launcher3
69
70include $(BUILD_PACKAGE)