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" 17 18ohos_shared_library("geolocation") { 19 install_enable = true 20 include_dirs = [ 21 "//third_party/node/src", 22 "//native_engine", 23 "//utils/native/base/include", 24 "//utils/system/safwk/native/include", 25 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 26 "//base/location/interfaces/innerkits/napi", 27 "//base/location/interfaces/innerkits/locator_standard/include", 28 "//base/location/location_common/common/include", 29 "//base/location/location_locator/callback/include", 30 "//base/location/utils/include", 31 "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk/main/cpp/include", 32 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 33 ] 34 35 sources = [ 36 "$SUBSYSTEM_DIR/utils/source/common_utils.cpp", 37 "location_napi_adapter.cpp", 38 "location_napi_entry.cpp", 39 "location_napi_event.cpp", 40 "location_napi_system.cpp", 41 ] 42 43 deps = [ 44 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 45 "//base/location/interfaces/innerkits/locator_standard:locator_sdk", 46 "//base/location/location_common/common:lbsservice_common", 47 "//foundation/ace/napi:ace_napi", 48 "//third_party/libuv:uv_static", 49 "//utils/native/base:utils", 50 ] 51 52 external_deps = [ 53 "ability_base:want", 54 "ability_runtime:wantagent_innerkits", 55 "access_token:libaccesstoken_sdk", 56 "ces_standard:cesfwk_innerkits", 57 "eventhandler:libeventhandler", 58 "hisysevent_native:libhisysevent", 59 "hiviewdfx_hilog_native:libhilog", 60 "ipc:ipc_core", 61 "permission_standard:libpermissionsdk_standard", 62 "samgr_standard:samgr_proxy", 63 "startup_l2:syspara", 64 ] 65 66 relative_install_dir = "module" 67 part_name = "location" 68 subsystem_name = "location" 69} 70