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_COMMON_ROOT = "//base/location/frameworks/location_common/common" 18 19ohos_shared_library("lbsservice_common") { 20 sources = [ 21 "$LOCATION_COMMON_ROOT/source/app_identity.cpp", 22 "$LOCATION_COMMON_ROOT/source/common_hisysevent.cpp", 23 "$LOCATION_COMMON_ROOT/source/common_utils.cpp", 24 "$LOCATION_COMMON_ROOT/source/geo_address.cpp", 25 "$LOCATION_COMMON_ROOT/source/geo_coding_mock_info.cpp", 26 "$LOCATION_COMMON_ROOT/source/geofence_state.cpp", 27 "$LOCATION_COMMON_ROOT/source/location.cpp", 28 "$LOCATION_COMMON_ROOT/source/location_dumper.cpp", 29 "$LOCATION_COMMON_ROOT/source/request_config.cpp", 30 "$LOCATION_COMMON_ROOT/source/satellite_status.cpp", 31 ] 32 33 include_dirs = [ 34 "//base/location/interfaces/inner_api/include", 35 "$SUBSYSTEM_DIR/location_geocode/geocode/include", 36 "$SUBSYSTEM_DIR/location_gnss/gnss/include", 37 "$SUBSYSTEM_DIR/location_locator/callback/include", 38 "$SUBSYSTEM_DIR/location_locator/distribute/include", 39 "$SUBSYSTEM_DIR/location_locator/locator/include", 40 "$SUBSYSTEM_DIR/location_network/network/include", 41 "$SUBSYSTEM_DIR/location_passive/passive/include", 42 ] 43 44 deps = [] 45 46 external_deps = [ 47 "ability_runtime:wantagent_innerkits", 48 "access_token:libaccesstoken_sdk", 49 "bundle_framework:appexecfwk_base", 50 "bundle_framework:appexecfwk_core", 51 "c_utils:utils", 52 "hisysevent_native:libhisysevent", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 "os_account:os_account_innerkits", 56 "samgr:samgr_proxy", 57 ] 58 59 part_name = "location" 60 subsystem_name = "location" 61} 62