1# Copyright (c) 2021 - 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("./camera.gni") 15 16if (defined(ohos_lite)) { 17 group("camera_hal") { 18 deps = [ 19 "hdi_service/v1_0:camera_host_service_1.0", 20 "vdi_base/common/buffer_manager:camera_buffer_manager", 21 "vdi_base/common/utils:camera_utils", 22 ] 23 } 24 group("camera_hal_unittest") { 25 deps = [] 26 } 27} else if (is_standard_system) { 28 group("camera_hal") { 29 if (target_cpu == "x86_64") { 30 deps = [] 31 } else { 32 deps = [ 33 "hdi_service/v1_0:camera_host_service_1.0", 34 "vdi_base/common/buffer_manager:camera_buffer_manager", 35 "vdi_base/common/utils:camera_utils", 36 ] 37 if (drivers_peripheral_camera_feature_usb == true) { 38 deps += [ "vdi_base/usb_camera:usb_camera_vdi_impl" ] 39 } 40 } 41 } 42 group("camera_hal_unittest") { 43 if (target_cpu == "x86_64") { 44 deps = [] 45 } else { 46 testonly = true 47 deps = [ 48 # acceptance unit test 49 "test/hdi/v1_0:camera_test_at", 50 "test/hdi/v1_1:camera_test_hdi_V1_1", 51 52 # benchmark test 53 "test/benchmarktest/v1_0:hdf_camera_benchmark_test", 54 "test/benchmarktest/v1_1:hdf_camera_benchmark_test_v1_1", 55 56 # v4l2 unit test 57 "test/ut/v4l2:camera_test_v4l2_ut", 58 59 # buffer manager unit test 60 "test/ut/buffer_manager:camera_buffer_manager_ut", 61 ] 62 if (drivers_peripheral_camera_feature_usb == true) { 63 deps += [ "test/ut/usb_camera:camera_usb_test_ut" ] 64 } 65 } 66 } 67} 68