diff --git a/BUILD.gn b/BUILD.gn index 2066367db3a145d019bc063907e64911f20e60cd..4dc600410d9d527c5eb454c642b37d47ee04c597 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Huawei Device Co., Ltd. +# Copyright (c) 2020-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -265,6 +265,7 @@ if (defined(ohos_lite)) { include_dirs = [ "//third_party/curl/include", "//third_party/curl/lib", + "//third_party/nghttp2/lib/includes", ] } @@ -330,6 +331,7 @@ if (defined(ohos_lite)) { } deps = [ + "//third_party/nghttp2/lib:nghttp2", "//third_party/openssl:libcrypto_static", "//third_party/openssl:ssl_source", "//third_party/zlib:libz", diff --git a/lib/curl_config.h b/lib/curl_config.h index 2dbaed184faf3f4e2f30d44c363afc692e820ca6..cb9f72a57cf22b67df6e1d3c78bcc06b5743b8d9 100644 --- a/lib/curl_config.h +++ b/lib/curl_config.h @@ -999,7 +999,7 @@ /* #undef USE_METALINK */ /* if nghttp2 is in use */ -/* #undef USE_NGHTTP2 */ +#define USE_NGHTTP2 1 /* if nghttp3 is in use */ /* #undef USE_NGHTTP3 */