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 16SUBSYSTEM_DIR = "//base/location/services" 17LOCATION_NETWORK_ROOT = "$SUBSYSTEM_DIR/location_network/network" 18 19ohos_shared_library("lbsservice_network") { 20 sources = [ 21 "$LOCATION_NETWORK_ROOT/source/network_ability.cpp", 22 "$LOCATION_NETWORK_ROOT/source/network_ability_skeleton.cpp", 23 "$LOCATION_NETWORK_ROOT/source/network_callback_host.cpp", 24 ] 25 26 include_dirs = [ 27 "//base/location/interfaces/inner_api/include", 28 "$SUBSYSTEM_DIR/location_network/network/include", 29 "$SUBSYSTEM_DIR/location_locator/locator/include", 30 ] 31 32 deps = [ 33 "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator", 34 "//base/location/frameworks/location_common/common:lbsservice_common", 35 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 36 "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk", 37 ] 38 39 external_deps = [ 40 "ability_base:want", 41 "ability_runtime:ability_manager", 42 "access_token:libaccesstoken_sdk", 43 "bundle_framework:appexecfwk_core", 44 "c_utils:utils", 45 "common_event_service:cesfwk_innerkits", 46 "eventhandler:libeventhandler", 47 "hiviewdfx_hilog_native:libhilog", 48 ] 49 part_name = "location" 50 subsystem_name = "location" 51} 52