diff --git a/bundle.json b/bundle.json index 0ec57553..d0accecd 100644 --- a/bundle.json +++ b/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": [] } } diff --git a/lib/BUILD.gn b/lib/BUILD.gn index e8ce2429..d5fedc45 100644 --- a/lib/BUILD.gn +++ b/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 += [