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