mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
!238 (cherry-pick)给 libsyscap_interface_shared.so 瘦身。
Merge pull request !238 from chenyude/monthly_20221018
This commit is contained in:
@@ -123,25 +123,40 @@ config("syscap_interface_public_config") {
|
||||
}
|
||||
|
||||
if (defined(ohos_lite)) {
|
||||
shared_library("syscap_interface_shared") {
|
||||
include_dirs = [
|
||||
"include",
|
||||
"src",
|
||||
]
|
||||
public_configs = [ ":syscap_interface_public_config" ]
|
||||
sources = [
|
||||
"./interfaces/inner_api/syscap_interface.c",
|
||||
"./src/endian_internal.c",
|
||||
"./src/syscap_tool.c",
|
||||
]
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
group("syscap_interface_shared") {
|
||||
}
|
||||
} else {
|
||||
shared_library("syscap_interface_shared") {
|
||||
_version_script = rebase_path("libsyscap_interface_shared.versionscript")
|
||||
if (!defined(ldflags)) {
|
||||
ldflags = []
|
||||
}
|
||||
ldflags += [
|
||||
"-rdynamic",
|
||||
"-Wl,--version-script=${_version_script}",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//build/lite/config/component/cJSON:cjson_static",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
]
|
||||
include_dirs = [
|
||||
"include",
|
||||
"src",
|
||||
]
|
||||
public_configs = [ ":syscap_interface_public_config" ]
|
||||
sources = [
|
||||
"./interfaces/inner_api/syscap_interface.c",
|
||||
"./src/endian_internal.c",
|
||||
"./src/syscap_tool.c",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//build/lite/config/component/cJSON:cjson_static",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
]
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ohos_shared_library("syscap_interface_shared") {
|
||||
version_script = "libsyscap_interface_shared.versionscript"
|
||||
include_dirs = [
|
||||
"include",
|
||||
"src",
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
{
|
||||
global:
|
||||
ComparePcidString;
|
||||
DecodeOsSyscap;
|
||||
DecodePrivateSyscap;
|
||||
EncodeOsSyscap;
|
||||
EncodePrivateSyscap;
|
||||
DecodeRpcidToStringFormat;
|
||||
FreeCompareError;
|
||||
local: *;
|
||||
};
|
||||
Reference in New Issue
Block a user