提交 7ae03f3a 编写于 作者: A arvinzzz

refactor: libsec_static复用liteos_m的编译

close: #I5FNP3
Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
Change-Id: I6b8724cd46e48f3f18f11b5dd09a5acee1edc049
上级 a43d234d
......@@ -26,17 +26,17 @@ config("libsec_public_config") {
}
if (defined(ohos_lite)) {
# When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile.
if (ohos_kernel_type == "liteos_m") {
group("libsec_static") {
}
} else {
lite_library("libsec_static") {
target_type = "static_library"
# When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile.
if (ohos_kernel_type != "liteos_m") {
sources = libsec_sources
} else {
sources = []
}
public_configs = [ ":libsec_public_config" ]
}
}
lite_library("libsec_shared") {
target_type = "shared_library"
sources = libsec_sources
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册