mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-12-04 06:11:17 +00:00
third-party library
Signed-off-by: quguiren <quguiren@huawei.com>
This commit is contained in:
parent
2db1fe45f2
commit
abbafe4ee0
17
lib/BUILD.gn
17
lib/BUILD.gn
@ -95,6 +95,7 @@ if (defined(ohos_lite)) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
import("//build/config/config.gni")
|
||||||
import("//build/ohos.gni")
|
import("//build/ohos.gni")
|
||||||
|
|
||||||
ohos_static_library("nghttp2") {
|
ohos_static_library("nghttp2") {
|
||||||
@ -120,6 +121,14 @@ if (defined(ohos_lite)) {
|
|||||||
"HAVE_NETINET_IN_H=1",
|
"HAVE_NETINET_IN_H=1",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
if (current_os == "ios") {
|
||||||
|
ldflags = [
|
||||||
|
"-Wl",
|
||||||
|
"-install_name",
|
||||||
|
"@rpath/libnghttp2.framework/libnghttp2",
|
||||||
|
]
|
||||||
|
output_name = "nghttp2"
|
||||||
|
}
|
||||||
sources = nghttp2_lib_sources
|
sources = nghttp2_lib_sources
|
||||||
if (target_os != "ios") {
|
if (target_os != "ios") {
|
||||||
if (product_name != "ohos-sdk") {
|
if (product_name != "ohos-sdk") {
|
||||||
@ -134,4 +143,12 @@ if (defined(ohos_lite)) {
|
|||||||
innerapi_tags = [ "platformsdk" ]
|
innerapi_tags = [ "platformsdk" ]
|
||||||
part_name = "nghttp2"
|
part_name = "nghttp2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (current_os == "ios") {
|
||||||
|
ohos_combine_darwin_framework("libnghttp2") {
|
||||||
|
deps = [ ":libnghttp2_shared" ]
|
||||||
|
subsystem_name = "thirdparty"
|
||||||
|
part_name = "nghttp2"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user