Unverified Commit 5f6f70e6 authored by stuartmorgan's avatar stuartmorgan Committed by GitHub

Pass local engine variables to Windows build (#33540)

The props file used in the Windows build didn't include the local engine
build flags when applicable.
parent d963e4fe
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file // found in the LICENSE file
import '../artifacts.dart';
import '../base/common.dart'; import '../base/common.dart';
import '../base/file_system.dart'; import '../base/file_system.dart';
import '../base/io.dart'; import '../base/io.dart';
...@@ -22,6 +23,12 @@ Future<void> buildWindows(WindowsProject windowsProject, BuildInfo buildInfo, {S ...@@ -22,6 +23,12 @@ Future<void> buildWindows(WindowsProject windowsProject, BuildInfo buildInfo, {S
'PROJECT_DIR': windowsProject.project.directory.path, 'PROJECT_DIR': windowsProject.project.directory.path,
'TRACK_WIDGET_CREATION': (buildInfo?.trackWidgetCreation == true).toString(), 'TRACK_WIDGET_CREATION': (buildInfo?.trackWidgetCreation == true).toString(),
}; };
if (artifacts is LocalEngineArtifacts) {
final LocalEngineArtifacts localEngineArtifacts = artifacts;
final String engineOutPath = localEngineArtifacts.engineOutPath;
environment['FLUTTER_ENGINE'] = fs.path.dirname(fs.path.dirname(engineOutPath));
environment['LOCAL_ENGINE'] = fs.path.basename(engineOutPath);
}
writePropertySheet(windowsProject.generatedPropertySheetFile, environment); writePropertySheet(windowsProject.generatedPropertySheetFile, environment);
final String vcvarsScript = await findVcvars(); final String vcvarsScript = await findVcvars();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment