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") 15import("//foundation/appexecfwk/standard/appexecfwk.gni") 16 17SUBSYSTEM_DIR = "//base/location" 18 19ohos_shared_library("lbsservice_locator") { 20 sources = [ 21 "$SUBSYSTEM_DIR/location_locator/callback/source/cached_locations_callback_proxy.cpp", 22 "$SUBSYSTEM_DIR/location_locator/callback/source/gnss_status_callback_proxy.cpp", 23 "$SUBSYSTEM_DIR/location_locator/callback/source/locator_callback_proxy.cpp", 24 "$SUBSYSTEM_DIR/location_locator/callback/source/nmea_message_callback_proxy.cpp", 25 "$SUBSYSTEM_DIR/location_locator/callback/source/switch_callback_proxy.cpp", 26 "$SUBSYSTEM_DIR/location_locator/locator/source/fusion_controller.cpp", 27 "$SUBSYSTEM_DIR/location_locator/locator/source/geo_convert_proxy.cpp", 28 "$SUBSYSTEM_DIR/location_locator/locator/source/gnss_ability_proxy.cpp", 29 "$SUBSYSTEM_DIR/location_locator/locator/source/locator_ability.cpp", 30 "$SUBSYSTEM_DIR/location_locator/locator/source/locator_background_proxy.cpp", 31 "$SUBSYSTEM_DIR/location_locator/locator/source/locator_event_manager.cpp", 32 "$SUBSYSTEM_DIR/location_locator/locator/source/locator_event_subscriber.cpp", 33 "$SUBSYSTEM_DIR/location_locator/locator/source/locator_skeleton.cpp", 34 "$SUBSYSTEM_DIR/location_locator/locator/source/network_ability_proxy.cpp", 35 "$SUBSYSTEM_DIR/location_locator/locator/source/passive_ability_proxy.cpp", 36 "$SUBSYSTEM_DIR/location_locator/locator/source/report_manager.cpp", 37 "$SUBSYSTEM_DIR/location_locator/locator/source/request.cpp", 38 "$SUBSYSTEM_DIR/location_locator/locator/source/request_manager.cpp", 39 "$SUBSYSTEM_DIR/location_locator/locator/source/subability_common.cpp", 40 "$SUBSYSTEM_DIR/location_locator/locator/source/work_record.cpp", 41 "$SUBSYSTEM_DIR/utils/source/common_hisysevent.cpp", 42 "$SUBSYSTEM_DIR/utils/source/common_utils.cpp", 43 ] 44 45 include_dirs = [ 46 "$SUBSYSTEM_DIR/interfaces/innerkits/locator_standard/include", 47 "$SUBSYSTEM_DIR/location_common/common/include", 48 "$SUBSYSTEM_DIR/location_geocode/geocode/include", 49 "$SUBSYSTEM_DIR/location_gnss/gnss/include", 50 "$SUBSYSTEM_DIR/location_locator/callback/include", 51 "$SUBSYSTEM_DIR/location_locator/locator/include", 52 "$SUBSYSTEM_DIR/location_network/network/include", 53 "$SUBSYSTEM_DIR/location_passive/passive/include", 54 "$SUBSYSTEM_DIR/utils/include", 55 "//base/notification/ces_standard/frameworks/core/include", 56 "//base/notification/ces_standard/interfaces/innerkits/native/include", 57 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 58 "${aafwk_path}/interfaces/innerkits/want/include", 59 "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", 60 "//foundation/aafwk/intent/interfaces/innerkits/base/include", 61 "//foundation/aafwk/standard/interfaces/innerkits/base/include", 62 "//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include", 63 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 64 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include", 65 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include", 66 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk/", 67 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 68 "//foundation/resourceschedule/backgroundtaskmanager/interfaces/innerkits/native/include", 69 "//utils/native/base/include", 70 "//utils/system/safwk/native/include", 71 ] 72 73 deps = [ 74 "$SUBSYSTEM_DIR/location_common/common:lbsservice_common", 75 "${aafwk_path}/interfaces/innerkits/base:base", 76 "${aafwk_path}/interfaces/innerkits/want:want", 77 "//base/location/interfaces/innerkits/locator_standard:locator_sdk", 78 "//base/notification/ces_standard/frameworks/core:cesfwk_core", 79 "//base/notification/ces_standard/frameworks/native:cesfwk_innerkits", 80 "//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara", 81 "//foundation/ace/napi:ace_napi", 82 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 83 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 84 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 85 "//utils/native/base:utils", 86 ] 87 88 external_deps = [ 89 "access_token:libaccesstoken_sdk", 90 "ces_standard:cesfwk_innerkits", 91 "eventhandler:libeventhandler", 92 "hisysevent_native:libhisysevent", 93 "hiviewdfx_hilog_native:libhilog", 94 "ipc:ipc_core", 95 "permission_standard:libpermissionsdk_standard", 96 "samgr_standard:samgr_proxy", 97 "startup_l2:syspara", 98 ] 99 100 part_name = "location_locator" 101 subsystem_name = "location" 102} 103