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 15LOCAL_PATH:= $(call my-dir) 16 17# CtsCameraUtils package 18 19include $(CLEAR_VARS) 20 21LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ 22 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 31LOCAL_SDK_VERSION := current 32-include cts/error_prone_rules_tests.mk 33include $(BUILD_STATIC_JAVA_LIBRARY) 34 35# Reusable Camera performance test classes and helpers 36include $(CLEAR_VARS) 37 38LOCAL_MODULE := cts-camera-performance-tests 39 40LOCAL_MODULE_TAGS := tests 41 42# Include both the 32 and 64 bit versions 43LOCAL_MULTILIB := both 44 45LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ 46 ctstestrunner-axt \ 47 mockito-target-minus-junit4 \ 48 CtsCameraUtils \ 49 truth-prebuilt \ 50 androidx.test.rules 51 52LOCAL_SRC_FILES := \ 53 src/android/hardware/camera2/cts/testcases/Camera2AndroidTestCase.java \ 54 src/android/hardware/camera2/cts/PerformanceTest.java \ 55 src/android/hardware/cts/CameraTestCase.java \ 56 src/android/hardware/cts/LegacyCameraPerformanceTest.java 57 58LOCAL_SDK_VERSION := test_current 59 60LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 61 62include $(BUILD_STATIC_JAVA_LIBRARY) 63 64# CtsCameraTestCases package 65 66include $(CLEAR_VARS) 67 68LOCAL_MODULE_TAGS := tests 69 70# Include both the 32 and 64 bit versions 71LOCAL_MULTILIB := both 72 73LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \ 74 ctstestrunner-axt \ 75 mockito-target-minus-junit4 \ 76 android-ex-camera2 \ 77 CtsCameraUtils \ 78 truth-prebuilt \ 79 androidx.heifwriter_heifwriter \ 80 androidx.test.rules 81 82LOCAL_JNI_SHARED_LIBRARIES := \ 83 libctscamera2_jni \ 84 libnativehelper_compat_libc++ \ 85 86LOCAL_NDK_STL_VARIANT := c++_shared 87 88LOCAL_SRC_FILES := \ 89 $(call all-java-files-under, src) \ 90 $(call all-renderscript-files-under, src) 91 92# Tag this module as a cts test artifact 93LOCAL_COMPATIBILITY_SUITE := cts vts10 general-tests 94 95LOCAL_PACKAGE_NAME := CtsCameraTestCases 96 97LOCAL_SDK_VERSION := test_current 98 99LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 100 101cts_runtime_hint := 120 102 103include $(BUILD_CTS_PACKAGE) 104 105include $(call all-makefiles-under,$(LOCAL_PATH)) 106