# 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") SUBSYSTEM_DIR = "//base/location/services" ohos_shared_library("lbsservice_locator") { sources = [ "$SUBSYSTEM_DIR/location_locator/callback/source/cached_locations_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/callback/source/country_code_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/callback/source/gnss_status_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/callback/source/locator_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/callback/source/nmea_message_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/callback/source/switch_callback_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/country_code_manager.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/fusion_controller.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/geo_convert_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/gnss_ability_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/location_config_manager.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/locator_ability.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/locator_background_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/locator_event_manager.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/locator_event_subscriber.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/locator_skeleton.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/network_ability_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/passive_ability_proxy.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/permission_status_change_cb.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/report_manager.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/request.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/request_manager.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/subability_common.cpp", "$SUBSYSTEM_DIR/location_locator/locator/source/work_record.cpp", ] include_dirs = [ "//base/location/interfaces/inner_api/include", "$SUBSYSTEM_DIR/location_geocode/geocode/include", "$SUBSYSTEM_DIR/location_gnss/gnss/include", "$SUBSYSTEM_DIR/location_locator/callback/include", "$SUBSYSTEM_DIR/location_locator/locator/include", "$SUBSYSTEM_DIR/location_network/network/include", "$SUBSYSTEM_DIR/location_passive/passive/include", ] deps = [ "//base/global/i18n/frameworks/intl:intl_util", "//base/location/frameworks/location_common/common:lbsservice_common", "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", ] external_deps = [ "ability_base:want", "ability_runtime:app_manager", "access_token:libaccesstoken_sdk", "access_token:libprivacy_sdk", "c_utils:utils", "cellular_data:tel_cellular_data_api", "common_event_service:cesfwk_innerkits", "core_service:tel_core_service_api", "eventhandler:libeventhandler", "hiviewdfx_hilog_native:libhilog", "init:libbeget_proxy", "os_account:os_account_innerkits", ] part_name = "location" subsystem_name = "location" }