1# Copyright (c) 2023-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("//test/xts/tools/build/suite.gni")
16import(
17    "$base_root/foundation/distributedhardware/distributed_camera/distributedcamera.gni")
18
19module_output_path = "distributed_camera/dcts"
20
21ohos_moduletest_suite("SubDctsdisCameraClientTest") {
22  module_out_path = module_output_path
23  install_enable = true
24
25  include_dirs = [
26    "./include",
27    "$base_root/foundation/distributedhardware/distributed_camera/common/include/constants",
28    "$base_root/foundation/distributedhardware/distributed_camera/common/include/utils",
29    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include",
30    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include",
31    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/callback",
32    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/listener",
33  ]
34
35  sources = [
36    "dcamera_client_automatic_test.cpp",
37    "dcamera_client_demo.cpp",
38  ]
39
40  cflags = [
41    "-fPIC",
42    "-Wall",
43  ]
44
45  if (distributed_camera_common) {
46    cflags += [ "-DDCAMERA_COMMON" ]
47  }
48
49  deps = [
50    "$base_root/foundation/distributedhardware/distributed_camera/common:distributed_camera_utils",
51    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client:distributed_camera_client",
52    "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice:distributed_camera_sink",
53  ]
54
55  external_deps = [
56    "access_token:libaccesstoken_sdk",
57    "access_token:libnativetoken_shared",
58    "access_token:libtokensetproc_shared",
59    "av_codec:av_codec_client",
60    "c_utils:utils",
61    "camera_framework:camera_framework",
62    "distributed_hardware_fwk:libdhfwk_sdk",
63    "drivers_interface_camera:metadata",
64    "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.1",
65    "graphic_surface:surface",
66    "hilog:libhilog",
67    "ipc:ipc_core",
68  ]
69
70  defines = [
71    "HI_LOG_ENABLE",
72    "DH_LOG_TAG=\"SubDctsdisCameraClientTest\"",
73    "LOG_DOMAIN=0xD004150",
74  ]
75
76  cflags_cc = cflags
77  subsystem_name = "distributedhardware"
78  part_name = "distributed_camera"
79}
80