1# Copyright (c) 2023 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 14base_root = "../../../../../" 15import("//test/xts/tools/build/suite.gni") 16import( 17 "$base_root/foundation/distributedhardware/distributed_camera/distributedcamera.gni") 18 19module_output_path = "distributed_camera/dcts" 20 21ohos_moduletest_suite("SubDctsdisCameraClientTest") { 22 module_out_path = module_output_path 23 install_enable = true 24 25 include_dirs = [ 26 "./include", 27 "$base_root/foundation/distributedhardware/distributed_camera/common/include/constants", 28 "$base_root/foundation/distributedhardware/distributed_camera/common/include/utils", 29 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include", 30 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include", 31 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/callback", 32 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/listener", 33 "$base_root/third_party/jsoncpp/include", 34 ] 35 36 sources = [ 37 "dcamera_client_automatic_test.cpp", 38 "dcamera_client_demo.cpp", 39 ] 40 41 cflags = [ 42 "-fPIC", 43 "-Wall", 44 ] 45 46 if (distributed_camera_common) { 47 cflags += [ "-DDCAMERA_COMMON" ] 48 } 49 50 deps = [ 51 "$base_root/foundation/distributedhardware/distributed_camera/common:distributed_camera_utils", 52 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client:distributed_camera_client", 53 "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice:distributed_camera_sink", 54 "$base_root/third_party/jsoncpp:jsoncpp", 55 ] 56 57 external_deps = [ 58 "access_token:libaccesstoken_sdk", 59 "access_token:libnativetoken", 60 "access_token:libnativetoken", 61 "access_token:libtoken_setproc", 62 "access_token:libtoken_setproc", 63 "c_utils:utils", 64 "camera_framework:camera_framework", 65 "distributed_hardware_fwk:libdhfwk_sdk", 66 "drivers_interface_camera:metadata", 67 "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.0", 68 "graphic_2d:surface", 69 "hilog:libhilog", 70 "ipc:ipc_core", 71 "player_framework:media_client", 72 ] 73 74 defines = [ 75 "HI_LOG_ENABLE", 76 "DH_LOG_TAG=\"SubDctsdisCameraClientTest\"", 77 "LOG_DOMAIN=0xD004100", 78 ] 79 80 cflags_cc = cflags 81 subsystem_name = "distributedhardware" 82 part_name = "distributed_camera" 83} 84