已合并
feature: add version_script for cj_notification_manager_ffi to control symbol export #5019
feature: add version_script for cj_notification_manager_ffi to control symbol export #5019
已合并
ding_hong_4创建于 8月27日
共 2 个文件变更+24-1
@@ -1,4 +1,4 @@
1-# Copyright (C) 2024-2025 Huawei Device Co., Ltd.1+# Copyright (C) 2024-2026 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at4# You may obtain a copy of the License at
@@ -32,6 +32,8 @@ ohos_shared_library("cj_notification_manager_ffi") {
32 "${component_path}/frameworks/core/common/include",32 "${component_path}/frameworks/core/common/include",
33 ]33 ]
34 34 
35+ version_script = "libcj_notification_manager_ffi.map"
36+ 
35 if (!defined(defines)) {37 if (!defined(defines)) {
36 defines = []38 defines = []
37 }39 }
@@ -0,0 +1,21 @@
1+# Copyright (c) 2026 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+ 
14+{
15+ global:
16+ extern "C" {
17+ Ffi*;
18+ };
19+ local:
20+ *;
21+};