diff --git a/engine/src/flutter/fml/BUILD.gn b/engine/src/flutter/fml/BUILD.gn index d2d4a165c7..f7c271401c 100644 --- a/engine/src/flutter/fml/BUILD.gn +++ b/engine/src/flutter/fml/BUILD.gn @@ -289,6 +289,13 @@ source_set("command_line") { ] } +config("string_conversion_config") { + if (is_win) { + # TODO(50053): Replace codecvt usage. + defines = [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ] + } +} + source_set("string_conversion") { sources = [ "string_conversion.cc", @@ -304,14 +311,12 @@ source_set("string_conversion") { "platform/win/wstring_conversion.cc", "platform/win/wstring_conversion.h", ] - - # TODO(cbracken): https://github.com/flutter/flutter/issues/50053 - defines += [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ] } deps = [ ":build_config" ] public_configs = [ + ":string_conversion_config", "//flutter:config", "//flutter/common:flutter_config", ] diff --git a/engine/src/flutter/impeller/BUILD.gn b/engine/src/flutter/impeller/BUILD.gn index 141defe0a7..35bb8f96a4 100644 --- a/engine/src/flutter/impeller/BUILD.gn +++ b/engine/src/flutter/impeller/BUILD.gn @@ -30,13 +30,6 @@ config("impeller_public_config") { defines += [ "IMPELLER_ENABLE_VULKAN=1" ] } - if (is_win) { - defines += [ - # TODO(dnfield): https://github.com/flutter/flutter/issues/50053 - "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING", - ] - } - if (impeller_enable_3d) { defines += [ "IMPELLER_ENABLE_3D" ] }