• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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.
13import("//build/ohos.gni")
14import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
15
16ohos_shared_library("libagnss_interface_service_1.0") {
17  include_dirs = [
18    "//drivers/peripheral/location/agnss/hdi_service",
19    "//drivers/peripheral/location/gnss/hdi_service",
20  ]
21  sources = [ "agnss_interface_impl.cpp" ]
22
23  deps = [ "//drivers/peripheral/location/gnss/hdi_service:libgnss_interface_service_1.0" ]
24
25  cflags = [
26    "-Wall",
27    "-Wextra",
28    "-Werror",
29    "-fsigned-char",
30    "-fno-common",
31    "-fno-strict-aliasing",
32  ]
33
34  if (is_standard_system) {
35    external_deps = [
36      "c_utils:utils",
37      "drivers_interface_location_agnss:location_agnss_idl_headers",
38      "hiviewdfx_hilog_native:libhilog",
39      "ipc:ipc_single",
40    ]
41  } else {
42    external_deps = [
43      "hilog:libhilog",
44      "ipc:ipc_single",
45    ]
46  }
47
48  install_images = [ chipset_base_dir ]
49  subsystem_name = "hdf"
50  part_name = "drivers_peripheral_location_agnss"
51}
52
53ohos_shared_library("liblocation_agnss_hdi_driver") {
54  include_dirs = [ "//drivers/peripheral/location/agnss/hdi_service" ]
55
56  sources = [ "agnss_interface_driver.cpp" ]
57
58  deps =
59      [ "//drivers/interface/location/agnss/v1_0:liblocation_agnss_stub_1.0" ]
60
61  cflags = [
62    "-Wall",
63    "-Wextra",
64    "-Werror",
65    "-fsigned-char",
66    "-fno-common",
67    "-fno-strict-aliasing",
68  ]
69
70  if (is_standard_system) {
71    external_deps = [
72      "c_utils:utils",
73      "hdf_core:libhdf_host",
74      "hdf_core:libhdf_ipc_adapter",
75      "hdf_core:libhdi",
76      "hiviewdfx_hilog_native:libhilog",
77      "ipc:ipc_single",
78    ]
79  } else {
80    external_deps = [
81      "hilog:libhilog",
82      "ipc:ipc_single",
83    ]
84  }
85
86  install_images = [ chipset_base_dir ]
87  subsystem_name = "hdf"
88  part_name = "drivers_peripheral_location_agnss"
89}
90
91group("hdi_location_agnss_service") {
92  deps = [
93    ":libagnss_interface_service_1.0",
94    ":liblocation_agnss_hdi_driver",
95  ]
96}
97