• 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.
13
14import("//build/ohos.gni")
15
16SUBSYSTEM_DIR = "//base/location/services"
17LOCATION_GNSS_ROOT = "$SUBSYSTEM_DIR/location_gnss/gnss"
18
19ohos_shared_library("lbsservice_gnss") {
20  sources = [
21    "$LOCATION_GNSS_ROOT/source/agnss_event_callback.cpp",
22    "$LOCATION_GNSS_ROOT/source/gnss_ability.cpp",
23    "$LOCATION_GNSS_ROOT/source/gnss_ability_skeleton.cpp",
24    "$LOCATION_GNSS_ROOT/source/gnss_event_callback.cpp",
25  ]
26
27  include_dirs = [
28    "//base/location/interfaces/inner_api/include",
29    "$SUBSYSTEM_DIR/location_gnss/gnss/include",
30    "$SUBSYSTEM_DIR/location_locator/callback/include",
31    "$SUBSYSTEM_DIR/location_locator/locator/include",
32  ]
33
34  deps = [
35    "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator",
36    "//base/location/frameworks/location_common/common:lbsservice_common",
37    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
38    "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
39  ]
40
41  external_deps = [
42    "access_token:libaccesstoken_sdk",
43    "c_utils:utils",
44    "cellular_data:tel_cellular_data_api",
45    "common_event_service:cesfwk_innerkits",
46    "core_service:tel_core_service_api",
47    "drivers_interface_location_agnss:liblocation_agnss_proxy_1.0",
48    "drivers_interface_location_gnss:liblocation_gnss_proxy_1.0",
49    "eventhandler:libeventhandler",
50    "hdf_core:libhdi",
51    "hiviewdfx_hilog_native:libhilog",
52  ]
53
54  part_name = "location"
55  subsystem_name = "location"
56}
57