• 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")
17
18ROOT_PATH = "../../../../../../drivers/peripheral"
19
20module_output_path = "hdf/location/gnss"
21ohos_moduletest_suite("HatsHdfLocationgnssTest") {
22  module_out_path = module_output_path
23
24  sources = [ "location_gnss_test.cpp" ]
25
26  configs = [ ":hdf_gnss" ]
27
28  deps = [
29    "${ROOT_PATH}/location/gnss/hdi_service:liblocation_gnss_hdi_driver",
30    "//third_party/googletest:gmock_main",
31    "//third_party/googletest:gtest_main",
32  ]
33  if (is_standard_system) {
34    external_deps = [
35      "c_utils:utils",
36
37      #"drivers_interface_location_gnss:location_gnss_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_gnss") {
59  include_dirs = [
60    "include",
61    "${ROOT_PATH}/location/geofence/hdi_service",
62    "${ROOT_PATH}/location/gnss/hdi_service",
63  ]
64  cflags = [
65    "-Wall",
66    "-Wextra",
67    "-Werror",
68    "-fsigned-char",
69    "-fno-common",
70    "-fno-strict-aliasing",
71  ]
72}
73