diff --git a/BUILD.gn b/BUILD.gn index b97a5321cbb9263e59347455b69890d26f92fd14..d12e97eb121e3b8ef54e7f1e35fd75c6469fe5c6 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -194,8 +194,8 @@ print("Build curl is_cares_on: $is_cares_on") support_gmssl = false if (defined(global_parts_info) && - defined(global_parts_info.third_party_openhitls) && - global_parts_info.third_party_openhitls && + defined(global_parts_info.thirdparty_openhitls) && + global_parts_info.thirdparty_openhitls && (is_linux || (is_ohos && is_standard_system))) { support_gmssl = true } @@ -312,6 +312,7 @@ if (defined(ohos_lite)) { } ohos_source_set("curl") { + defines = [] configs = [ ":curl_config" ] external_deps = [ "openssl:libssl_shared" ] @@ -473,7 +474,7 @@ if (defined(ohos_lite)) { "cares:c_ares", ] } - defines = [ + defines += [ "USE_ARES", "HAVE_BROTLI", "DISABLE_GETENV", @@ -484,6 +485,7 @@ if (defined(ohos_lite)) { } ohos_source_set("curl_http3") { + defines = [] configs = [ ":curl_config" ] if (netstack_feature_http3) { @@ -657,7 +659,7 @@ if (defined(ohos_lite)) { "cares:c_ares", ] } - defines = [ + defines += [ "USE_ARES", "HAVE_BROTLI", "DISABLE_GETENV",