mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
!85 【部件化治理】各部件改造支持独立编译
Merge pull request !85 from Aurora/wh0418-nghtt2
This commit is contained in:
commit
a00510fe77
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