mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: try to automatically set console subsystem flag depending on target features
Remove subsystem flag from shlibs and stlibs, it's only required for executables.
This commit is contained in:
@@ -117,8 +117,7 @@ def build(bld):
|
||||
|
||||
bld.stlib(source = bld.path.ant_glob('*.c'),
|
||||
target = 'public',
|
||||
use = 'sdk_includes werror',
|
||||
subsystem = bld.env.MSVC_SUBSYSTEM)
|
||||
use = 'sdk_includes werror')
|
||||
|
||||
if bld.env.TESTS:
|
||||
if bld.env.VALIDATE_TARGET:
|
||||
@@ -127,7 +126,6 @@ def build(bld):
|
||||
target = 'validate_target',
|
||||
use = 'public',
|
||||
defines = 'VALIDATE_TARGET="%s"' % bld.env.VALIDATE_TARGET,
|
||||
subsystem = bld.env.CONSOLE_SUBSYSTEM,
|
||||
install_path = None)
|
||||
|
||||
tests = {
|
||||
@@ -145,5 +143,4 @@ def build(bld):
|
||||
source = tests[i],
|
||||
target = 'test_%s' % i,
|
||||
use = 'public',
|
||||
subsystem = bld.env.CONSOLE_SUBSYSTEM,
|
||||
install_path = None)
|
||||
|
||||
Reference in New Issue
Block a user