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("HatsHdfCamerabenchmarkTestV0") {
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/hdi/v1_0/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.0",
49      "hdf_core:libhdf_host",
50      "hdf_core:libhdf_ipc_adapter",
51      "hdf_core:libhdf_utils",
52      "hdf_core:libhdi",
53      "hilog:libhilog",
54      "ipc:ipc_single",
55    ]
56  } else {
57    external_deps = [ "hilog:libhilog" ]
58  }
59
60  external_deps += [
61    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
62    "drivers_interface_camera:metadata",
63    "drivers_interface_display:libdisplay_composer_proxy_1.0",
64    "graphic_surface:surface",
65    "samgr:samgr_proxy",
66  ]
67
68  subsystem_name = "hdf"
69  part_name = "drivers_interface_camera"
70}
71