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 16ohos_shared_library("geolocation") { 17 install_enable = true 18 include_dirs = [ 19 "//base/location/frameworks/js/napi/include", 20 "//base/location/interfaces/inner_api/include", 21 ] 22 23 sources = [ 24 "//base/location/frameworks/js/napi/source/location_napi_adapter.cpp", 25 "//base/location/frameworks/js/napi/source/location_napi_entry.cpp", 26 "//base/location/frameworks/js/napi/source/location_napi_event.cpp", 27 "//base/location/frameworks/js/napi/source/location_napi_system.cpp", 28 ] 29 30 deps = [ 31 "//base/location/frameworks/location_common/common:lbsservice_common", 32 "//base/location/frameworks/native:locator_sdk", 33 ] 34 35 external_deps = [ 36 "ability_runtime:wantagent_innerkits", 37 "c_utils:utils", 38 "hiviewdfx_hilog_native:libhilog", 39 "ipc:ipc_core", 40 "napi:ace_napi", 41 ] 42 43 relative_install_dir = "module" 44 part_name = "location" 45 subsystem_name = "location" 46} 47 48ohos_static_library("geolocation_static") { 49 include_dirs = [ 50 "//base/location/frameworks/js/napi/include", 51 "//base/location/interfaces/inner_api/include", 52 ] 53 54 sources = [ 55 "//base/location/frameworks/js/napi/source/location_napi_adapter.cpp", 56 "//base/location/frameworks/js/napi/source/location_napi_entry.cpp", 57 "//base/location/frameworks/js/napi/source/location_napi_event.cpp", 58 "//base/location/frameworks/js/napi/source/location_napi_system.cpp", 59 ] 60 61 deps = [ 62 "//base/location/frameworks/location_common/common:lbsservice_common", 63 "//base/location/frameworks/native:locator_sdk", 64 ] 65 66 external_deps = [ 67 "ability_runtime:wantagent_innerkits", 68 "c_utils:utils", 69 "hiviewdfx_hilog_native:libhilog", 70 "ipc:ipc_core", 71 "napi:ace_napi", 72 ] 73 74 part_name = "location" 75 subsystem_name = "location" 76} 77 78ohos_shared_library("geolocationmanager") { 79 install_enable = true 80 include_dirs = [ 81 "//base/location/frameworks/js/napi/include", 82 "//base/location/interfaces/inner_api/include", 83 ] 84 85 sources = [ 86 "//base/location/frameworks/js/napi/source/location_napi_adapter.cpp", 87 "//base/location/frameworks/js/napi/source/location_napi_entry.cpp", 88 "//base/location/frameworks/js/napi/source/location_napi_errcode.cpp", 89 "//base/location/frameworks/js/napi/source/location_napi_event.cpp", 90 "//base/location/frameworks/js/napi/source/location_napi_system.cpp", 91 ] 92 93 deps = [ 94 "//base/location/frameworks/location_common/common:lbsservice_common", 95 "//base/location/frameworks/native:locator_sdk", 96 ] 97 98 defines = [ "ENABLE_NAPI_MANAGER" ] 99 100 external_deps = [ 101 "ability_runtime:wantagent_innerkits", 102 "c_utils:utils", 103 "hiviewdfx_hilog_native:libhilog", 104 "ipc:ipc_core", 105 "napi:ace_napi", 106 ] 107 108 relative_install_dir = "module" 109 part_name = "location" 110 subsystem_name = "location" 111} 112