11c1b0f19Sopenharmony_ci# Copyright (c) 2023-2024 Huawei Device Co., Ltd. 21c1b0f19Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 31c1b0f19Sopenharmony_ci# you may not use this file except in compliance with the License. 41c1b0f19Sopenharmony_ci# You may obtain a copy of the License at 51c1b0f19Sopenharmony_ci# 61c1b0f19Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 71c1b0f19Sopenharmony_ci# 81c1b0f19Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 91c1b0f19Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 101c1b0f19Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111c1b0f19Sopenharmony_ci# See the License for the specific language governing permissions and 121c1b0f19Sopenharmony_ci# limitations under the License. 131c1b0f19Sopenharmony_ci 141c1b0f19Sopenharmony_cibase_root = "../../../../../" 151c1b0f19Sopenharmony_ciimport("//test/xts/tools/build/suite.gni") 161c1b0f19Sopenharmony_ciimport( 171c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/distributedcamera.gni") 181c1b0f19Sopenharmony_ci 191c1b0f19Sopenharmony_cimodule_output_path = "distributed_camera/dcts" 201c1b0f19Sopenharmony_ci 211c1b0f19Sopenharmony_ciohos_moduletest_suite("SubDctsdisCameraClientTest") { 221c1b0f19Sopenharmony_ci module_out_path = module_output_path 231c1b0f19Sopenharmony_ci install_enable = true 241c1b0f19Sopenharmony_ci 251c1b0f19Sopenharmony_ci include_dirs = [ 261c1b0f19Sopenharmony_ci "./include", 271c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/common/include/constants", 281c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/common/include/utils", 291c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include", 301c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include", 311c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/callback", 321c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/include/listener", 331c1b0f19Sopenharmony_ci ] 341c1b0f19Sopenharmony_ci 351c1b0f19Sopenharmony_ci sources = [ 361c1b0f19Sopenharmony_ci "dcamera_client_automatic_test.cpp", 371c1b0f19Sopenharmony_ci "dcamera_client_demo.cpp", 381c1b0f19Sopenharmony_ci ] 391c1b0f19Sopenharmony_ci 401c1b0f19Sopenharmony_ci cflags = [ 411c1b0f19Sopenharmony_ci "-fPIC", 421c1b0f19Sopenharmony_ci "-Wall", 431c1b0f19Sopenharmony_ci ] 441c1b0f19Sopenharmony_ci 451c1b0f19Sopenharmony_ci if (distributed_camera_common) { 461c1b0f19Sopenharmony_ci cflags += [ "-DDCAMERA_COMMON" ] 471c1b0f19Sopenharmony_ci } 481c1b0f19Sopenharmony_ci 491c1b0f19Sopenharmony_ci deps = [ 501c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/common:distributed_camera_utils", 511c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client:distributed_camera_client", 521c1b0f19Sopenharmony_ci "$base_root/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice:distributed_camera_sink", 531c1b0f19Sopenharmony_ci ] 541c1b0f19Sopenharmony_ci 551c1b0f19Sopenharmony_ci external_deps = [ 561c1b0f19Sopenharmony_ci "access_token:libaccesstoken_sdk", 571c1b0f19Sopenharmony_ci "access_token:libnativetoken_shared", 581c1b0f19Sopenharmony_ci "access_token:libtokensetproc_shared", 591c1b0f19Sopenharmony_ci "av_codec:av_codec_client", 601c1b0f19Sopenharmony_ci "c_utils:utils", 611c1b0f19Sopenharmony_ci "camera_framework:camera_framework", 621c1b0f19Sopenharmony_ci "distributed_hardware_fwk:libdhfwk_sdk", 631c1b0f19Sopenharmony_ci "drivers_interface_camera:metadata", 641c1b0f19Sopenharmony_ci "drivers_interface_distributed_camera:libdistributed_camera_provider_proxy_1.1", 651c1b0f19Sopenharmony_ci "graphic_surface:surface", 661c1b0f19Sopenharmony_ci "hilog:libhilog", 671c1b0f19Sopenharmony_ci "ipc:ipc_core", 681c1b0f19Sopenharmony_ci ] 691c1b0f19Sopenharmony_ci 701c1b0f19Sopenharmony_ci defines = [ 711c1b0f19Sopenharmony_ci "HI_LOG_ENABLE", 721c1b0f19Sopenharmony_ci "DH_LOG_TAG=\"SubDctsdisCameraClientTest\"", 731c1b0f19Sopenharmony_ci "LOG_DOMAIN=0xD004150", 741c1b0f19Sopenharmony_ci ] 751c1b0f19Sopenharmony_ci 761c1b0f19Sopenharmony_ci cflags_cc = cflags 771c1b0f19Sopenharmony_ci subsystem_name = "distributedhardware" 781c1b0f19Sopenharmony_ci part_name = "distributed_camera" 791c1b0f19Sopenharmony_ci} 80