Browse Source

mdldec: build with CONSOLE subsystem on Win32

pull/2/head
Alibek Omarov 4 years ago
parent
commit
9b6f26c191
  1. 2
      utils/mdldec/wscript
  2. 12
      wscript

2
utils/mdldec/wscript

@ -27,7 +27,7 @@ def build(bld): @@ -27,7 +27,7 @@ def build(bld):
includes = includes,
use = libs,
install_path = bld.env.BINDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
subsystem = bld.env.CONSOLE_SUBSYSTEM
)
bld.install_files(bld.env.SHAREDIR, 'res/activities.txt')

12
wscript

@ -114,10 +114,6 @@ def configure(conf): @@ -114,10 +114,6 @@ def configure(conf):
if conf.options.IGNORE_PROJECTS:
conf.env.IGNORE_PROJECTS = conf.options.IGNORE_PROJECTS.split(',')
# Force XP compability, all build targets should add
# subsystem=bld.env.MSVC_SUBSYSTEM
# TODO: wrapper around bld.stlib, bld.shlib and so on?
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01'
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
# Load compilers early
@ -132,6 +128,14 @@ def configure(conf): @@ -132,6 +128,14 @@ def configure(conf):
conf.load('msvs msdev subproject gitversion clang_compilation_database strip_on_install waf_unit_test enforce_pic')
# Force XP compatibility, all build targets should add subsystem=bld.env.MSVC_SUBSYSTEM
if conf.env.MSVC_TARGETS[0] == 'x86':
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01'
conf.env.CONSOLE_SUBSYSTEM = 'CONSOLE,5.01'
else:
conf.env.MSVC_SUBSYSTEM = 'WINDOWS'
conf.env.CONSOLE_SUBSYSTEM = 'CONSOLE'
enforce_pic = True # modern defaults
# modify options dictionary early

Loading…
Cancel
Save