1/* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_library_headers { 23 name: "libgoogle_camera_hal_tests_headers", 24 vendor: true, 25 export_include_dirs: [ 26 ".", 27 ], 28} 29 30cc_library_shared { 31 name: "libgoogle_camera_hal_tests", 32 defaults: ["google_camera_hal_defaults"], 33 compile_multilib: "first", 34 owner: "google", 35 vendor: true, 36 srcs: [ 37 "camera_device_session_tests.cc", 38 "camera_device_tests.cc", 39 "camera_id_manager_tests.cc", 40 "camera_provider_tests.cc", 41 "gralloc_buffer_allocator_tests.cc", 42 "hal_camera_metadata_tests.cc", 43 "hwl_buffer_allocator_tests.cc", 44 "internal_stream_manager_tests.cc", 45 "mock_device_session_hwl.cc", 46 "pipeline_request_id_manager_tests.cc", 47 "process_block_tests.cc", 48 "request_processor_tests.cc", 49 "result_dispatcher_tests.cc", 50 "result_processor_tests.cc", 51 "stream_buffer_cache_manager_tests.cc", 52 "test_utils.cc", 53 "vendor_tag_tests.cc", 54 "zsl_buffer_manager_tests.cc", 55 ], 56 shared_libs: [ 57 "android.hardware.camera.provider@2.4", 58 "android.hardware.graphics.mapper@2.0", 59 "android.hardware.graphics.mapper@3.0", 60 "android.hardware.graphics.mapper@4.0", 61 "lib_profiler", 62 "libcamera_metadata", 63 "libcutils", 64 "libgooglecamerahal", 65 "libgooglecamerahalutils", 66 "libhardware", 67 "libhidlbase", 68 "liblog", 69 "libutils", 70 ], 71 static_libs: [ 72 "libgmock", 73 "libgtest", 74 ], 75 header_libs: [ 76 "libhardware_headers", 77 ], 78 export_shared_lib_headers: [ 79 "lib_profiler", 80 ], 81 export_include_dirs: ["."], 82} 83 84cc_test { 85 name: "google_camera_hal_tests", 86 compile_multilib: "first", 87 owner: "google", 88 vendor: true, 89 gtest: true, 90 srcs: [ 91 "google_camera_hal_tests.cc", 92 ], 93 shared_libs: [ 94 "libgoogle_camera_hal_tests", 95 "liblog", 96 "libutils", 97 ], 98 local_include_dirs: ["."], 99} 100