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" 18LOCATION_GNSS_ROOT = "$SUBSYSTEM_DIR/location_gnss/gnss" 19 20ohos_shared_library("lbsservice_gnss") { 21 sources = [ 22 "$LOCATION_GNSS_ROOT/source/gnss_ability.cpp", 23 "$LOCATION_GNSS_ROOT/source/gnss_ability_skeleton.cpp", 24 ] 25 26 include_dirs = [ 27 "$SUBSYSTEM_DIR/interfaces/innerkits/locator_standard/include", 28 "$SUBSYSTEM_DIR/location_common/common/include", 29 "$SUBSYSTEM_DIR/location_geocode/geocode/include", 30 "$SUBSYSTEM_DIR/location_gnss/gnss/include", 31 "$SUBSYSTEM_DIR/location_locator/callback/include", 32 "$SUBSYSTEM_DIR/location_locator/distribute/include", 33 "$SUBSYSTEM_DIR/location_locator/locator/include", 34 "$SUBSYSTEM_DIR/location_network/network/include", 35 "$SUBSYSTEM_DIR/location_passive/passive/include", 36 "$SUBSYSTEM_DIR/utils/include", 37 "//base/notification/ces_standard/frameworks/core/include", 38 "//foundation/aafwk/intent/interfaces/innerkits/base/include", 39 "//foundation/aafwk/standard/interfaces/innerkits/base/include", 40 "${aafwk_path}/interfaces/innerkits/want/include", 41 "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", 42 "//foundation/appexecfwk/adapter/interfaces/innerkits/appexecfwk_base/include", 43 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 44 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include", 45 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk/", 46 "//utils/native/base/include", 47 "//utils/system/safwk/native/include", 48 ] 49 50 deps = [ 51 "$SUBSYSTEM_DIR/location_common/common:lbsservice_common", 52 "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator", 53 "${aafwk_path}/interfaces/innerkits/base:base", 54 "${aafwk_path}/interfaces/innerkits/want:want", 55 "//base/location/interfaces/innerkits/locator_standard:locator_sdk", 56 "//base/notification/ces_standard/frameworks/core:cesfwk_core", 57 "//base/notification/ces_standard/frameworks/native:cesfwk_innerkits", 58 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 59 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 60 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 61 "//utils/native/base:utils", 62 ] 63 64 external_deps = [ 65 "ces_standard:cesfwk_innerkits", 66 "eventhandler:libeventhandler", 67 "hisysevent_native:libhisysevent", 68 "hiviewdfx_hilog_native:libhilog", 69 ] 70 71 part_name = "location_gnss" 72 subsystem_name = "location" 73} 74