mirror of
https://github.com/openharmony/base_location.git
synced 2026-08-24 22:31:51 -04:00
Feature: add static library target for geolocation napi module for unittest
1) add static library target for geolocation napi module for unittest 2) unittest uses static libraries instead of dynamic napi libraries 3) enable symbol optimization for geolocation napi module Signed-off-by: handyohos <zhangxiaotian@huawei.com> Change-Id: Ifd4f9f74298d9825227286b479697cbabd9540e3 #I693K9
This commit is contained in:
@@ -45,6 +45,36 @@ ohos_shared_library("geolocation") {
|
||||
subsystem_name = "location"
|
||||
}
|
||||
|
||||
ohos_static_library("geolocation_static") {
|
||||
include_dirs = [
|
||||
"//base/location/frameworks/js/napi/include",
|
||||
"//base/location/interfaces/inner_api/include",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"//base/location/frameworks/js/napi/source/location_napi_adapter.cpp",
|
||||
"//base/location/frameworks/js/napi/source/location_napi_entry.cpp",
|
||||
"//base/location/frameworks/js/napi/source/location_napi_event.cpp",
|
||||
"//base/location/frameworks/js/napi/source/location_napi_system.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//foundation/arkui/napi:ace_napi",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ability_runtime:wantagent_innerkits",
|
||||
"c_utils:utils",
|
||||
"ipc:ipc_core",
|
||||
]
|
||||
|
||||
part_name = "location"
|
||||
subsystem_name = "location"
|
||||
}
|
||||
|
||||
ohos_shared_library("geolocationmanager") {
|
||||
install_enable = true
|
||||
include_dirs = [
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("CountryCodeManagerFuzzTest") {
|
||||
sources = [ "countrycodemanager_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("FusionControllerFuzzTest") {
|
||||
sources = [ "fusioncontroller_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -34,7 +34,7 @@ ohos_fuzztest("GeoConvertProxyFuzzTest") {
|
||||
sources = [ "geoconvertproxy_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_geocode/geocode:lbsservice_geocode",
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("LocationConfigManagerFuzzTest") {
|
||||
sources = [ "locationconfigmanager_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -34,7 +34,7 @@ ohos_fuzztest("LocatorFuzzTest") {
|
||||
sources = [ "locator_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -34,7 +34,7 @@ ohos_fuzztest("LocatorBackgroundProxyFuzzTest") {
|
||||
sources = [ "locatorbackgroundproxy_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("LocatorEventManagerFuzzTest") {
|
||||
sources = [ "locatoreventmanager_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("ReportManagerFuzzTest") {
|
||||
sources = [ "reportmanager_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
@@ -33,7 +33,7 @@ ohos_fuzztest("RequestManagerFuzzTest") {
|
||||
sources = [ "requestmanager_fuzzer.cpp" ]
|
||||
deps = [
|
||||
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
|
||||
"//base/location/frameworks/js/napi:geolocation",
|
||||
"//base/location/frameworks/js/napi:geolocation_static",
|
||||
"//base/location/frameworks/location_common/common:lbsservice_common",
|
||||
"//base/location/frameworks/native:locator_sdk",
|
||||
"//base/location/services/location_locator/locator:lbsservice_locator",
|
||||
|
||||
Reference in New Issue
Block a user