• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.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("HatsHdfCameraMgTestv1") {
23  #testonly = true
24  configs = [ ":hdf_cameramgv1" ]
25  module_out_path = module_output_path
26  sources = [
27    "./src/camera_hdi_uttest_v1_1.cpp",
28    "./src/hdi_common_v1_1.cpp",
29  ]
30  deps = [
31    "//third_party/googletest:gmock_main",
32    "//third_party/googletest:gtest",
33    "//third_party/googletest:gtest_main",
34  ]
35
36  if (is_standard_system) {
37    external_deps = [
38      "c_utils:utils",
39      "hdf_core:libhdf_host",
40      "hdf_core:libhdf_ipc_adapter",
41      "hdf_core:libhdf_utils",
42      "hdf_core:libhdi",
43      "hilog:libhilog",
44      "ipc:ipc_single",
45    ]
46  } else {
47    external_deps = [ "hilog:libhilog" ]
48  }
49
50  external_deps += [
51    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
52    "drivers_interface_camera:libcamera_proxy_1.1",
53    "drivers_interface_camera:metadata",
54    "drivers_interface_display:libdisplay_composer_proxy_1.0",
55    "graphic_surface:surface",
56    "samgr:samgr_proxy",
57  ]
58
59  # public_configs = [ ":cameraTest_config" ]
60  subsystem_name = "xts"
61  part_name = "hats"
62}
63config("hdf_cameramgv1") {
64  include_dirs = [
65    # common includes
66    "./include",
67    "//third_party/googletest/googletest/include",
68    "$camera_path/../../../display/interfaces/include",
69    "$camera_path/../../../display/hdi_service/gralloc/include",
70    "$camera_path/../../interfaces/include",
71    "$camera_path/include",
72  ]
73}
74