File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from misc .utility .scons_hints import *
3
3
4
+ from methods import print_error
5
+
4
6
Import ("env" )
5
7
6
8
env .drivers_sources = []
@@ -20,7 +22,7 @@ if env["platform"] == "windows":
20
22
SConscript ("backtrace/SCsub" )
21
23
if env ["xaudio2" ]:
22
24
if "xaudio2" not in supported :
23
- print ("Target platform '{}' does not support the XAudio2 audio driver. Aborting. " .format (env ["platform" ]))
25
+ print_error ("Target platform '{}' does not support the XAudio2 audio driver" .format (env ["platform" ]))
24
26
Exit (255 )
25
27
SConscript ("xaudio2/SCsub" )
26
28
@@ -34,7 +36,7 @@ if env["vulkan"]:
34
36
SConscript ("vulkan/SCsub" )
35
37
if env ["d3d12" ]:
36
38
if "d3d12" not in supported :
37
- print ("Target platform '{}' does not support the D3D12 rendering driver. Aborting. " .format (env ["platform" ]))
39
+ print_error ("Target platform '{}' does not support the D3D12 rendering driver" .format (env ["platform" ]))
38
40
Exit (255 )
39
41
SConscript ("d3d12/SCsub" )
40
42
if env ["opengl3" ]:
@@ -43,7 +45,7 @@ if env["opengl3"]:
43
45
SConscript ("egl/SCsub" )
44
46
if env ["metal" ]:
45
47
if "metal" not in supported :
46
- print ("Target platform '{}' does not support the Metal rendering driver. Aborting. " .format (env ["platform" ]))
48
+ print_error ("Target platform '{}' does not support the Metal rendering driver" .format (env ["platform" ]))
47
49
Exit (255 )
48
50
SConscript ("metal/SCsub" )
49
51
You can’t perform that action at this time.
0 commit comments