mirror of
https://github.com/flutter/flutter
synced 2024-10-06 00:09:53 +00:00
[flutter_tools] Add entries to HostArtifacts for impellerc, libtessellator (#102593)
This commit is contained in:
parent
dacab7de3a
commit
4a2ed00231
|
@ -92,8 +92,14 @@ enum HostArtifact {
|
||||||
idevicesyslog,
|
idevicesyslog,
|
||||||
idevicescreenshot,
|
idevicescreenshot,
|
||||||
iproxy,
|
iproxy,
|
||||||
|
|
||||||
/// The root of the sky_engine package.
|
/// The root of the sky_engine package.
|
||||||
skyEnginePath,
|
skyEnginePath,
|
||||||
|
|
||||||
|
// The Impeller shader compiler.
|
||||||
|
impellerc,
|
||||||
|
// Impeller's tessellation library.
|
||||||
|
libtessellator,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(knopp): Remove once darwin artifacts are universal and moved out of darwin-x64
|
// TODO(knopp): Remove once darwin artifacts are universal and moved out of darwin-x64
|
||||||
|
@ -202,8 +208,14 @@ String? _artifactToFileName(Artifact artifact, [ TargetPlatform? platform, Build
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String _hostArtifactToFileName(HostArtifact artifact, bool windows) {
|
String _hostArtifactToFileName(HostArtifact artifact, Platform platform) {
|
||||||
final String exe = windows ? '.exe' : '';
|
final String exe = platform.isWindows ? '.exe' : '';
|
||||||
|
String dll = '.so';
|
||||||
|
if (platform.isWindows) {
|
||||||
|
dll = '.dll';
|
||||||
|
} else if (platform.isMacOS) {
|
||||||
|
dll = '.dylib';
|
||||||
|
}
|
||||||
switch (artifact) {
|
switch (artifact) {
|
||||||
case HostArtifact.flutterWebSdk:
|
case HostArtifact.flutterWebSdk:
|
||||||
return '';
|
return '';
|
||||||
|
@ -247,6 +259,10 @@ String _hostArtifactToFileName(HostArtifact artifact, bool windows) {
|
||||||
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
||||||
return 'dart_sdk.js.map';
|
return 'dart_sdk.js.map';
|
||||||
|
case HostArtifact.impellerc:
|
||||||
|
return 'impellerc$exe';
|
||||||
|
case HostArtifact.libtessellator:
|
||||||
|
return 'libtessellator$dll';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -337,63 +353,68 @@ class CachedArtifacts implements Artifacts {
|
||||||
final String path = _dartSdkPath(_cache);
|
final String path = _dartSdkPath(_cache);
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.engineDartBinary:
|
case HostArtifact.engineDartBinary:
|
||||||
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.flutterWebSdk:
|
case HostArtifact.flutterWebSdk:
|
||||||
final String path = _getFlutterWebSdkPath();
|
final String path = _getFlutterWebSdkPath();
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.flutterWebLibrariesJson:
|
case HostArtifact.flutterWebLibrariesJson:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPlatformKernelDill:
|
case HostArtifact.webPlatformKernelDill:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPlatformSoundKernelDill:
|
case HostArtifact.webPlatformSoundKernelDill:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledSdk:
|
case HostArtifact.webPrecompiledSdk:
|
||||||
case HostArtifact.webPrecompiledSdkSourcemaps:
|
case HostArtifact.webPrecompiledSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitSdk:
|
case HostArtifact.webPrecompiledCanvaskitSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdk:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledSoundSdk:
|
case HostArtifact.webPrecompiledSoundSdk:
|
||||||
case HostArtifact.webPrecompiledSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitSoundSdk:
|
case HostArtifact.webPrecompiledCanvaskitSoundSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdk:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.idevicesyslog:
|
case HostArtifact.idevicesyslog:
|
||||||
case HostArtifact.idevicescreenshot:
|
case HostArtifact.idevicescreenshot:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('libimobiledevice').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('libimobiledevice').childFile(artifactFileName);
|
||||||
case HostArtifact.skyEnginePath:
|
case HostArtifact.skyEnginePath:
|
||||||
final Directory dartPackageDirectory = _cache.getCacheDir('pkg');
|
final Directory dartPackageDirectory = _cache.getCacheDir('pkg');
|
||||||
final String path = _fileSystem.path.join(dartPackageDirectory.path, _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(dartPackageDirectory.path, _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.dart2jsSnapshot:
|
case HostArtifact.dart2jsSnapshot:
|
||||||
case HostArtifact.dartdevcSnapshot:
|
case HostArtifact.dartdevcSnapshot:
|
||||||
case HostArtifact.kernelWorkerSnapshot:
|
case HostArtifact.kernelWorkerSnapshot:
|
||||||
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.iosDeploy:
|
case HostArtifact.iosDeploy:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('ios-deploy').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('ios-deploy').childFile(artifactFileName);
|
||||||
case HostArtifact.iproxy:
|
case HostArtifact.iproxy:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('usbmuxd').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('usbmuxd').childFile(artifactFileName);
|
||||||
|
case HostArtifact.impellerc:
|
||||||
|
case HostArtifact.libtessellator:
|
||||||
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
|
final String engineDir = _getEngineArtifactsPath(_currentHostPlatform(_platform, _operatingSystemUtils))!;
|
||||||
|
return _fileSystem.file(_fileSystem.path.join(engineDir, artifactFileName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -757,67 +778,71 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts {
|
||||||
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk');
|
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk');
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.engineDartBinary:
|
case HostArtifact.engineDartBinary:
|
||||||
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.dart2jsSnapshot:
|
case HostArtifact.dart2jsSnapshot:
|
||||||
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.dartdevcSnapshot:
|
case HostArtifact.dartdevcSnapshot:
|
||||||
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.kernelWorkerSnapshot:
|
case HostArtifact.kernelWorkerSnapshot:
|
||||||
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.flutterWebSdk:
|
case HostArtifact.flutterWebSdk:
|
||||||
final String path = _getFlutterWebSdkPath();
|
final String path = _getFlutterWebSdkPath();
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.flutterWebLibrariesJson:
|
case HostArtifact.flutterWebLibrariesJson:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPlatformKernelDill:
|
case HostArtifact.webPlatformKernelDill:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPlatformSoundKernelDill:
|
case HostArtifact.webPlatformSoundKernelDill:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledSdk:
|
case HostArtifact.webPrecompiledSdk:
|
||||||
case HostArtifact.webPrecompiledSdkSourcemaps:
|
case HostArtifact.webPrecompiledSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitSdk:
|
case HostArtifact.webPrecompiledCanvaskitSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdk:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledSoundSdk:
|
case HostArtifact.webPrecompiledSoundSdk:
|
||||||
case HostArtifact.webPrecompiledSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitSoundSdk:
|
case HostArtifact.webPrecompiledCanvaskitSoundSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdk:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdk:
|
||||||
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
case HostArtifact.webPrecompiledCanvaskitAndHtmlSoundSdkSourcemaps:
|
||||||
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html-sound', _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(_getFlutterWebSdkPath(), 'kernel', 'amd-canvaskit-html-sound', _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.file(path);
|
return _fileSystem.file(path);
|
||||||
case HostArtifact.idevicesyslog:
|
case HostArtifact.idevicesyslog:
|
||||||
case HostArtifact.idevicescreenshot:
|
case HostArtifact.idevicescreenshot:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('libimobiledevice').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('libimobiledevice').childFile(artifactFileName);
|
||||||
case HostArtifact.skyEnginePath:
|
case HostArtifact.skyEnginePath:
|
||||||
final Directory dartPackageDirectory = _cache.getCacheDir('pkg');
|
final Directory dartPackageDirectory = _cache.getCacheDir('pkg');
|
||||||
final String path = _fileSystem.path.join(dartPackageDirectory.path, _hostArtifactToFileName(artifact, _platform.isWindows));
|
final String path = _fileSystem.path.join(dartPackageDirectory.path, _hostArtifactToFileName(artifact, _platform));
|
||||||
return _fileSystem.directory(path);
|
return _fileSystem.directory(path);
|
||||||
case HostArtifact.iosDeploy:
|
case HostArtifact.iosDeploy:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('ios-deploy').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('ios-deploy').childFile(artifactFileName);
|
||||||
case HostArtifact.iproxy:
|
case HostArtifact.iproxy:
|
||||||
final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows);
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
return _cache.getArtifactDirectory('usbmuxd').childFile(artifactFileName);
|
return _cache.getArtifactDirectory('usbmuxd').childFile(artifactFileName);
|
||||||
|
case HostArtifact.impellerc:
|
||||||
|
case HostArtifact.libtessellator:
|
||||||
|
final String artifactFileName = _hostArtifactToFileName(artifact, _platform);
|
||||||
|
return _fileSystem.file(_fileSystem.path.join(_hostEngineOutPath, artifactFileName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,6 +315,14 @@ void main() {
|
||||||
fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk', 'bin',
|
fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk', 'bin',
|
||||||
'snapshots', 'frontend_server.dart.snapshot')
|
'snapshots', 'frontend_server.dart.snapshot')
|
||||||
);
|
);
|
||||||
|
expect(
|
||||||
|
artifacts.getHostArtifact(HostArtifact.impellerc).path,
|
||||||
|
fileSystem.path.join('/out', 'host_debug_unopt', 'impellerc'),
|
||||||
|
);
|
||||||
|
expect(
|
||||||
|
artifacts.getHostArtifact(HostArtifact.libtessellator).path,
|
||||||
|
fileSystem.path.join('/out', 'host_debug_unopt', 'libtessellator.so'),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWithoutContext('getEngineType', () {
|
testWithoutContext('getEngineType', () {
|
||||||
|
|
Loading…
Reference in a new issue