2015-03-02 11:55:42 -08:00
|
|
|
# Copyright (C) 2015 The Android Open Source Project
|
2011-05-20 16:17:17 -07:00
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
#
|
2015-03-02 11:55:42 -08:00
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
2018-06-18 19:14:44 -07:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Build rule for Tapl library.
|
|
|
|
|
#
|
|
|
|
|
include $(CLEAR_VARS)
|
2018-08-14 15:21:45 -07:00
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
|
|
|
androidx.annotation_annotation \
|
2018-10-23 21:17:58 -07:00
|
|
|
androidx.test.runner \
|
|
|
|
|
androidx.test.rules \
|
2019-03-21 14:06:02 -07:00
|
|
|
androidx.test.uiautomator_uiautomator
|
|
|
|
|
|
|
|
|
|
ifneq (,$(wildcard frameworks/base))
|
|
|
|
|
else
|
2019-08-08 00:58:05 -07:00
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib
|
2018-06-18 19:14:44 -07:00
|
|
|
|
2019-03-22 14:40:49 -07:00
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \
|
2019-05-08 15:29:37 -07:00
|
|
|
../src/com/android/launcher3/ResourceUtils.java \
|
2019-03-22 14:40:49 -07:00
|
|
|
../src/com/android/launcher3/util/SecureSettingsObserver.java \
|
2019-05-23 00:50:08 -07:00
|
|
|
../src/com/android/launcher3/testing/TestProtocol.java
|
2019-03-22 14:40:49 -07:00
|
|
|
endif
|
2018-06-18 19:14:44 -07:00
|
|
|
|
2018-09-05 09:57:59 -07:00
|
|
|
LOCAL_MODULE := ub-launcher-aosp-tapl
|
2019-09-06 12:04:27 -07:00
|
|
|
LOCAL_SDK_VERSION := system_current
|
2018-06-18 19:14:44 -07:00
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
2018-09-05 09:57:59 -07:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Build rule for Launcher3Tests
|
|
|
|
|
#
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
2019-03-11 16:23:45 -07:00
|
|
|
androidx.test.runner \
|
|
|
|
|
androidx.test.rules \
|
|
|
|
|
androidx.test.uiautomator_uiautomator \
|
2019-11-13 17:49:35 -08:00
|
|
|
mockito-target-minus-junit4 \
|
2020-02-04 18:56:40 -08:00
|
|
|
launcher_log_protos_lite
|
2018-09-05 09:57:59 -07:00
|
|
|
|
|
|
|
|
ifneq (,$(wildcard frameworks/base))
|
2019-03-11 16:23:45 -07:00
|
|
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
|
2018-09-05 09:57:59 -07:00
|
|
|
else
|
2019-11-04 13:12:32 -08:00
|
|
|
LOCAL_SDK_VERSION := system_28
|
2019-03-11 16:23:45 -07:00
|
|
|
LOCAL_MIN_SDK_VERSION := 21
|
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
|
2018-09-05 09:57:59 -07:00
|
|
|
endif
|
|
|
|
|
|
2020-04-20 14:41:23 -07:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
|
$(call all-java-files-under, src) \
|
|
|
|
|
$(call all-java-files-under, src_common)
|
|
|
|
|
|
|
|
|
|
|
2018-09-05 09:57:59 -07:00
|
|
|
LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
|
|
|
|
|
|
|
|
|
|
LOCAL_PACKAGE_NAME := Launcher3Tests
|
|
|
|
|
|
|
|
|
|
LOCAL_INSTRUMENTATION_FOR := Launcher3
|
|
|
|
|
|
|
|
|
|
include $(BUILD_PACKAGE)
|
2019-05-29 12:07:55 -07:00
|
|
|
|
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|