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("//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") 20import("$base_root/drivers/peripheral/display/display_config.gni") 21module_output_path = "hats/camera" 22 23ohos_moduletest_suite("HatsHdfCameraMgv0AdditionalTest") { 24 #testonly = true 25 defines = [] 26 defines += display_defines 27 configs = [ ":hdf_cameramg_additional" ] 28 module_out_path = module_output_path 29 sources = [ 30 "./src/camera_3a_uttest.cpp", 31 "./src/common.cpp", 32 "./src/hdi_device_uttest.cpp", 33 "./src/hdi_host_uttest.cpp", 34 "./src/hdi_stream_uttest.cpp", 35 ] 36 deps = [ 37 "//third_party/googletest:gmock_main", 38 "//third_party/googletest:gtest", 39 "//third_party/googletest:gtest_main", 40 ] 41 42 if (is_standard_system) { 43 external_deps = [ 44 "c_utils:utils", 45 "hdf_core:libhdf_host", 46 "hdf_core:libhdf_ipc_adapter", 47 "hdf_core:libhdf_utils", 48 "hdf_core:libhdi", 49 "hilog:libhilog", 50 "ipc:ipc_single", 51 ] 52 } else { 53 external_deps = [ "hilog:libhilog" ] 54 } 55 56 external_deps += [ 57 "drivers_interface_camera:libbuffer_producer_sequenceable_1.0", 58 "drivers_interface_camera:libcamera_proxy_1.0", 59 "drivers_interface_camera:metadata", 60 "drivers_interface_display:libdisplay_composer_proxy_1.0", 61 "graphic_surface:surface", 62 "samgr:samgr_proxy", 63 ] 64 65 # public_configs = [ ":cameraTest_config" ] 66 subsystem_name = "xts" 67 part_name = "hats" 68} 69config("hdf_cameramg_additional") { 70 include_dirs = [ 71 # common includes 72 "./include", 73 "//third_party/googletest/googletest/include", 74 "$camera_path/../../interfaces/include", 75 "$camera_path/include", 76 ] 77} 78