• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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
14import("//build/ohos.gni")
15import("//build/ohos_var.gni")
16import(
17    "//foundation/distributedhardware/distributed_camera/distributedcamera.gni")
18
19config("module_private_config") {
20  include_dirs = [
21    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
22    "//base/security/access_token/interfaces/innerkits/token_setproc/include",
23    "//drivers/peripheral/camera/interfaces/metadata/include",
24    "//third_party/jsoncpp/include",
25    "//commonlibrary/c_utils/base/include",
26    "//utils/system/safwk/native/include",
27    "${graphicstandard_path}/frameworks/surface/include",
28    "${camerastandard_path}/interfaces/inner_api/native/camera/include",
29    "${camerastandard_path}/interfaces/inner_api/native/camera/include/input",
30    "${camerastandard_path}/interfaces/inner_api/native/camera/include/output",
31    "${camerastandard_path}/interfaces/inner_api/native/camera/include/session",
32    "${camerastandard_path}/services/camera_service/binder/base/include",
33    "${camerastandard_path}/services/camera_service/binder/client/include",
34    "${camerastandard_path}/services/camera_service/binder/server/include",
35    "${camerastandard_path}/services/camera_service/include",
36    "${fwk_common_path}/log/include",
37    "${fwk_common_path}/utils/include",
38    "${fwk_utils_path}/include/log",
39    "${fwk_utils_path}/include",
40  ]
41
42  include_dirs += [
43    "${common_path}/include/constants",
44    "${common_path}/include/utils",
45    "${services_path}/cameraservice/base/include",
46    "${services_path}/cameraservice/cameraoperator/client/include",
47    "${services_path}/cameraservice/cameraoperator/client/include/callback",
48    "${services_path}/cameraservice/cameraoperator/client/include/listener",
49  ]
50}
51
52ohos_executable("dcamera_client_demo") {
53  install_enable = false
54
55  sources = [ "main.cpp" ]
56
57  configs = [ ":module_private_config" ]
58
59  cflags = [
60    "-fPIC",
61    "-Wall",
62  ]
63
64  if (!distributed_camera_common) {
65    cflags += [ "-DDCAMERA_YUV" ]
66  }
67
68  deps = [
69    "${camerastandard_path}/frameworks/native/camera:camera_framework",
70    "${common_path}:distributed_camera_utils",
71    "${fwk_utils_path}:distributedhardwareutils",
72    "${graphicstandard_path}:libsurface",
73    "${services_path}/cameraservice/cameraoperator/client:distributed_camera_client",
74    "${services_path}/cameraservice/sinkservice:distributed_camera_sink",
75    "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
76    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
77    "//drivers/peripheral/camera/interfaces/metadata:metadata",
78    "//third_party/jsoncpp:jsoncpp",
79  ]
80
81  external_deps = [
82    "access_token:libaccesstoken_sdk",
83    "access_token:libtoken_setproc",
84    "c_utils:utils",
85    "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0",
86    "hiviewdfx_hilog_native:libhilog",
87    "ipc:ipc_core",
88    "multimedia_player_framework:media_client",
89  ]
90
91  defines = [
92    "HI_LOG_ENABLE",
93    "DH_LOG_TAG=\"DCameraClientDemo\"",
94    "LOG_DOMAIN=0xD004100",
95  ]
96
97  cflags_cc = cflags
98
99  subsystem_name = "distributedhardware"
100
101  part_name = "distributed_camera"
102}
103