# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") ################################################################################ ohos_shared_library("locator_sdk") { install_enable = true include_dirs = [ "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", "//base/location/interfaces/innerkits/locator_standard/include", "//base/location/interfaces/innerkits/napi", "//base/location/location_common/common/include", "//base/location/location_geocode/geocode/include", "//base/location/location_locator/callback/include", "//base/location/utils/include", "//base/notification/ces_standard/frameworks/core/include", "//base/security/access_token/interfaces/innerkits/accesstoken/include", "//distributedschedule/safwk/include", "//native_engine", "//utils/native/base/include", "//utils/system/safwk/native/include", ] sources = [ "//base/location/interfaces/innerkits/locator_standard/src/cached_locations_callback_host.cpp", "//base/location/interfaces/innerkits/locator_standard/src/gnss_status_callback_host.cpp", "//base/location/interfaces/innerkits/locator_standard/src/location_switch_callback_host.cpp", "//base/location/interfaces/innerkits/locator_standard/src/napi_util.cpp", "//base/location/interfaces/innerkits/locator_standard/src/locator.cpp", "//base/location/interfaces/innerkits/locator_standard/src/locator_callback_host.cpp", "//base/location/interfaces/innerkits/locator_standard/src/locator_impl.cpp", "//base/location/interfaces/innerkits/locator_standard/src/locator_proxy.cpp", "//base/location/interfaces/innerkits/locator_standard/src/nmea_message_callback_host.cpp", "//base/location/utils/source/common_utils.cpp", ] deps = [ "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", "//base/location/location_common/common:lbsservice_common", "//foundation/ace/napi:ace_napi", "//third_party/libuv:uv_static", "//utils/native/base:utils", ] external_deps = [ "access_token:libaccesstoken_sdk", "ces_standard:cesfwk_innerkits", "eventhandler:libeventhandler", "hisysevent_native:libhisysevent", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "samgr_standard:samgr_proxy", "startup_l2:syspara", ] cflags_cc = [ "-std=c++17", "-fno-rtti", ] ldflags = [ "-fPIC", "-Wl,-E", ] part_name = "location" subsystem_name = "location" }