forked from firka/flutter
[flutter_tools] make bundle-sksl-path a define (#81576)
This commit is contained in:
@@ -36,7 +36,7 @@ Future<Depfile> copyAssets(Environment environment, Directory outputDirectory, {
|
||||
BuildMode buildMode,
|
||||
}) async {
|
||||
// Check for an SkSL bundle.
|
||||
final String shaderBundlePath = environment.inputs[kBundleSkSLPath];
|
||||
final String shaderBundlePath = environment.defines[kBundleSkSLPath] ?? environment.inputs[kBundleSkSLPath];
|
||||
final DevFSContent skslBundle = processSkSLBundle(
|
||||
shaderBundlePath,
|
||||
engineVersion: environment.engineVersion,
|
||||
|
||||
@@ -209,7 +209,7 @@ Future<void> _runFlutterBuild(Directory buildDirectory, BuildInfo buildInfo, Str
|
||||
'-dTreeShakeIcons="${buildInfo.treeShakeIcons}"',
|
||||
'-dDartObfuscation=${buildInfo.dartObfuscation}',
|
||||
if (buildInfo.bundleSkSLPath != null)
|
||||
'-iBundleSkSLPath=${buildInfo.bundleSkSLPath}',
|
||||
'-dBundleSkSLPath=${buildInfo.bundleSkSLPath}',
|
||||
if (buildInfo.codeSizeDirectory != null)
|
||||
'-dCodeSizeDirectory=${buildInfo.codeSizeDirectory}',
|
||||
if (buildInfo.splitDebugInfoPath != null)
|
||||
|
||||
Reference in New Issue
Block a user