• 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
14import("//build/ohos.gni")
15import("//drivers/peripheral/distributed_camera/distributedcamera.gni")
16
17ohos_shared_library("libdistributed_camera_provider_config") {
18  include_dirs =
19      [ "${distributedcamera_hdf_path}/hdi_service/include/dcamera_provider" ]
20  sources = [ "./src/config/dcamera_provider_config.cpp" ]
21  deps = [ "${distributedcamera_hdf_path}/hdi_service:libdistributed_camera_hdf_service_1.0" ]
22
23  external_deps = [
24    "c_utils:utils",
25    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
26    "drivers_interface_distributed_camera:libdistributed_camera_provider_stub_1.0",
27    "graphic_surface:surface",
28    "hdf_core:libhdf_host",
29    "hdf_core:libhdf_ipc_adapter",
30    "hdf_core:libhdf_utils",
31    "hdf_core:libhdi",
32    "hilog:libhilog",
33    "ipc:ipc_single",
34  ]
35
36  shlib_type = "hdi"
37  install_images = [ chipset_base_dir ]
38  subsystem_name = "hdf"
39  part_name = "drivers_peripheral_distributed_camera"
40}
41
42ohos_shared_library("libdistributed_camera_host_config") {
43  include_dirs = [
44    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_device",
45    "${distributedcamera_hdf_path}/hdi_service/include/dcamera_host",
46    "${distributedcamera_hdf_path}/hdi_service/include/dstream_operator",
47    "${distributedcamera_hdf_path}/hdi_service/include/utils",
48  ]
49  sources = [ "./src/config/dcamera_host_config.cpp" ]
50  deps = [ "${distributedcamera_hdf_path}/hdi_service:libdistributed_camera_hdf_service_1.0" ]
51  configs = [ "//third_party/jsoncpp:jsoncpp_public_config" ]
52  external_deps = [
53    "c_utils:utils",
54    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
55    "drivers_interface_camera:libcamera_stub_1.0",
56    "drivers_interface_display:libdisplay_composer_stub_1.0",
57    "drivers_interface_distributed_camera:libdistributed_camera_provider_stub_1.0",
58    "graphic_surface:surface",
59    "graphic_surface:sync_fence",
60    "hdf_core:libhdf_host",
61    "hdf_core:libhdf_ipc_adapter",
62    "hdf_core:libhdf_utils",
63    "hdf_core:libhdi",
64    "hilog:libhilog",
65    "ipc:ipc_single",
66  ]
67
68  shlib_type = "hdi"
69  install_images = [ chipset_base_dir ]
70  subsystem_name = "hdf"
71  part_name = "drivers_peripheral_distributed_camera"
72}
73
74ohos_shared_library("libdistributed_camera_hdf_service_1.0") {
75  include_dirs = [
76    "include/dcamera_device",
77    "include/dcamera_host",
78    "include/dcamera_provider",
79    "include/dstream_operator",
80    "include/utils",
81    "//third_party/jsoncpp/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  deps = [ "//third_party/jsoncpp:jsoncpp" ]
100
101  defines = [
102    "HI_LOG_ENABLE",
103    "DH_LOG_TAG=\"distributedcamerahdf\"",
104    "LOG_DOMAIN=0xD004150",
105  ]
106
107  external_deps = [
108    "c_utils:utils",
109    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
110    "drivers_interface_camera:libcamera_stub_1.0",
111    "drivers_interface_camera:metadata",
112    "drivers_interface_display:libdisplay_composer_stub_1.0",
113    "drivers_interface_distributed_camera:libdistributed_camera_provider_stub_1.0",
114    "graphic_surface:buffer_handle",
115    "graphic_surface:surface",
116    "graphic_surface:sync_fence",
117    "hdf_core:libhdf_host",
118    "hdf_core:libhdf_ipc_adapter",
119    "hdf_core:libhdf_utils",
120    "hdf_core:libhdi",
121    "hilog:libhilog",
122    "ipc:ipc_single",
123    "samgr:samgr_proxy",
124  ]
125
126  install_images = [ chipset_base_dir ]
127  subsystem_name = "hdf"
128  part_name = "drivers_peripheral_distributed_camera"
129}
130
131group("hdf_distributed_camera_service") {
132  deps = [
133    ":libdistributed_camera_hdf_service_1.0",
134    ":libdistributed_camera_host_config",
135    ":libdistributed_camera_provider_config",
136  ]
137}
138