File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
lib/src/build_system/targets Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,7 @@ class ShaderCompiler {
175
175
);
176
176
}
177
177
178
- final String shaderLibPath = _fs.path.join (_fs.path.dirname (impellerc.path), 'shader_lib' );
179
-
178
+ final String shaderLibPath = _fs.path.join (impellerc.parent.absolute.path, 'shader_lib' );
180
179
final List <String > cmd = < String > [
181
180
impellerc.path,
182
181
target.target,
@@ -190,6 +189,7 @@ class ShaderCompiler {
190
189
'--include=${input .parent .path }' ,
191
190
'--include=$shaderLibPath ' ,
192
191
];
192
+ _logger.printTrace ('shaderc command: $cmd ' );
193
193
final Process impellercProcess = await _processManager.start (cmd);
194
194
final int code = await impellercProcess.exitCode;
195
195
if (code != 0 ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import 'package:flutter_tools/src/globals.dart' as globals;
17
17
import '../src/common.dart' ;
18
18
import '../src/context.dart' ;
19
19
20
- const String shaderLibDir = './shader_lib' ;
20
+ const String shaderLibDir = '/ ./shader_lib' ;
21
21
22
22
void main () {
23
23
group ('AssetBundle.build' , () {
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ void main() {
263
263
'--input=/shader.glsl' ,
264
264
'--input-type=frag' ,
265
265
'--include=/' ,
266
- '--include=./shader_lib' ,
266
+ '--include=/ ./shader_lib' ,
267
267
]),
268
268
FakeCommand (command: < String > [
269
269
'codesign' ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import '../../../src/common.dart';
16
16
import '../../../src/fake_process_manager.dart' ;
17
17
18
18
const String fragDir = '/shaders' ;
19
- const String shaderLibDir = './shader_lib' ;
19
+ const String shaderLibDir = '/ ./shader_lib' ;
20
20
const String fragPath = '/shaders/my_shader.frag' ;
21
21
const String notFragPath = '/shaders/not_a_frag.file' ;
22
22
const String outputSpirvPath = '/output/shaders/my_shader.frag.spirv' ;
You can’t perform that action at this time.
0 commit comments