Browse Source

wscript: add possibility to select windows subsystem during link, add define to use WinXP SDK. This commit forces WinXP compability on latest Visual Studio

pull/2/head
a1batross 6 years ago
parent
commit
ca501c0378
  1. 6
      engine/wscript
  2. 3
      game_launch/wscript
  3. 2
      mainui
  4. 12
      wscript

6
engine/wscript

@ -94,7 +94,8 @@ def build(bld): @@ -94,7 +94,8 @@ def build(bld):
features = 'c cprogram',
includes = includes,
use = libs,
install_path = bld.env.BINDIR
install_path = bld.env.BINDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)
else:
bld.shlib(
@ -103,5 +104,6 @@ def build(bld): @@ -103,5 +104,6 @@ def build(bld):
features = 'c',
includes = includes,
use = libs,
install_path = bld.env.LIBDIR
install_path = bld.env.LIBDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)

3
game_launch/wscript

@ -63,5 +63,6 @@ def build(bld): @@ -63,5 +63,6 @@ def build(bld):
features = 'c cprogram',
includes = includes,
use = libs,
install_path = bld.env.BINDIR
install_path = bld.env.BINDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)

2
mainui

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit dac66977620487260c7351c2a2c845f081a5dc71
Subproject commit 72233d02c1a0912e8667fab1ce4561b470ce4293

12
wscript

@ -71,13 +71,11 @@ def configure(conf): @@ -71,13 +71,11 @@ def configure(conf):
conf.env.DEST_64BIT = False # predict state
try:
conf.check_cc(
fragment='''
int main( void )
fragment='''int main( void )
{
int check[sizeof(void*) == 4 ? 1: -1];
return 0;
}
''',
}''',
msg = 'Checking if compiler create 32 bit code')
except conf.errors.ConfigurationError:
# Program not compiled, we have 64 bit
@ -112,6 +110,12 @@ def configure(conf): @@ -112,6 +110,12 @@ def configure(conf):
conf.env.append_unique('CFLAGS', ['/Z7'])
conf.env.append_unique('CXXFLAGS', ['/Z7'])
conf.env.append_unique('LINKFLAGS', ['/DEBUG'])
conf.env.append_unique('DEFINES', '_USING_V110_SDK71_') # Force XP compability
# 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'
if(conf.env.DEST_OS != 'win32'):
conf.check( lib='dl' )

Loading…
Cancel
Save