init: fix libs

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6 2021-11-05 17:17:46 +08:00
parent df15f9fabb
commit 36508ac532
4 changed files with 14 additions and 4 deletions

View File

@ -31,7 +31,7 @@ ohos_static_library("libfile_static") {
deps = service_file_deps
}
ohos_shared_library("libfile_shared") {
ohos_shared_library("libfile") {
sources = service_file_sources
include_dirs = service_file_include
deps = service_file_deps

View File

@ -25,8 +25,16 @@ service_reboot_deps = [
"//third_party/bounds_checking_function:libsec_static",
]
ohos_static_library("libreboot") {
ohos_static_library("libreboot_static") {
sources = service_reboot_sources
include_dirs = service_reboot_include
deps = service_reboot_deps
}
ohos_shared_library("libreboot") {
sources = service_reboot_sources
include_dirs = service_reboot_include
deps = service_reboot_deps
part_name = "init"
install_images = [ "system" ]
}

View File

@ -167,7 +167,7 @@ if (defined(ohos_lite)) {
":init",
":init_etc",
"//base/startup/init_lite/interfaces/innerkits/dynamic_service:dynamic_service",
"//base/startup/init_lite/interfaces/innerkits/file:libfile_shared",
"//base/startup/init_lite/interfaces/innerkits/file:libfile",
"//base/startup/init_lite/interfaces/innerkits/fs_manager:libfsmanager_shared",
"//base/startup/init_lite/interfaces/innerkits/reboot:libreboot",
"//base/startup/init_lite/interfaces/innerkits/socket:libsocket",

View File

@ -20,7 +20,9 @@ ohos_executable("reboot") {
"//base/startup/init_lite/services/include/param/",
"//third_party/bounds_checking_function/include",
]
deps = [ "//base/startup/init_lite/interfaces/innerkits/reboot:libreboot" ]
deps = [
"//base/startup/init_lite/interfaces/innerkits/reboot:libreboot_static",
]
install_enable = true
part_name = "init"
}