提交 f09f830d 编写于 作者: T taiyipei

add syscap lib for mini and small system

Signed-off-by: Ntaiyipei <peitaiyi@huawei.com>
上级 40eb5fe1
# Copyright (c) 2022 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.
import("//build/ohos.gni")
config("syscap_config") {
include_dirs = [ "../include" ]
}
ohos_shared_library("syscap") {
sources = [ "init_syscap.c" ]
include_dirs = [
"../include",
"../../../services/include/param",
]
deps = [
"../../../services/log:init_log",
"../../../services/param:param_client",
"//third_party/bounds_checking_function:libsec_shared",
]
public_configs = [ ":syscap_config" ]
part_name = "init"
install_images = [
"system",
"updater",
]
}
\ No newline at end of file
......@@ -116,7 +116,6 @@ ohos_shared_library("param_client") {
}
deps = [
"//base/startup/init_lite/services/log:agent_log",
"//third_party/bounds_checking_function:libsec_static",
]
install_images = [
......
......@@ -10,6 +10,20 @@
# 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.
import("//build/ohos.gni")
ohos_static_library("libinit_utils") {
sources = [ "init_utils.c" ]
include_dirs = [
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/include",
]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
if (defined(ohos_lite)) {
static_library("libinit_tools") {
......@@ -29,8 +43,6 @@ if (defined(ohos_lite)) {
defines = [ "_GNU_SOURCE" ]
}
} else {
import("//build/ohos.gni")
ohos_static_library("libinit_tools") {
sources = [
"//base/startup/init_lite/services/utils/init_hashmap.c",
......@@ -48,19 +60,4 @@ if (defined(ohos_lite)) {
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
ohos_static_library("libinit_utils") {
sources = [ "init_utils.c" ]
include_dirs = [
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/include",
]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册