diff --git a/interfaces/native/BUILD.gn b/interfaces/native/BUILD.gn index d4cc3c444621f89d6beae654adbe21fba22de05d..e802b4baaacffbc4d74c364e6284b3909bd9d35f 100644 --- a/interfaces/native/BUILD.gn +++ b/interfaces/native/BUILD.gn @@ -17,7 +17,7 @@ SUBSYSTEM_DIR = "//base/sensors/sensor" ############################################## ohos_ndk_library("libsensor_ndk") { - output_name = "sensor" + output_name = "sensor_ndk" ndk_description_file = "./libsensor.json" min_compact_version = "6" } diff --git a/interfaces/plugin/BUILD.gn b/interfaces/plugin/BUILD.gn index e4d75127c1e62294600c0a198793d1e6b16dcdc4..88e2f32dcbe7e3bb08613121ab2edb5c6d82e125 100644 --- a/interfaces/plugin/BUILD.gn +++ b/interfaces/plugin/BUILD.gn @@ -13,7 +13,7 @@ #import("//build/config/ohos/rules.gni") import("//build/ohos.gni") -ohos_shared_library("sensor") { +ohos_shared_library("libsensor") { include_dirs = [ "//third_party/node/src", "//native_engine", @@ -45,5 +45,5 @@ ohos_shared_library("sensor") { } group("sensor_js_target") { - deps = [ ":sensor" ] + deps = [ ":libsensor" ] }