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