• 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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("//drivers/peripheral/distributed_camera/distributedcamera.gni")
17
18ohos_shared_library("libdistributed_camera_provider_config") {
19  include_dirs =
20      [ "${distributedcamera_hdf_path}/hdi_service/include/dcamera_provider" ]
21  sources = [ "./src/config/dcamera_provider_config.cpp" ]
22  deps = [ "${distributedcamera_hdf_path}/hdi_service:libdistributed_camera_hdf_service_1.0" ]
23
24  external_deps = [
25    "c_utils:utils",
26    "hdf_core:libhdf_host",
27    "hdf_core:libhdf_ipc_adapter",
28    "hdf_core:libhdi",
29    "hiviewdfx_hilog_native:libhilog",
30    "ipc:ipc_single",
31  ]
32
33  install_images = [ chipset_base_dir ]
34  subsystem_name = "hdf"
35  part_name = "drivers_peripheral_distributed_camera"
36}
37
38ohos_shared_library("libdistributed_camera_host_config") {
39  include_dirs = [
40    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_device",
41    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_host",
42    "${distributedcamera_hdf_path}/hdi_service/include/dstream_operator",
43    "${distributedcamera_hdf_path}/hdi_service/include/utils",
44    "//drivers/peripheral/camera/interfaces/metadata/include",
45    "//third_party/jsoncpp/include",
46  ]
47  sources = [ "./src/config/dcamera_host_config.cpp" ]
48  deps = [ "${distributedcamera_hdf_path}/hdi_service:libdistributed_camera_hdf_service_1.0" ]
49
50  external_deps = [
51    "c_utils:utils",
52    "hdf_core:libhdf_host",
53    "hdf_core:libhdf_ipc_adapter",
54    "hdf_core:libhdi",
55    "hiviewdfx_hilog_native:libhilog",
56    "ipc:ipc_single",
57  ]
58
59  install_images = [ chipset_base_dir ]
60  subsystem_name = "hdf"
61  part_name = "drivers_peripheral_distributed_camera"
62}
63
64ohos_shared_library("libdistributed_camera_hdf_service_1.0") {
65  include_dirs = [
66    "include/dcamera_device",
67    "include/dcamera_host",
68    "include/dcamera_provider",
69    "include/dstream_operator",
70    "include/utils",
71    "//utils/system/safwk/native/include",
72    "${hdf_framework_path}/include/utils",
73    "${hdf_framework_path}/include/core",
74    "${hdf_framework_path}/include/osal",
75    "${hdf_uhdf_path}/include/hdi",
76    "${hdf_uhdf_path}/osal/include",
77    "${hdf_uhdf_path}/ipc/include",
78    "${hdf_uhdf_path}/include/host",
79    "//commonlibrary/c_utils/base/include",
80    "//third_party/jsoncpp/include",
81    "//drivers/peripheral/camera/interfaces/metadata/include",
82  ]
83
84  sources = [
85    "src/dcamera_device/dcamera_device.cpp",
86    "src/dcamera_device/dmetadata_processor.cpp",
87    "src/dcamera_host/dcamera_host.cpp",
88    "src/dcamera_provider/dcamera_provider.cpp",
89    "src/dstream_operator/dbuffer_manager.cpp",
90    "src/dstream_operator/dcamera_stream.cpp",
91    "src/dstream_operator/dimage_buffer.cpp",
92    "src/dstream_operator/doffline_stream_operator.cpp",
93    "src/dstream_operator/dstream_operator.cpp",
94    "src/utils/anonymous_string.cpp",
95    "src/utils/dcamera.cpp",
96    "src/utils/dh_log.cpp",
97  ]
98
99  public_deps = [
100    "//drivers/interface/camera/v1_0:libcamera_stub_1.0",
101    "//drivers/interface/distributed_camera/v1_0:libdistributed_camera_provider_stub_1.0",
102  ]
103
104  deps = [
105    "//drivers/peripheral/camera/interfaces/metadata:metadata",
106    "//third_party/jsoncpp:jsoncpp",
107  ]
108
109  defines = [
110    "HI_LOG_ENABLE",
111    "DH_LOG_TAG=\"distributedcamerahdf\"",
112    "LOG_DOMAIN=0xD004100",
113  ]
114
115  external_deps = [
116    "c_utils:utils",
117    "graphic_chipsetsdk:buffer_handle",
118    "graphic_chipsetsdk:surface",
119    "hiviewdfx_hilog_native:libhilog",
120    "ipc:ipc_single",
121  ]
122
123  install_images = [ chipset_base_dir ]
124  subsystem_name = "hdf"
125  part_name = "drivers_peripheral_distributed_camera"
126}
127
128group("hdf_distributed_camera_service") {
129  deps = [
130    ":libdistributed_camera_hdf_service_1.0",
131    ":libdistributed_camera_host_config",
132    ":libdistributed_camera_provider_config",
133  ]
134}
135