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("//test/xts/tools/build/suite.gni") 15module_output_path = "dcts/hdf" 16 17config("dcamera_hdf_demo_config") { 18 visibility = [ ":*" ] 19} 20 21ohos_moduletest_suite("DctsdisCameraTest") { 22 module_out_path = module_output_path 23 install_enable = true 24 sources = [ 25 "dcamera_automat_test.cpp", 26 "dcamera_hdf_demo.cpp", 27 "stream_customer.cpp", 28 ] 29 30 include_dirs = [ 31 "./include", 32 "//drivers/peripheral/distributed_camera/hdi_service/include/dcamera_host", 33 "//drivers/peripheral/distributed_camera/hdi_service/include/dcamera_device", 34 "//drivers/peripheral/distributed_camera/hdi_service/include/dstream_operator", 35 "//drivers/peripheral/distributed_camera/hdi_service/include/dstream_provider", 36 "//drivers/peripheral/distributed_camera/hdi_service/include/utils", 37 "//drivers/hdf_core/framework/include/utils", 38 "//drivers/hdf_core/adapter/uhdf2/include/hdi", 39 "//drivers/hdf_core/adapter/uhdf2/osal/include", 40 "//drivers/peripheral/display/interfaces/include", 41 "//drivers/peripheral/camera/interfaces/include", 42 "//drivers/peripheral/camera/interfaces/metadata/include", 43 "//drivers/peripheral/camera/hal/utils", 44 "//drivers/peripheral/camera/hal/include", 45 ] 46 47 deps = [ 48 "//drivers/hdf_core/adapter/uhdf2/hdi:libhdi", 49 "//drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter", 50 "//drivers/peripheral/camera/interfaces/metadata:metadata", 51 "//drivers/peripheral/distributed_camera/hdi_service:libdistributed_camera_hdf_service_1.0", 52 "//third_party/jsoncpp:jsoncpp", 53 ] 54 55 cflags = [ 56 "-fPIC", 57 "-Wall", 58 ] 59 60 external_deps = [ 61 "drivers_interface_camera:libcamera_proxy_1.0", 62 "graphic_chipsetsdk:surface", 63 "hiviewdfx_hilog_native:libhilog", 64 "ipc:ipc_single", 65 "samgr:samgr_proxy", 66 ] 67 68 defines = [ 69 "HI_LOG_ENABLE", 70 "DH_LOG_TAG=\"DCameraHdfTest\"", 71 "LOG_DOMAIN=0xD004100", 72 ] 73 74 cflags_cc = cflags 75 subsystem_name = "hdf" 76 part_name = "drivers_peripheral_distributed_camera" 77} 78