• 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
16################################################################################
17
18ohos_shared_library("locator_sdk") {
19  install_enable = true
20
21  include_dirs = [
22    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
23    "//base/location/interfaces/innerkits/locator_standard/include",
24    "//base/location/interfaces/innerkits/napi",
25    "//base/location/location_common/common/include",
26    "//base/location/location_geocode/geocode/include",
27    "//base/location/location_locator/callback/include",
28    "//base/location/utils/include",
29    "//base/notification/ces_standard/frameworks/core/include",
30    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
31    "//distributedschedule/safwk/include",
32    "//native_engine",
33    "//utils/native/base/include",
34    "//utils/system/safwk/native/include",
35  ]
36
37  sources = [
38    "//base/location/interfaces/innerkits/locator_standard/src/cached_locations_callback_host.cpp",
39    "//base/location/interfaces/innerkits/locator_standard/src/gnss_status_callback_host.cpp",
40    "//base/location/interfaces/innerkits/locator_standard/src/location_switch_callback_host.cpp",
41    "//base/location/interfaces/innerkits/locator_standard/src/napi_util.cpp",
42    "//base/location/interfaces/innerkits/locator_standard/src/locator.cpp",
43    "//base/location/interfaces/innerkits/locator_standard/src/locator_callback_host.cpp",
44    "//base/location/interfaces/innerkits/locator_standard/src/locator_impl.cpp",
45    "//base/location/interfaces/innerkits/locator_standard/src/locator_proxy.cpp",
46    "//base/location/interfaces/innerkits/locator_standard/src/nmea_message_callback_host.cpp",
47    "//base/location/utils/source/common_utils.cpp",
48  ]
49
50  deps = [
51    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
52    "//base/location/location_common/common:lbsservice_common",
53    "//foundation/ace/napi:ace_napi",
54    "//third_party/libuv:uv_static",
55    "//utils/native/base:utils",
56  ]
57
58  external_deps = [
59    "access_token:libaccesstoken_sdk",
60    "ces_standard:cesfwk_innerkits",
61    "eventhandler:libeventhandler",
62    "hisysevent_native:libhisysevent",
63    "hiviewdfx_hilog_native:libhilog",
64    "ipc:ipc_core",
65    "samgr_standard:samgr_proxy",
66    "startup_l2:syspara",
67  ]
68
69  cflags_cc = [
70    "-std=c++17",
71    "-fno-rtti",
72  ]
73
74  ldflags = [
75    "-fPIC",
76    "-Wl,-E",
77  ]
78
79  part_name = "location"
80  subsystem_name = "location"
81}
82