• 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
18config("locator_sdk_config") {
19  visibility = [ ":*" ]
20  include_dirs = [
21    "//base/location/interfaces/inner_api/include",
22    "//base/location/frameworks/js/napi/include",
23  ]
24}
25
26ohos_shared_library("locator_sdk") {
27  install_enable = true
28
29  public_configs = [ ":locator_sdk_config" ]
30
31  sources = [
32    "//base/location/frameworks/native/source/cached_locations_callback_host.cpp",
33    "//base/location/frameworks/native/source/country_code_callback_host.cpp",
34    "//base/location/frameworks/native/source/gnss_status_callback_host.cpp",
35    "//base/location/frameworks/native/source/location_switch_callback_host.cpp",
36    "//base/location/frameworks/native/source/locator.cpp",
37    "//base/location/frameworks/native/source/locator_callback_host.cpp",
38    "//base/location/frameworks/native/source/locator_impl.cpp",
39    "//base/location/frameworks/native/source/locator_proxy.cpp",
40    "//base/location/frameworks/native/source/napi_util.cpp",
41    "//base/location/frameworks/native/source/nmea_message_callback_host.cpp",
42  ]
43
44  deps = [
45    "//base/location/frameworks/location_common/common:lbsservice_common",
46    "//third_party/libuv:uv",
47  ]
48
49  external_deps = [
50    "c_utils:utils",
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "napi:ace_napi",
54  ]
55
56  cflags_cc = [
57    "-std=c++17",
58    "-fno-rtti",
59  ]
60
61  ldflags = [
62    "-fPIC",
63    "-Wl,-E",
64  ]
65
66  part_name = "location"
67  subsystem_name = "location"
68}
69