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("//base/location/config.gni") 15import("//build/ohos.gni") 16 17if (location_feature_with_passive) { 18 ohos_shared_library("lbsservice_passive") { 19 sources = [ 20 "$LOCATION_LOCATOR_ROOT/source/subability_common.cpp", 21 "$LOCATION_LOCATOR_ROOT/source/work_record.cpp", 22 "$LOCATION_PASSIVE_ROOT/source/passive_ability.cpp", 23 "$LOCATION_PASSIVE_ROOT/source/passive_ability_skeleton.cpp", 24 ] 25 26 include_dirs = [ 27 "$LOCATION_ROOT_DIR/interfaces/inner_api/include", 28 "$LOCATION_LOCATOR_ROOT/include", 29 "$LOCATION_PASSIVE_ROOT/include", 30 ] 31 32 deps = [ 33 "$LOCATION_ROOT_DIR/frameworks/location_common/common:lbsservice_common", 34 ] 35 36 external_deps = [ 37 "c_utils:utils", 38 "eventhandler:libeventhandler", 39 "hilog:libhilog", 40 "ipc:ipc_core", 41 "safwk:system_ability_fwk", 42 "samgr:samgr_proxy", 43 ] 44 45 defines = [] 46 if (location_feature_with_passive) { 47 defines += [ "FEATURE_PASSIVE_SUPPORT" ] 48 } 49 50 part_name = "location" 51 subsystem_name = "location" 52 } 53} else { 54 ohos_shared_library("lbsservice_passive") { 55 part_name = "location" 56 subsystem_name = "location" 57 } 58} 59