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_geocode) { 18 ohos_shared_library("lbsservice_geocode") { 19 sources = [ 20 "$LOCATION_GEOCONVERT_ROOT/source/geo_convert_callback_host.cpp", 21 "$LOCATION_GEOCONVERT_ROOT/source/geo_convert_service.cpp", 22 "$LOCATION_GEOCONVERT_ROOT/source/geo_convert_skeleton.cpp", 23 "$LOCATION_LOCATOR_ROOT/source/location_config_manager.cpp", 24 ] 25 26 include_dirs = [ 27 "$LOCATION_GEOCONVERT_ROOT/include", 28 "$LOCATION_LOCATOR_ROOT/include", 29 "$LOCATION_ROOT_DIR/interfaces/inner_api/include", 30 ] 31 32 deps = [ 33 "$LOCATION_ROOT_DIR/frameworks/location_common/common:lbsservice_common", 34 ] 35 36 defines = [] 37 if (location_feature_with_geocode) { 38 defines += [ "FEATURE_GEOCODE_SUPPORT" ] 39 } 40 41 external_deps = [ 42 "ability_base:want", 43 "ability_runtime:ability_manager", 44 "c_utils:utils", 45 "hilog:libhilog", 46 "init:libbegetutil", 47 "ipc:ipc_core", 48 "safwk:system_ability_fwk", 49 "samgr:samgr_proxy", 50 ] 51 52 part_name = "location" 53 subsystem_name = "location" 54 } 55} else { 56 ohos_shared_library("lbsservice_geocode") { 57 part_name = "location" 58 subsystem_name = "location" 59 } 60} 61