@@ -44,6 +44,9 @@ def get_out_dir(args):
44
44
if args .enable_vulkan :
45
45
target_dir .append ('vulkan' )
46
46
47
+ if args .enable_metal and args .target_os == 'ios' :
48
+ target_dir .append ('metal' )
49
+
47
50
return os .path .join (args .out_dir , 'out' , '_' .join (target_dir ))
48
51
49
52
def to_command_line (gn_args ):
@@ -216,18 +219,17 @@ def to_gn_args(args):
216
219
gn_args ['use_goma' ] = False
217
220
gn_args ['goma_dir' ] = None
218
221
222
+ if args .enable_metal :
223
+ gn_args ['skia_use_metal' ] = True
224
+ gn_args ['shell_enable_metal' ] = True
225
+ gn_args ['allow_deprecated_api_calls' ] = True
226
+
219
227
if args .enable_vulkan :
220
228
# Enable vulkan in the Flutter shell.
221
229
gn_args ['shell_enable_vulkan' ] = True
222
230
# Configure Skia for Vulkan support.
223
231
gn_args ['skia_use_vulkan' ] = True
224
232
225
- # Enable Metal on non-simulator iOS builds.
226
- if args .target_os == 'ios' :
227
- gn_args ['skia_use_metal' ] = not args .simulator
228
- gn_args ['shell_enable_metal' ] = not args .simulator
229
- gn_args ['allow_deprecated_api_calls' ] = not args .simulator
230
-
231
233
# The buildroot currently isn't set up to support Vulkan in the
232
234
# Windows ANGLE build, so disable it regardless of enable_vulkan's value.
233
235
if sys .platform .startswith (('cygwin' , 'win' )):
0 commit comments