• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("HatsHdfCamerabenchmarkv1Test") {
24  testonly = true
25  module_out_path = module_output_path
26  sources = [
27    "./../v1_0/src/benchmark_common.cpp",
28    "./src/benchmark_common.cpp",
29    "./src/camera_benchmark_test.cpp",
30  ]
31  include_dirs = [
32    # common includes
33    "./include",
34    "$base_root/drivers/peripheral/camera/test/common/v1_0/include/",
35    "$base_root/drivers/peripheral/camera/test/common/v1_1/include/",
36    "$base_root/drivers/peripheral/camera/test/hdi/v1_1/include/",
37    "$base_root/system/core/include/cutils",
38    "//third_party/googletest/googletest/include",
39    "$base_root/drivers/peripheral/camera/interfaces/include",
40    "$base_root/drivers/peripheral/camera/vdi_base/common/include",
41  ]
42  deps = [
43    "//third_party/benchmark",
44    "//third_party/googletest:gmock_main",
45    "//third_party/googletest:gtest",
46    "//third_party/googletest:gtest_main",
47  ]
48  if (is_standard_system) {
49    external_deps = [
50      "c_utils:utils",
51      "drivers_interface_camera:libcamera_proxy_1.1",
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