• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 - 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("//test/xts/tools/build/suite.gni")
16module_output_path = "dcts/hdf"
17
18config("dcamera_hdf_demo_config") {
19  visibility = [ ":*" ]
20}
21
22ohos_moduletest_suite("SubDctsdisCameraTest") {
23  module_out_path = module_output_path
24  install_enable = true
25  sources = [
26    "dcamera_automat_test.cpp",
27    "dcamera_hdf_demo.cpp",
28    "stream_customer.cpp",
29  ]
30
31  include_dirs = [
32    "./include",
33    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_host",
34    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_device",
35    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dstream_operator",
36    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dstream_provider",
37    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/utils",
38    "$base_root/drivers/hdf_core/framework/include/utils",
39    "$base_root/drivers/hdf_core/adapter/uhdf2/include/hdi",
40    "$base_root/drivers/hdf_core/adapter/uhdf2/osal/include",
41    "$base_root/drivers/peripheral/display/interfaces/include",
42    "$base_root/drivers/peripheral/camera/interfaces/include",
43    "$base_root/drivers/peripheral/camera/vdi_base/common/utils",
44    "$base_root/drivers/peripheral/camera/vdi_base/common/include",
45  ]
46
47  deps = [
48    "$base_root/drivers/hdf_core/adapter/uhdf2/hdi:libhdi",
49    "$base_root/drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter",
50    "$base_root/drivers/peripheral/distributed_camera/hdi_service:libdistributed_camera_hdf_service_1.0",
51    "$base_root/third_party/jsoncpp:jsoncpp",
52  ]
53
54  cflags = [
55    "-fPIC",
56    "-Wall",
57  ]
58
59  external_deps = [
60    "c_utils:utils",
61    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
62    "drivers_interface_camera:libcamera_proxy_1.0",
63    "drivers_interface_camera:metadata",
64    "drivers_interface_display:libdisplay_composer_proxy_1.0",
65    "graphic_surface:surface",
66    "hdf_core:libhdf_ipc_adapter",
67    "hdf_core:libhdf_utils",
68    "hdf_core:libhdi",
69    "hilog:libhilog",
70    "ipc:ipc_single",
71    "samgr:samgr_proxy",
72  ]
73
74  defines = [
75    "HI_LOG_ENABLE",
76    "DH_LOG_TAG=\"SubDctsdisCameraTest\"",
77    "LOG_DOMAIN=0xD004100",
78  ]
79
80  cflags_cc = cflags
81  subsystem_name = "hdf"
82  part_name = "drivers_peripheral_distributed_camera"
83}
84