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 \ |
Vadim Tryshev | 0a9f3ab | 2018-08-15 15:28:47 -0700 | [diff] [blame] | 24 | androidx-test \ |
| 25 | androidx.test.uiautomator_uiautomator \ |
Sunny Goyal | d230307 | 2018-08-14 15:21:45 -0700 | [diff] [blame] | 26 | libSharedSystemUI |
Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 27 | |
Vadim Tryshev | b02bcd4 | 2018-08-07 13:16:40 -0700 | [diff] [blame] | 28 | LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \ |
Vadim Tryshev | b6398a1 | 2018-08-14 19:53:43 -0700 | [diff] [blame] | 29 | ../quickstep/src/com/android/quickstep/SwipeUpSetting.java \ |
| 30 | ../src/com/android/launcher3/TestProtocol.java |
Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 31 | |
| 32 | LOCAL_SDK_VERSION := current |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame^] | 33 | LOCAL_MODULE := ub-launcher-aosp-tapl |
Vadim Tryshev | a279b2e | 2018-06-18 19:14:44 -0700 | [diff] [blame] | 34 | |
| 35 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame^] | 36 | |
| 37 | # |
| 38 | # Build rule for Launcher3Tests |
| 39 | # |
| 40 | include $(CLEAR_VARS) |
| 41 | |
| 42 | LOCAL_MODULE_TAGS := tests |
| 43 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 44 | androidx-test \ |
| 45 | androidx.test.uiautomator_uiautomator \ |
| 46 | mockito-target-minus-junit4 |
| 47 | |
| 48 | ifneq (,$(wildcard frameworks/base)) |
| 49 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 50 | LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl |
| 51 | else |
| 52 | LOCAL_SDK_VERSION := 28 |
| 53 | LOCAL_MIN_SDK_VERSION := 21 |
| 54 | LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl |
| 55 | endif |
| 56 | |
| 57 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 58 | LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml |
| 59 | |
| 60 | LOCAL_PACKAGE_NAME := Launcher3Tests |
| 61 | |
| 62 | LOCAL_INSTRUMENTATION_FOR := Launcher3 |
| 63 | |
| 64 | include $(BUILD_PACKAGE) |