[flutter_tools] use absolute path for shader lib (#116123)
* [flutter_tools] use absolute path for shader lib * update tests
This commit is contained in:
@@ -17,7 +17,7 @@ import 'package:flutter_tools/src/globals.dart' as globals;
|
||||
import '../src/common.dart';
|
||||
import '../src/context.dart';
|
||||
|
||||
const String shaderLibDir = './shader_lib';
|
||||
const String shaderLibDir = '/./shader_lib';
|
||||
|
||||
void main() {
|
||||
group('AssetBundle.build', () {
|
||||
|
||||
@@ -263,7 +263,7 @@ void main() {
|
||||
'--input=/shader.glsl',
|
||||
'--input-type=frag',
|
||||
'--include=/',
|
||||
'--include=./shader_lib',
|
||||
'--include=/./shader_lib',
|
||||
]),
|
||||
FakeCommand(command: <String>[
|
||||
'codesign',
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../../src/common.dart';
|
||||
import '../../../src/fake_process_manager.dart';
|
||||
|
||||
const String fragDir = '/shaders';
|
||||
const String shaderLibDir = './shader_lib';
|
||||
const String shaderLibDir = '/./shader_lib';
|
||||
const String fragPath = '/shaders/my_shader.frag';
|
||||
const String notFragPath = '/shaders/not_a_frag.file';
|
||||
const String outputSpirvPath = '/output/shaders/my_shader.frag.spirv';
|
||||
|
||||
Reference in New Issue
Block a user