• 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("//base/location/config.gni")
15import("//build/ohos.gni")
16
17config("location_common_config") {
18  visibility = [ ":*" ]
19  include_dirs = [ "$LOCATION_ROOT_DIR/interfaces/inner_api/include" ]
20}
21
22ohos_shared_library("lbsservice_common") {
23  public_configs = [ ":location_common_config" ]
24
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29  }
30  branch_protector_ret = "pac_ret"
31
32  sources = [
33    "$LOCATION_COMMON_DIR/source/app_identity.cpp",
34    "$LOCATION_COMMON_DIR/source/common_hisysevent.cpp",
35    "$LOCATION_COMMON_DIR/source/common_utils.cpp",
36    "$LOCATION_COMMON_DIR/source/geo_address.cpp",
37    "$LOCATION_COMMON_DIR/source/geo_coding_mock_info.cpp",
38    "$LOCATION_COMMON_DIR/source/geofence_request.cpp",
39    "$LOCATION_COMMON_DIR/source/hook_utils.cpp",
40    "$LOCATION_COMMON_DIR/source/location.cpp",
41    "$LOCATION_COMMON_DIR/source/location_data_rdb_helper.cpp",
42    "$LOCATION_COMMON_DIR/source/location_data_rdb_manager.cpp",
43    "$LOCATION_COMMON_DIR/source/location_dumper.cpp",
44    "$LOCATION_COMMON_DIR/source/location_sa_load_manager.cpp",
45    "$LOCATION_COMMON_DIR/source/permission_manager.cpp",
46    "$LOCATION_COMMON_DIR/source/request.cpp",
47    "$LOCATION_COMMON_DIR/source/request_config.cpp",
48    "$LOCATION_COMMON_DIR/source/satellite_status.cpp",
49  ]
50
51  deps = []
52
53  public_external_deps = [
54    "ability_base:zuri",
55    "ability_runtime:wantagent_innerkits",
56    "access_token:libaccesstoken_sdk",
57    "access_token:libtokenid_sdk",
58    "bundle_framework:appexecfwk_base",
59    "bundle_framework:appexecfwk_core",
60    "c_utils:utils",
61    "data_share:datashare_consumer",
62    "hilog:libhilog",
63    "hisysevent:libhisysevent",
64    "init:libbegetutil",
65    "ipc:ipc_single",
66    "os_account:os_account_innerkits",
67    "samgr:samgr_proxy",
68  ]
69
70  defines = []
71  if (notification_distributed_notification_service_enable) {
72    public_external_deps += [ "distributed_notification_service:ans_innerkits" ]
73    public_external_deps += [ "relational_store:native_rdb" ]
74    defines += [ "NOTIFICATION_ENABLE" ]
75  }
76
77  innerapi_tags = [ "platformsdk" ]
78  part_name = "location"
79  subsystem_name = "location"
80}
81