build modify

Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
liuxiyao223 2024-04-18 16:00:03 +08:00
parent cd01acb103
commit 0cb2929381
2 changed files with 22 additions and 1 deletions

View File

@ -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": []
}
}

View File

@ -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 += [