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("//build/test.gni")
16import("//drivers/peripheral/distributed_camera/distributedcamera.gni")
17
18fuzz_test_output_path = "drivers_peripheral_distributed_camera/drivers_peripheral_distributed_camera"
19
20include_dirs = [
21  "${distributedcamera_hdf_path}/hdi_service/include/dcamera_device",
22  "${distributedcamera_hdf_path}/hdi_service/include/dcamera_host",
23  "${distributedcamera_hdf_path}/hdi_service/include/dcamera_provider",
24  "${distributedcamera_hdf_path}/hdi_service/include/dstream_operator",
25  "${distributedcamera_hdf_path}/hdi_service/include/utils",
26]
27
28cflags = [
29  "-g",
30  "-O0",
31  "-Wno-unused-variable",
32  "-fno-omit-frame-pointer",
33  "-Dprivate=public",
34  "-Dprotected=public",
35]
36
37dcamera_deps = [ "${distributedcamera_hdf_path}/hdi_service:libdistributed_camera_hdf_service_1.1" ]
38
39dcamera_external_deps = [
40  "cJSON:cjson",
41  "c_utils:utils",
42  "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
43  "drivers_interface_camera:libcamera_proxy_1.3",
44  "drivers_interface_camera:metadata",
45  "drivers_interface_display:libdisplay_composer_stub_1.0",
46  "drivers_interface_distributed_camera:libdistributed_camera_provider_stub_1.1",
47  "graphic_surface:surface",
48  "graphic_surface:sync_fence",
49  "hdf_core:libhdi",
50  "ipc:ipc_core",
51]
52
53defines = [
54  "HI_LOG_ENABLE",
55  "LOG_DOMAIN=0xD004150",
56]
57