1# Copyright (c) 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 14base_root = "../../../../../../../" 15import("//build/ohos.gni") 16import("//build/ohos_var.gni") 17import("//build/test.gni") 18import("//test/xts/tools/build/suite.gni") 19import("$base_root/drivers/peripheral/camera/camera.gni") 20module_output_path = "hats/camera" 21 22ohos_moduletest_suite("HatsHdfCameraMgTestv3") { 23 configs = [ ":hdf_cameramgv3" ] 24 module_out_path = module_output_path 25 sources = [ 26 "./src/camera_hdi_test_securestream_v1_3.cpp", 27 "./src/camera_hdi_test_v1_3.cpp", 28 "./src/camera_professional_test_v1_3.cpp", 29 "./src/camera_tag_test_v1_3.cpp", 30 "./src/hdi_common_v1_3.cpp", 31 ] 32 deps = [ 33 "//third_party/googletest:gmock_main", 34 "//third_party/googletest:gtest", 35 "//third_party/googletest:gtest_main", 36 ] 37 38 if (is_standard_system) { 39 external_deps = [ 40 "c_utils:utils", 41 "hdf_core:libhdf_host", 42 "hdf_core:libhdf_ipc_adapter", 43 "hdf_core:libhdf_utils", 44 "hdf_core:libhdi", 45 "hilog:libhilog", 46 "ipc:ipc_single", 47 ] 48 } else { 49 external_deps = [ "hilog:libhilog" ] 50 } 51 52 external_deps += [ 53 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 54 "drivers_interface_camera:libcamera_proxy_1.3", 55 "drivers_interface_camera:metadata", 56 "graphic_surface:surface", 57 "samgr:samgr_proxy", 58 ] 59 60 subsystem_name = "hdf" 61 part_name = "drivers_interface_camera" 62} 63config("hdf_cameramgv3") { 64 include_dirs = [ 65 "./include", 66 "//third_party/googletest/googletest/include", 67 "$camera_path/../../../display/interfaces/include", 68 "$camera_path/../../../display/hdi_service/gralloc/include", 69 "$camera_path/../../interfaces/include", 70 "$camera_path/include", 71 ] 72} 73