third-party library

Signed-off-by: quguiren <quguiren@huawei.com>
This commit is contained in:
quguiren 2023-11-14 09:54:57 +08:00
parent 2db1fe45f2
commit abbafe4ee0

View File

@ -95,6 +95,7 @@ if (defined(ohos_lite)) {
]
}
} else {
import("//build/config/config.gni")
import("//build/ohos.gni")
ohos_static_library("nghttp2") {
@ -120,6 +121,14 @@ if (defined(ohos_lite)) {
"HAVE_NETINET_IN_H=1",
]
}
if (current_os == "ios") {
ldflags = [
"-Wl",
"-install_name",
"@rpath/libnghttp2.framework/libnghttp2",
]
output_name = "nghttp2"
}
sources = nghttp2_lib_sources
if (target_os != "ios") {
if (product_name != "ohos-sdk") {
@ -134,4 +143,12 @@ if (defined(ohos_lite)) {
innerapi_tags = [ "platformsdk" ]
part_name = "nghttp2"
}
if (current_os == "ios") {
ohos_combine_darwin_framework("libnghttp2") {
deps = [ ":libnghttp2_shared" ]
subsystem_name = "thirdparty"
part_name = "nghttp2"
}
}
}