1# Copyright (c) 2024 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 14base_root = "../../../../../../../" 15import("//build/ohos_var.gni") 16import("../../../../../tools/build/suite.gni") 17 18import("//build/ohos.gni") 19import("//build/test.gni") 20import("$base_root/drivers/peripheral/camera/camera.gni") 21module_output_path = "hats/camera" 22 23ohos_moduletest_suite("HatsHdfCamerabenchmarkv2Test") { 24 testonly = true 25 module_out_path = module_output_path 26 sources = [ 27 "./../v1_0/src/benchmark_common.cpp", 28 "./../v1_1/src/benchmark_common.cpp", 29 "./src/benchmark_common.cpp", 30 "./src/camera_benchmark_test.cpp", 31 ] 32 include_dirs = [ 33 # common includes 34 "./include", 35 "$base_root/drivers/peripheral/camera/test/common/v1_0/include/", 36 "$base_root/drivers/peripheral/camera/test/common/v1_1/include/", 37 "$base_root/drivers/peripheral/camera/test/common/v1_2/include/", 38 "$base_root/drivers/peripheral/camera/test/hdi/v1_2/include/", 39 "$base_root/system/core/include/cutils", 40 "//third_party/googletest/googletest/include", 41 "$base_root/drivers/peripheral/camera/interfaces/include", 42 "$base_root/drivers/peripheral/camera/vdi_base/common/include", 43 ] 44 deps = [ 45 "//third_party/benchmark", 46 "//third_party/googletest:gmock_main", 47 "//third_party/googletest:gtest", 48 "//third_party/googletest:gtest_main", 49 ] 50 if (is_standard_system) { 51 external_deps = [ 52 "c_utils:utils", 53 "drivers_interface_camera:libcamera_proxy_1.2", 54 "hdf_core:libhdf_utils", 55 "hilog:libhilog", 56 "ipc:ipc_single", 57 ] 58 } else { 59 external_deps = [ "hilog:libhilog" ] 60 } 61 62 external_deps += [ 63 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 64 "drivers_interface_camera:metadata", 65 "graphic_surface:surface", 66 "samgr:samgr_proxy", 67 ] 68 69 subsystem_name = "hdf" 70 part_name = "drivers_interface_camera" 71} 72