mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-11 04:34:32 +00:00
!489 add syscap lib for mini and small system
Merge pull request !489 from peitaiyi/master
This commit is contained in:
commit
0d45e81c88
36
interfaces/innerkits/syscap/BUILD.gn
Executable file
36
interfaces/innerkits/syscap/BUILD.gn
Executable file
@ -0,0 +1,36 @@
|
||||
# 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" ]
|
||||
}
|
8
services/param/BUILD.gn
Normal file → Executable file
8
services/param/BUILD.gn
Normal file → Executable file
@ -115,10 +115,10 @@ ohos_shared_library("param_client") {
|
||||
}
|
||||
}
|
||||
|
||||
deps = [
|
||||
"//base/startup/init_lite/services/log:agent_log",
|
||||
"//third_party/bounds_checking_function:libsec_static",
|
||||
]
|
||||
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
|
||||
if (is_standard_system) {
|
||||
deps += [ "//base/startup/init_lite/services/log:agent_log" ]
|
||||
}
|
||||
install_images = [
|
||||
"system",
|
||||
"updater",
|
||||
|
31
services/utils/BUILD.gn
Normal file → Executable file
31
services/utils/BUILD.gn
Normal file → Executable file
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user