[Windows] Move to Visual Studio 2019 (flutter/engine#37013)
Use Visual Studio 2019 to build the engine. This is a requirement to roll ANGLE as it is affected by an STL bug if built using Visual Studio 2017: [angleproject#7693](https://bugs.chromium.org/p/angleproject/issues/detail?id=7693) Depends on: https://github.com/flutter/buildroot/pull/643 Part of: https://github.com/flutter/flutter/issues/110948
This commit is contained in:
2
DEPS
2
DEPS
@@ -113,7 +113,7 @@ allowed_hosts = [
|
||||
]
|
||||
|
||||
deps = {
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'a680bb1c63e6ae1831cb672db029e9842ec4b905',
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'ad96f00615dc306c22cc09d433eee50392f8033c',
|
||||
|
||||
# Fuchsia compatibility
|
||||
#
|
||||
|
||||
@@ -10,11 +10,18 @@ namespace testing {
|
||||
|
||||
namespace {
|
||||
|
||||
#ifdef _WIN32
|
||||
#define FLUTTER_NOINLINE __declspec(noinline)
|
||||
#else
|
||||
#define FLUTTER_NOINLINE __attribute__((noinline))
|
||||
#endif
|
||||
|
||||
using TestWindowProcDelegate = std::function<std::optional<
|
||||
LRESULT>(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)>;
|
||||
|
||||
// A FlutterDesktopWindowProcCallback that forwards to a std::function provided
|
||||
// as user_data.
|
||||
FLUTTER_NOINLINE
|
||||
bool TestWindowProcCallback(HWND hwnd,
|
||||
UINT message,
|
||||
WPARAM wparam,
|
||||
|
||||
@@ -44,7 +44,12 @@ def GetDiaDll():
|
||||
msvs_version = vs_toolchain.GetVisualStudioVersion()
|
||||
|
||||
if bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1'))):
|
||||
dia_path = os.path.join(win_sdk_dir, '..', 'DIA SDK', 'bin', 'amd64')
|
||||
# Depot tools .zip layout:
|
||||
# \- DIA SDK
|
||||
# \- Windows Kits
|
||||
# \- 10
|
||||
# \- ... # Location of `DEPOT_TOOLS_WIN_TOOLCHAIN`
|
||||
dia_path = os.path.join(win_sdk_dir, '..', '..', 'DIA SDK', 'bin', 'amd64')
|
||||
else:
|
||||
if 'GYP_MSVS_OVERRIDE_PATH' in os.environ:
|
||||
vs_path = os.environ['GYP_MSVS_OVERRIDE_PATH']
|
||||
|
||||
Reference in New Issue
Block a user