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" 17LOCATION_COMMON_ROOT = "$SUBSYSTEM_DIR/location_common/common" 18 19ohos_shared_library("lbsservice_common") { 20 sources = [ 21 "$LOCATION_COMMON_ROOT/source/geo_address.cpp", 22 "$LOCATION_COMMON_ROOT/source/geofence_state.cpp", 23 "$LOCATION_COMMON_ROOT/source/location.cpp", 24 "$LOCATION_COMMON_ROOT/source/location_config_manager.cpp", 25 "$LOCATION_COMMON_ROOT/source/location_dumper.cpp", 26 "$LOCATION_COMMON_ROOT/source/request_config.cpp", 27 "$LOCATION_COMMON_ROOT/source/satellite_status.cpp", 28 "$SUBSYSTEM_DIR/utils/source/common_utils.cpp", 29 ] 30 31 include_dirs = [ 32 "$SUBSYSTEM_DIR/location_common/common/include", 33 "$SUBSYSTEM_DIR/location_geocode/geocode/include", 34 "$SUBSYSTEM_DIR/location_gnss/gnss/include", 35 "$SUBSYSTEM_DIR/location_locator/callback/include", 36 "$SUBSYSTEM_DIR/location_locator/distribute/include", 37 "$SUBSYSTEM_DIR/location_locator/locator/include", 38 "$SUBSYSTEM_DIR/location_network/network/include", 39 "$SUBSYSTEM_DIR/location_passive/passive/include", 40 "$SUBSYSTEM_DIR/utils/include", 41 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 42 "//utils/native/base/include", 43 "//utils/system/safwk/native/include", 44 ] 45 46 deps = [ 47 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 48 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 49 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 50 "//utils/native/base:utils", 51 ] 52 53 external_deps = [ 54 "ability_base:want", 55 "ability_runtime:wantagent_innerkits", 56 "access_token:libaccesstoken_sdk", 57 "hisysevent_native:libhisysevent", 58 "hiviewdfx_hilog_native:libhilog", 59 "startup_l2:syspara", 60 ] 61 62 part_name = "location_common" 63 subsystem_name = "location" 64} 65