• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
18LOCATION_PATH = "../"
19
20module_output_path = "hdf/location/agnss"
21ohos_moduletest_suite("HatsHdfLocationagnssTest") {
22  module_out_path = module_output_path
23  configs = [ ":hdf_agnss" ]
24
25  sources = [ "agnss_hdi_test.cpp" ]
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      "cellular_data:tel_cellular_data_api",
35      "core_service:tel_core_service_api",
36
37      #"drivers_interface_location_agnss:location_agnss_idl_headers",
38      "drivers_interface_location_agnss:liblocation_agnss_proxy_1.0",
39      "drivers_interface_location_geofence:liblocation_geofence_proxy_1.0",
40      "drivers_interface_location_gnss:liblocation_gnss_proxy_1.0",
41      "hdf_core:libhdf_host",
42      "hdf_core:libhdf_ipc_adapter",
43      "hdf_core:libhdi",
44      "hilog:libhilog",
45      "ipc:ipc_single",
46    ]
47  } else {
48    external_deps = [
49      "hilog:libhilog",
50      "ipc:ipc_single",
51    ]
52  }
53
54  subsystem_name = "xts"
55  part_name = "hats"
56}
57
58config("hdf_agnss") {
59  include_dirs = [
60    "include",
61    "$LOCATION_PATH/gnss",
62    "$ROOT_PATH/location/agnss/hdi_service",
63    "$ROOT_PATH/location/gnss/hdi_service",
64  ]
65  cflags = [
66    "-Wall",
67    "-Wextra",
68    "-Werror",
69    "-fsigned-char",
70    "-fno-common",
71    "-fno-strict-aliasing",
72  ]
73}
74