• 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.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")
20import("$base_root/drivers/peripheral/display/display_config.gni")
21module_output_path = "hats/camera"
22
23ohos_moduletest_suite("HatsHdfCameraMgv0Test") {
24  #testonly = true
25  defines = []
26  defines += display_defines
27  configs = [ ":hdf_cameramg" ]
28  module_out_path = module_output_path
29  sources = [
30    "./src/camera_3a_uttest.cpp",
31    "./src/common.cpp",
32    "./src/device_ability_uttest.cpp",
33    "./src/hdi_device_uttest.cpp",
34    "./src/hdi_host_uttest.cpp",
35    "./src/hdi_stream_uttest.cpp",
36  ]
37  deps = [
38    "//third_party/googletest:gmock_main",
39    "//third_party/googletest:gtest",
40    "//third_party/googletest:gtest_main",
41  ]
42
43  if (is_standard_system) {
44    external_deps = [
45      "c_utils:utils",
46      "drivers_interface_display:libhdifd_parcelable",
47      "hdf_core:libhdf_host",
48      "hdf_core:libhdf_ipc_adapter",
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:libcamera_proxy_1.0",
61    "drivers_interface_camera:metadata",
62    "drivers_interface_display:libdisplay_composer_proxy_1.0",
63    "graphic_surface:surface",
64    "samgr:samgr_proxy",
65  ]
66
67  # public_configs = [ ":cameraTest_config" ]
68  subsystem_name = "hdf"
69  part_name = "drivers_interface_camera"
70}
71config("hdf_cameramg") {
72  include_dirs = [
73    # common includes
74    "./include",
75    "//third_party/googletest/googletest/include",
76    "$camera_path/../../interfaces/include",
77    "$camera_path/include",
78  ]
79}
80