Home | History | Annotate | Download | only in camera
      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 
     17 # CtsCameraUtils package
     18 
     19 include $(CLEAR_VARS)
     20 
     21 LOCAL_STATIC_JAVA_LIBRARIES := compatibility-device-util-axt \
     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 
     31 LOCAL_SDK_VERSION := current
     32 -include cts/error_prone_rules_tests.mk
     33 include $(BUILD_STATIC_JAVA_LIBRARY)
     34 
     35 # Reusable Camera performance test classes and helpers
     36 include $(CLEAR_VARS)
     37 
     38 LOCAL_MODULE := cts-camera-performance-tests
     39 
     40 LOCAL_MODULE_TAGS := tests
     41 
     42 # Include both the 32 and 64 bit versions
     43 LOCAL_MULTILIB := both
     44 
     45 LOCAL_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 
     52 LOCAL_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 
     58 LOCAL_SDK_VERSION := test_current
     59 
     60 LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
     61 
     62 include $(BUILD_STATIC_JAVA_LIBRARY)
     63 
     64 # CtsCameraTestCases package
     65 
     66 include $(CLEAR_VARS)
     67 
     68 LOCAL_MODULE_TAGS := tests
     69 
     70 # Include both the 32 and 64 bit versions
     71 LOCAL_MULTILIB := both
     72 
     73 LOCAL_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 
     82 LOCAL_JNI_SHARED_LIBRARIES := \
     83 	libctscamera2_jni \
     84 	libnativehelper_compat_libc++ \
     85 
     86 LOCAL_NDK_STL_VARIANT := c++_shared
     87 
     88 LOCAL_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
     93 LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant
     94 
     95 LOCAL_PACKAGE_NAME := CtsCameraTestCases
     96 
     97 LOCAL_SDK_VERSION := test_current
     98 
     99 LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
    100 
    101 cts_runtime_hint := 120
    102 
    103 include $(BUILD_CTS_PACKAGE)
    104 
    105 include $(call all-makefiles-under,$(LOCAL_PATH))
    106