|
|
|
@ -17,7 +17,7 @@ SUBDIRS = [ 'engine', 'game_launch', 'mainui', 'vgui_support' ]
@@ -17,7 +17,7 @@ SUBDIRS = [ 'engine', 'game_launch', 'mainui', 'vgui_support' ]
|
|
|
|
|
top = '.' |
|
|
|
|
|
|
|
|
|
def options(opt): |
|
|
|
|
opt.load('compiler_cxx compiler_c') |
|
|
|
|
opt.load('xcompile compiler_cxx compiler_c') |
|
|
|
|
if sys.platform == 'win32': |
|
|
|
|
opt.load('msvc msvs') |
|
|
|
|
|
|
|
|
@ -54,10 +54,12 @@ def configure(conf):
@@ -54,10 +54,12 @@ def configure(conf):
|
|
|
|
|
# TODO: wrapper around bld.stlib, bld.shlib and so on? |
|
|
|
|
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01' |
|
|
|
|
conf.env.MSVC_TARGETS = ['x86'] # explicitly request x86 target for MSVC |
|
|
|
|
conf.load('compiler_cxx compiler_c gitversion') |
|
|
|
|
conf.load('xcompile compiler_c compiler_cxx gitversion') |
|
|
|
|
if sys.platform == 'win32': |
|
|
|
|
conf.load('msvc msvs') |
|
|
|
|
|
|
|
|
|
# print(conf.options.ALLOW64) |
|
|
|
|
|
|
|
|
|
conf.env.BIT32_MANDATORY = not conf.options.ALLOW64 |
|
|
|
|
conf.env.BIT32_ALLOW64 = conf.options.ALLOW64 |
|
|
|
|
conf.load('force_32bit') |
|
|
|
@ -105,6 +107,7 @@ def configure(conf):
@@ -105,6 +107,7 @@ def configure(conf):
|
|
|
|
|
|
|
|
|
|
if conf.env.DEST_OS != 'win32': |
|
|
|
|
conf.check_cc( lib='m' ) |
|
|
|
|
if conf.env.DEST_OS2 != 'android': |
|
|
|
|
conf.check_cc( lib='pthread' ) |
|
|
|
|
else: |
|
|
|
|
# Common Win32 libraries |
|
|
|
|