blob: 1c2c67c65050ff7b1399a052a511e27c658ec8a5 [file] [log] [blame]
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -07001# Copyright (C) 2015 The Android Open Source Project
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
15LOCAL_PATH:= $(call my-dir)
16
Eino-Ville Talvalaeeeb84b2017-02-25 11:52:33 -080017# CtsCameraUtils package
18
19include $(CLEAR_VARS)
20
Brett Chabotb6ae8382019-02-15 11:21:22 -080021LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \
Eino-Ville Talvalaeeeb84b2017-02-25 11:52:33 -080022 mockito-target-minus-junit4 \
23 android-ex-camera2
24
25LOCAL_SRC_FILES := \
26 $(call all-java-files-under, utils/src) \
27 $(call all-renderscript-files-under, utils/src)
28
29LOCAL_MODULE := CtsCameraUtils
30
Jayant Chowdhary39848642019-09-10 17:09:14 -070031LOCAL_SDK_VERSION := test_current
jdesprez6b119e52017-05-04 15:30:11 -070032-include cts/error_prone_rules_tests.mk
Eino-Ville Talvalaeeeb84b2017-02-25 11:52:33 -080033include $(BUILD_STATIC_JAVA_LIBRARY)
34
Emilian Peevf548add2018-11-23 15:29:48 +000035# Reusable Camera performance test classes and helpers
36include $(CLEAR_VARS)
37
Emilian Peevc6b9d432018-11-27 14:31:24 +000038LOCAL_MODULE := cts-camera-performance-tests
Emilian Peevf548add2018-11-23 15:29:48 +000039
40LOCAL_MODULE_TAGS := tests
41
42# Include both the 32 and 64 bit versions
43LOCAL_MULTILIB := both
44
Brett Chabotb6ae8382019-02-15 11:21:22 -080045LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \
46 ctstestrunner-axt \
Emilian Peevf548add2018-11-23 15:29:48 +000047 mockito-target-minus-junit4 \
48 CtsCameraUtils \
49 truth-prebuilt \
Brett Chabotb6ae8382019-02-15 11:21:22 -080050 androidx.test.rules
Emilian Peevf548add2018-11-23 15:29:48 +000051
Shuzhen Wangadff38b2020-03-26 11:07:39 -070052LOCAL_MANIFEST_FILE := AndroidManifest-lib.xml
53LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Emilian Peevf548add2018-11-23 15:29:48 +000054LOCAL_SRC_FILES := \
Changfei Chen0e0fd9a2019-12-10 16:51:20 -080055 src/android/hardware/camera2/cts/testcases/Camera2AndroidTestRule.java \
Shuzhen Wangadff38b2020-03-26 11:07:39 -070056 src/android/hardware/camera2/cts/Camera2SurfaceViewCtsActivity.java \
57 src/android/hardware/camera2/cts/testcases/Camera2SurfaceViewTestCase.java \
Emilian Peevdca9bf72018-11-30 13:32:49 +000058 src/android/hardware/camera2/cts/PerformanceTest.java \
Changfei Chen0e0fd9a2019-12-10 16:51:20 -080059 src/android/hardware/cts/CameraPerformanceTestHelper.java \
Shuzhen Wangadff38b2020-03-26 11:07:39 -070060 src/android/hardware/cts/LegacyCameraPerformanceTest.java \
61 src/android/hardware/camera2/cts/RecordingTest.java
Emilian Peevf548add2018-11-23 15:29:48 +000062
63LOCAL_SDK_VERSION := test_current
64
65LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
66
Emilian Peevc6b9d432018-11-27 14:31:24 +000067include $(BUILD_STATIC_JAVA_LIBRARY)
Emilian Peevf548add2018-11-23 15:29:48 +000068
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -070069# CtsCameraTestCases package
70
71include $(CLEAR_VARS)
72
73LOCAL_MODULE_TAGS := tests
74
Yin-Chia Yehf7211d92016-02-01 11:21:58 -080075# Include both the 32 and 64 bit versions
76LOCAL_MULTILIB := both
77
Brett Chabotb6ae8382019-02-15 11:21:22 -080078LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \
79 ctstestrunner-axt \
Guang Zhua21da062016-08-15 14:48:42 -070080 mockito-target-minus-junit4 \
Eino-Ville Talvalaeeeb84b2017-02-25 11:52:33 -080081 android-ex-camera2 \
Svetoslav Ganoveb765892018-01-12 22:12:55 -080082 CtsCameraUtils \
Yin-Chia Yehde617c22018-05-14 08:50:37 -070083 truth-prebuilt \
Yin-Chia Yeh18a79aa2018-07-16 12:14:47 -070084 androidx.heifwriter_heifwriter \
Brett Chabotb6ae8382019-02-15 11:21:22 -080085 androidx.test.rules
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -070086
Eino-Ville Talvalacfa26b52016-03-07 14:54:52 -080087LOCAL_JNI_SHARED_LIBRARIES := \
88 libctscamera2_jni \
Emilian Peevf8f43732019-01-08 16:50:15 +000089 libnativehelper_compat_libc++ \
Yin-Chia Yeh7227f362015-12-11 14:47:57 -080090
Yin-Chia Yeh31eb5932016-09-28 15:43:44 -070091LOCAL_NDK_STL_VARIANT := c++_shared
92
Eino-Ville Talvalaeeeb84b2017-02-25 11:52:33 -080093LOCAL_SRC_FILES := \
94 $(call all-java-files-under, src) \
95 $(call all-renderscript-files-under, src)
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -070096
Stuart Scott2ff78ae2016-02-18 19:25:52 -080097# Tag this module as a cts test artifact
Dan Shi891eb2b2020-03-31 12:53:18 -070098LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests
Yin-Chia Yeh6a145172015-12-02 17:38:34 -080099
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -0700100LOCAL_PACKAGE_NAME := CtsCameraTestCases
101
Eino-Ville Talvala4e7cd0a2017-03-01 15:57:50 -0800102LOCAL_SDK_VERSION := test_current
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -0700103
Jiyong Park925a7662018-01-24 15:10:49 +0900104LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -0700105
106cts_runtime_hint := 120
107
108include $(BUILD_CTS_PACKAGE)
Yin-Chia Yeh7227f362015-12-11 14:47:57 -0800109
110include $(call all-makefiles-under,$(LOCAL_PATH))