Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Eino-Ville Talvala | eeeb84b | 2017-02-25 11:52:33 -0800 | [diff] [blame] | 17 | # CtsCameraUtils package |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | |
Brett Chabot | b6ae838 | 2019-02-15 11:21:22 -0800 | [diff] [blame] | 21 | LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ |
Eino-Ville Talvala | eeeb84b | 2017-02-25 11:52:33 -0800 | [diff] [blame] | 22 | mockito-target-minus-junit4 \ |
| 23 | android-ex-camera2 |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | $(call all-java-files-under, utils/src) \ |
| 27 | $(call all-renderscript-files-under, utils/src) |
| 28 | |
| 29 | LOCAL_MODULE := CtsCameraUtils |
| 30 | |
Jayant Chowdhary | 3984864 | 2019-09-10 17:09:14 -0700 | [diff] [blame] | 31 | LOCAL_SDK_VERSION := test_current |
jdesprez | 6b119e5 | 2017-05-04 15:30:11 -0700 | [diff] [blame] | 32 | -include cts/error_prone_rules_tests.mk |
Eino-Ville Talvala | eeeb84b | 2017-02-25 11:52:33 -0800 | [diff] [blame] | 33 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 34 | |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 35 | # Reusable Camera performance test classes and helpers |
| 36 | include $(CLEAR_VARS) |
| 37 | |
Emilian Peev | c6b9d43 | 2018-11-27 14:31:24 +0000 | [diff] [blame] | 38 | LOCAL_MODULE := cts-camera-performance-tests |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 39 | |
| 40 | LOCAL_MODULE_TAGS := tests |
| 41 | |
| 42 | # Include both the 32 and 64 bit versions |
| 43 | LOCAL_MULTILIB := both |
| 44 | |
Brett Chabot | b6ae838 | 2019-02-15 11:21:22 -0800 | [diff] [blame] | 45 | LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ |
| 46 | ctstestrunner-axt \ |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 47 | mockito-target-minus-junit4 \ |
| 48 | CtsCameraUtils \ |
| 49 | truth-prebuilt \ |
Brett Chabot | b6ae838 | 2019-02-15 11:21:22 -0800 | [diff] [blame] | 50 | androidx.test.rules |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 51 | |
Shuzhen Wang | adff38b | 2020-03-26 11:07:39 -0700 | [diff] [blame] | 52 | LOCAL_MANIFEST_FILE := AndroidManifest-lib.xml |
| 53 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 54 | LOCAL_SRC_FILES := \ |
Changfei Chen | 0e0fd9a | 2019-12-10 16:51:20 -0800 | [diff] [blame] | 55 | src/android/hardware/camera2/cts/testcases/Camera2AndroidTestRule.java \ |
Shuzhen Wang | adff38b | 2020-03-26 11:07:39 -0700 | [diff] [blame] | 56 | src/android/hardware/camera2/cts/Camera2SurfaceViewCtsActivity.java \ |
| 57 | src/android/hardware/camera2/cts/testcases/Camera2SurfaceViewTestCase.java \ |
Emilian Peev | dca9bf7 | 2018-11-30 13:32:49 +0000 | [diff] [blame] | 58 | src/android/hardware/camera2/cts/PerformanceTest.java \ |
Changfei Chen | 0e0fd9a | 2019-12-10 16:51:20 -0800 | [diff] [blame] | 59 | src/android/hardware/cts/CameraPerformanceTestHelper.java \ |
Shuzhen Wang | adff38b | 2020-03-26 11:07:39 -0700 | [diff] [blame] | 60 | src/android/hardware/cts/LegacyCameraPerformanceTest.java \ |
| 61 | src/android/hardware/camera2/cts/RecordingTest.java |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 62 | |
| 63 | LOCAL_SDK_VERSION := test_current |
| 64 | |
| 65 | LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs |
| 66 | |
Emilian Peev | c6b9d43 | 2018-11-27 14:31:24 +0000 | [diff] [blame] | 67 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Emilian Peev | f548add | 2018-11-23 15:29:48 +0000 | [diff] [blame] | 68 | |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 69 | # CtsCameraTestCases package |
| 70 | |
| 71 | include $(CLEAR_VARS) |
| 72 | |
| 73 | LOCAL_MODULE_TAGS := tests |
| 74 | |
Yin-Chia Yeh | f7211d9 | 2016-02-01 11:21:58 -0800 | [diff] [blame] | 75 | # Include both the 32 and 64 bit versions |
| 76 | LOCAL_MULTILIB := both |
| 77 | |
Brett Chabot | b6ae838 | 2019-02-15 11:21:22 -0800 | [diff] [blame] | 78 | LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ |
| 79 | ctstestrunner-axt \ |
Guang Zhu | a21da06 | 2016-08-15 14:48:42 -0700 | [diff] [blame] | 80 | mockito-target-minus-junit4 \ |
Eino-Ville Talvala | eeeb84b | 2017-02-25 11:52:33 -0800 | [diff] [blame] | 81 | android-ex-camera2 \ |
Svetoslav Ganov | eb76589 | 2018-01-12 22:12:55 -0800 | [diff] [blame] | 82 | CtsCameraUtils \ |
Yin-Chia Yeh | de617c2 | 2018-05-14 08:50:37 -0700 | [diff] [blame] | 83 | truth-prebuilt \ |
Yin-Chia Yeh | 18a79aa | 2018-07-16 12:14:47 -0700 | [diff] [blame] | 84 | androidx.heifwriter_heifwriter \ |
Brett Chabot | b6ae838 | 2019-02-15 11:21:22 -0800 | [diff] [blame] | 85 | androidx.test.rules |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 86 | |
Eino-Ville Talvala | cfa26b5 | 2016-03-07 14:54:52 -0800 | [diff] [blame] | 87 | LOCAL_JNI_SHARED_LIBRARIES := \ |
| 88 | libctscamera2_jni \ |
Emilian Peev | f8f4373 | 2019-01-08 16:50:15 +0000 | [diff] [blame] | 89 | libnativehelper_compat_libc++ \ |
Yin-Chia Yeh | 7227f36 | 2015-12-11 14:47:57 -0800 | [diff] [blame] | 90 | |
Yin-Chia Yeh | 31eb593 | 2016-09-28 15:43:44 -0700 | [diff] [blame] | 91 | LOCAL_NDK_STL_VARIANT := c++_shared |
| 92 | |
Eino-Ville Talvala | eeeb84b | 2017-02-25 11:52:33 -0800 | [diff] [blame] | 93 | LOCAL_SRC_FILES := \ |
| 94 | $(call all-java-files-under, src) \ |
| 95 | $(call all-renderscript-files-under, src) |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 96 | |
Stuart Scott | 2ff78ae | 2016-02-18 19:25:52 -0800 | [diff] [blame] | 97 | # Tag this module as a cts test artifact |
Dan Shi | 891eb2b | 2020-03-31 12:53:18 -0700 | [diff] [blame] | 98 | LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests |
Yin-Chia Yeh | 6a14517 | 2015-12-02 17:38:34 -0800 | [diff] [blame] | 99 | |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 100 | LOCAL_PACKAGE_NAME := CtsCameraTestCases |
| 101 | |
Eino-Ville Talvala | 4e7cd0a | 2017-03-01 15:57:50 -0800 | [diff] [blame] | 102 | LOCAL_SDK_VERSION := test_current |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 103 | |
Jiyong Park | 925a766 | 2018-01-24 15:10:49 +0900 | [diff] [blame] | 104 | LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs |
Yin-Chia Yeh | 96f4d40 | 2015-10-29 17:53:39 -0700 | [diff] [blame] | 105 | |
| 106 | cts_runtime_hint := 120 |
| 107 | |
| 108 | include $(BUILD_CTS_PACKAGE) |
Yin-Chia Yeh | 7227f36 | 2015-12-11 14:47:57 -0800 | [diff] [blame] | 109 | |
| 110 | include $(call all-makefiles-under,$(LOCAL_PATH)) |