1# Copyright (c) 2021-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("//build/ohos_var.gni") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16import("//test/xts/tools/build/suite.gni") 17 18module_output_path = "hdf/location/gnss" 19ohos_moduletest_suite("HatsHdfLocationgnssTest") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "include", 23 "//drivers/peripheral/location/geofence/hdi_service", 24 "//drivers/peripheral/location/gnss/hdi_service", 25 ] 26 sources = [ "location_gnss_test.cpp" ] 27 28 cflags = [ 29 "-Wall", 30 "-Wextra", 31 "-Werror", 32 "-fsigned-char", 33 "-fno-common", 34 "-fno-strict-aliasing", 35 ] 36 deps = [ 37 "//drivers/peripheral/location/gnss/hdi_service:liblocation_gnss_hdi_driver", 38 "//third_party/googletest:gmock_main", 39 "//third_party/googletest:gtest_main", 40 ] 41 if (is_standard_system) { 42 external_deps = [ 43 "c_utils:utils", 44 45 #"drivers_interface_location_gnss:location_gnss_idl_headers", 46 "drivers_interface_location_agnss:liblocation_agnss_proxy_1.0", 47 "drivers_interface_location_geofence:liblocation_geofence_proxy_1.0", 48 "drivers_interface_location_gnss:liblocation_gnss_proxy_1.0", 49 "hdf_core:libhdf_host", 50 "hdf_core:libhdf_ipc_adapter", 51 "hdf_core:libhdi", 52 "hiviewdfx_hilog_native:libhilog", 53 "ipc:ipc_single", 54 ] 55 } else { 56 external_deps = [ 57 "hilog:libhilog", 58 "ipc:ipc_single", 59 ] 60 } 61 62 subsystem_name = "hdf" 63 part_name = "drivers_peripheral_location_gnss" 64} 65