mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-26 17:40:25 +00:00
build modify
Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
cd01acb103
commit
0cb2929381
13
bundle.json
13
bundle.json
@ -30,7 +30,18 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [],
|
||||
"inner_kits": [],
|
||||
"inner_kits": [
|
||||
{
|
||||
"name":"//third_party/nghttp2/lib:libnghttp2_shared",
|
||||
"header":{
|
||||
"header_files":[],
|
||||
"header_base": [
|
||||
"//third_party/nghttp2/lib/includes",
|
||||
"//third_party/nghttp2/lib/includes/nghttp2"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"test": []
|
||||
}
|
||||
}
|
||||
|
10
lib/BUILD.gn
10
lib/BUILD.gn
@ -111,9 +111,19 @@ if (defined(ohos_lite)) {
|
||||
sources = nghttp2_lib_sources
|
||||
}
|
||||
|
||||
config("libnghttp2_shared_config_public") {
|
||||
include_dirs = [
|
||||
"//third_party/nghttp2/lib/includes",
|
||||
"//third_party/nghttp2/lib/includes/nghttp2",
|
||||
]
|
||||
|
||||
cflags = [ "-Wno-deprecated-declarations" ]
|
||||
}
|
||||
|
||||
ohos_shared_library("libnghttp2_shared") {
|
||||
include_dirs = [ "includes" ]
|
||||
license_file = "//third_party/nghttp2/COPYING"
|
||||
public_configs = [ ":libnghttp2_shared_config_public" ]
|
||||
defines = [ "HAVE_TIME_H=1" ]
|
||||
if (is_linux || is_mac || is_ohos) {
|
||||
defines += [
|
||||
|
Loading…
Reference in New Issue
Block a user