已开启
feature: add version_script for contact_cj to control symbol export #331
ding_hong_4创建于 7 天前
feature: add version_script for contact_cj to control symbol export #331
已开启
共 2 个文件变更+23-0
| @@ -27,6 +27,8 @@ ohos_shared_library("contact_cj") { | |||
| 27 | 27 | ||
| 28 | include_dirs = [ "include" ] | 28 | include_dirs = [ "include" ] |
| 29 | 29 | ||
| 30 | + version_script = "libcj_contact_ffi.map" | ||
| 31 | + | ||
| 30 | sanitize = { | 32 | sanitize = { |
| 31 | cfi = true | 33 | cfi = true |
| 32 | cfi_cross_dso = true | 34 | cfi_cross_dso = true |
| @@ -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 | +}; | ||