• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 37f88a78099229235dc466b68d44406567370e8a Mon Sep 17 00:00:00 2001
2From: fangzhou12 <fangzhou12@huawei.com>
3Date: Tue, 6 Jun 2023 19:28:08 +0800
4Subject: [PATCH] namespace bugfix
5
6---
7 mindspore/lite/BUILD.gn                                    | 2 +-
8 mindspore/lite/src/runtime/js_api/BUILD.gn                 | 2 +-
9 mindspore/lite/src/runtime/js_api/native_module_ohos_ms.cc | 2 +-
10 3 files changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/mindspore/lite/BUILD.gn b/mindspore/lite/BUILD.gn
13index 9ad0caf7..2ac6f7db 100644
14--- a/mindspore/lite/BUILD.gn
15+++ b/mindspore/lite/BUILD.gn
16@@ -70,7 +70,7 @@ ohos_group("mindspore") {
17     ":mindspore_lib",
18     ":mindspore_train_lib",
19     "mindir:mindir_lib",
20-    "src/runtime/js_api:mindspore_lite_napi"
21+    "src/runtime/js_api:mindsporelite_napi"
22   ]
23 }
24
25diff --git a/mindspore/lite/src/runtime/js_api/BUILD.gn b/mindspore/lite/src/runtime/js_api/BUILD.gn
26index 04031370..3994ad0f 100644
27--- a/mindspore/lite/src/runtime/js_api/BUILD.gn
28+++ b/mindspore/lite/src/runtime/js_api/BUILD.gn
29@@ -14,7 +14,7 @@
30 import("//build/ohos.gni")
31 import("//build/ohos/ace/ace.gni")
32
33-ohos_shared_library("mindspore_lite_napi") {
34+ohos_shared_library("mindsporelite_napi") {
35   include_dirs = [
36     "//third_party/mindspore/mindspore-src/source/",
37     "//third_party/mindspore/mindspore-src/source/include/api",
38diff --git a/mindspore/lite/src/runtime/js_api/native_module_ohos_ms.cc b/mindspore/lite/src/runtime/js_api/native_module_ohos_ms.cc
39index a1954ae1..7a381c1e 100644
40--- a/mindspore/lite/src/runtime/js_api/native_module_ohos_ms.cc
41+++ b/mindspore/lite/src/runtime/js_api/native_module_ohos_ms.cc
42@@ -35,7 +35,7 @@ static napi_module g_module = {.nm_version = 1,
43                                .nm_flags = 0,
44                                .nm_filename = nullptr,
45                                .nm_register_func = Export,
46-                               .nm_modname = "ai.mslite",
47+                               .nm_modname = "ai.mindSporeLite",
48                                .nm_priv = ((void *)0),
49                                .reserved = {0}};
50
51--
522.17.1
53
54