10704ebd2Sopenharmony_ci# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
20704ebd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30704ebd2Sopenharmony_ci# you may not use this file except in compliance with the License.
40704ebd2Sopenharmony_ci# You may obtain a copy of the License at
50704ebd2Sopenharmony_ci#
60704ebd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70704ebd2Sopenharmony_ci#
80704ebd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90704ebd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100704ebd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110704ebd2Sopenharmony_ci# See the License for the specific language governing permissions and
120704ebd2Sopenharmony_ci# limitations under the License.
130704ebd2Sopenharmony_ci
140704ebd2Sopenharmony_cibase_root = "../../../../../"
150704ebd2Sopenharmony_ciimport("//test/xts/tools/build/suite.gni")
160704ebd2Sopenharmony_cimodule_output_path = "dcts/hdf"
170704ebd2Sopenharmony_ci
180704ebd2Sopenharmony_ciconfig("dcamera_hdf_demo_config") {
190704ebd2Sopenharmony_ci  visibility = [ ":*" ]
200704ebd2Sopenharmony_ci}
210704ebd2Sopenharmony_ci
220704ebd2Sopenharmony_ciohos_moduletest_suite("DctsSubdisCameraTest") {
230704ebd2Sopenharmony_ci  module_out_path = module_output_path
240704ebd2Sopenharmony_ci  install_enable = true
250704ebd2Sopenharmony_ci  sources = [
260704ebd2Sopenharmony_ci    "dcamera_automat_test.cpp",
270704ebd2Sopenharmony_ci    "dcamera_hdf_demo.cpp",
280704ebd2Sopenharmony_ci    "stream_customer.cpp",
290704ebd2Sopenharmony_ci  ]
300704ebd2Sopenharmony_ci
310704ebd2Sopenharmony_ci  include_dirs = [
320704ebd2Sopenharmony_ci    "./include",
330704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_host",
340704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_device",
350704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dstream_operator",
360704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/dstream_provider",
370704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service/include/utils",
380704ebd2Sopenharmony_ci    "$base_root/drivers/hdf_core/framework/include/utils",
390704ebd2Sopenharmony_ci    "$base_root/drivers/hdf_core/adapter/uhdf2/include/hdi",
400704ebd2Sopenharmony_ci    "$base_root/drivers/hdf_core/adapter/uhdf2/osal/include",
410704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/display/interfaces/include",
420704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/camera/interfaces/include",
430704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/camera/vdi_base/common/utils",
440704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/camera/vdi_base/common/include",
450704ebd2Sopenharmony_ci  ]
460704ebd2Sopenharmony_ci
470704ebd2Sopenharmony_ci  deps = [
480704ebd2Sopenharmony_ci    "$base_root/drivers/hdf_core/adapter/uhdf2/hdi:libhdi",
490704ebd2Sopenharmony_ci    "$base_root/drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter",
500704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_camera/hdi_service:libdistributed_camera_hdf_service_1.1",
510704ebd2Sopenharmony_ci    "$base_root/third_party/jsoncpp:jsoncpp",
520704ebd2Sopenharmony_ci  ]
530704ebd2Sopenharmony_ci
540704ebd2Sopenharmony_ci  cflags = [
550704ebd2Sopenharmony_ci    "-fPIC",
560704ebd2Sopenharmony_ci    "-Wall",
570704ebd2Sopenharmony_ci  ]
580704ebd2Sopenharmony_ci
590704ebd2Sopenharmony_ci  external_deps = [
600704ebd2Sopenharmony_ci    "c_utils:utils",
610704ebd2Sopenharmony_ci    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
620704ebd2Sopenharmony_ci    "drivers_interface_camera:libcamera_proxy_1.0",
630704ebd2Sopenharmony_ci    "drivers_interface_camera:metadata",
640704ebd2Sopenharmony_ci    "drivers_interface_display:libdisplay_composer_proxy_1.0",
650704ebd2Sopenharmony_ci    "graphic_surface:surface",
660704ebd2Sopenharmony_ci    "hdf_core:libhdf_ipc_adapter",
670704ebd2Sopenharmony_ci    "hdf_core:libhdf_utils",
680704ebd2Sopenharmony_ci    "hdf_core:libhdi",
690704ebd2Sopenharmony_ci    "hilog:libhilog",
700704ebd2Sopenharmony_ci    "ipc:ipc_single",
710704ebd2Sopenharmony_ci    "samgr:samgr_proxy",
720704ebd2Sopenharmony_ci  ]
730704ebd2Sopenharmony_ci
740704ebd2Sopenharmony_ci  defines = [
750704ebd2Sopenharmony_ci    "HI_LOG_ENABLE",
760704ebd2Sopenharmony_ci    "DH_LOG_TAG=\"DctsSubdisCameraTest\"",
770704ebd2Sopenharmony_ci    "LOG_DOMAIN=0xD004100",
780704ebd2Sopenharmony_ci  ]
790704ebd2Sopenharmony_ci
800704ebd2Sopenharmony_ci  cflags_cc = cflags
810704ebd2Sopenharmony_ci  subsystem_name = "hdf"
820704ebd2Sopenharmony_ci  part_name = "drivers_peripheral_distributed_camera"
830704ebd2Sopenharmony_ci}
84