1# Copyright (c) 2022-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("HatsHdfCamerabenchmarkv0Test") { 24 testonly = true 25 module_out_path = module_output_path 26 sources = [ 27 "./src/benchmark_common.cpp", 28 "./src/hdf_camera_benchmark_test.cpp", 29 ] 30 include_dirs = [ 31 # common includes 32 "./include", 33 "$base_root/drivers/peripheral/camera/test/common/v1_0/include/", 34 "$base_root/drivers/peripheral/camera/test/hdi/v1_0/include/", 35 "$base_root/system/core/include/cutils", 36 "//third_party/googletest/googletest/include", 37 "$base_root/drivers/peripheral/camera/interfaces/include", 38 "$base_root/drivers/peripheral/camera/vdi_base/common/include", 39 ] 40 deps = [ 41 "//third_party/benchmark", 42 "//third_party/googletest:gmock_main", 43 "//third_party/googletest:gtest", 44 "//third_party/googletest:gtest_main", 45 ] 46 if (is_standard_system) { 47 external_deps = [ 48 "c_utils:utils", 49 "drivers_interface_camera:libcamera_proxy_1.0", 50 "hdf_core:libhdf_host", 51 "hdf_core:libhdf_ipc_adapter", 52 "hdf_core:libhdf_utils", 53 "hdf_core:libhdi", 54 "hilog:libhilog", 55 "ipc:ipc_single", 56 ] 57 } else { 58 external_deps = [ "hilog:libhilog" ] 59 } 60 61 external_deps += [ 62 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 63 "drivers_interface_camera:metadata", 64 "drivers_interface_display:libdisplay_composer_proxy_1.0", 65 "graphic_surface:surface", 66 "samgr:samgr_proxy", 67 ] 68 69 subsystem_name = "hdf" 70 part_name = "drivers_interface_camera" 71} 72