• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.gni")
16import("//build/ohos_var.gni")
17import("//build/test.gni")
18import("//test/xts/tools/build/suite.gni")
19import("$base_root/drivers/peripheral/camera/camera.gni")
20module_output_path = "hats/camera"
21
22ohos_moduletest_suite("HatsHdfCameraMgTestv2") {
23  configs = [ ":hdf_cameramgv2" ]
24  module_out_path = module_output_path
25  sources = [
26    "./src/camera_flashlight_test_v1_2.cpp",
27    "./src/camera_hdi_test_v1_2.cpp",
28    "./src/camera_prelaunch_test_v1_2.cpp",
29    "./src/camera_stream_test_v1_2.cpp",
30    "./src/camera_tag_test_v1_2.cpp",
31    "./src/front_camera_hdi_test_v1_2.cpp",
32    "./src/front_camera_tag_test_v1_2.cpp",
33    "./src/hdi_common_v1_2.cpp",
34  ]
35  deps = [
36    "//third_party/googletest:gmock_main",
37    "//third_party/googletest:gtest",
38    "//third_party/googletest:gtest_main",
39  ]
40
41  if (is_standard_system) {
42    external_deps = [
43      "c_utils:utils",
44      "hdf_core:libhdf_host",
45      "hdf_core:libhdf_ipc_adapter",
46      "hdf_core:libhdf_utils",
47      "hdf_core:libhdi",
48      "hilog:libhilog",
49      "ipc:ipc_single",
50    ]
51  } else {
52    external_deps = [ "hilog:libhilog" ]
53  }
54
55  external_deps += [
56    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
57    "drivers_interface_camera:libcamera_proxy_1.2",
58    "drivers_interface_camera:metadata",
59    "graphic_surface:surface",
60    "samgr:samgr_proxy",
61  ]
62
63  subsystem_name = "xts"
64  part_name = "hats"
65}
66config("hdf_cameramgv2") {
67  include_dirs = [
68    "./include",
69    "//third_party/googletest/googletest/include",
70    "$camera_path/../../../display/interfaces/include",
71    "$camera_path/../../../display/hdi_service/gralloc/include",
72    "$camera_path/../../interfaces/include",
73    "$camera_path/include",
74  ]
75}
76