已合并
feature: add version_script for cj_cellular_data_ffi to control symbol export #1309
feature: add version_script for cj_cellular_data_ffi to control symbol export #1309
已合并
ding_hong_4创建于 27 天前
共 2 个文件变更+24-1
@@ -1,4 +1,4 @@
1-# Copyright (C) 2024 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
@@ -28,6 +28,8 @@ ohos_shared_library("cj_cellular_data_ffi") {
28 "src/tel_cellular_data_impl.cpp",28 "src/tel_cellular_data_impl.cpp",
29 ]29 ]
30 30 
31+ version_script = "libcj_cellular_data_ffi.map"
32+ 
31 deps =33 deps =
32 [ "$SUBSYSTEM_DIR/cellular_data/frameworks/native:tel_cellular_data_api" ]34 [ "$SUBSYSTEM_DIR/cellular_data/frameworks/native:tel_cellular_data_api" ]
33 35 
@@ -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+};