!85 【部件化治理】各部件改造支持独立编译

Merge pull request !85 from Aurora/wh0418-nghtt2
This commit is contained in:
openharmony_ci 2024-04-24 08:08:31 +00:00 committed by Gitee
commit a00510fe77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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 += [