[web] Add --local-web-sdk flag and use precompiled platform kernels for dart2js and ddc (#114639)
* Dart2JS build step looks for compiled platform binaries. * Use new locations of platform binaries. * Added --local-web-sdk command line flag. * Need to use the matching frontend server when doing ddc stuff. * Update packages/flutter_tools/lib/src/test/web_test_compiler.dart Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com> * Update packages/flutter_tools/lib/src/runner/flutter_command_runner.dart Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com> * Formatting issues. * Need to use URI format for platform dill. * Fix resident runner tests. * Fix analysis issue. * Fix and add unit tests. * Add some useful comments. * Refine doc comments for flags. Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com>
This commit is contained in:
@@ -53,12 +53,11 @@ Future<void> buildLinux(
|
||||
// step.
|
||||
final Map<String, String> environmentConfig = buildInfo.toEnvironmentConfig();
|
||||
environmentConfig['FLUTTER_TARGET'] = target;
|
||||
final Artifacts? artifacts = globals.artifacts;
|
||||
if (artifacts is LocalEngineArtifacts) {
|
||||
final LocalEngineArtifacts localEngineArtifacts = artifacts;
|
||||
final String engineOutPath = localEngineArtifacts.engineOutPath;
|
||||
final LocalEngineInfo? localEngineInfo = globals.artifacts?.localEngineInfo;
|
||||
if (localEngineInfo != null) {
|
||||
final String engineOutPath = localEngineInfo.engineOutPath;
|
||||
environmentConfig['FLUTTER_ENGINE'] = globals.fs.path.dirname(globals.fs.path.dirname(engineOutPath));
|
||||
environmentConfig['LOCAL_ENGINE'] = localEngineArtifacts.localEngineName;
|
||||
environmentConfig['LOCAL_ENGINE'] = localEngineInfo.localEngineName;
|
||||
}
|
||||
writeGeneratedCmakeConfig(Cache.flutterRoot!, linuxProject, buildInfo, environmentConfig);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user