Browse Source

wscript: explicitly set language when checking library

pull/2/head
Alibek Omarov 6 years ago
parent
commit
95ce9fc00f
  1. 2
      engine/wscript
  2. 18
      wscript

2
engine/wscript

@ -18,7 +18,7 @@ def configure(conf): @@ -18,7 +18,7 @@ def configure(conf):
# check for dedicated server build
if conf.options.DEDICATED:
if(conf.env.DEST_OS == 'linux'):
conf.check( lib='rt' )
conf.check_cc( lib='rt' )
conf.env.append_unique('DEFINES', 'SINGLE_BINARY')
conf.env.append_unique('DEFINES', 'XASH_DEDICATED')
else:

18
wscript

@ -101,22 +101,22 @@ def configure(conf): @@ -101,22 +101,22 @@ def configure(conf):
conf.env.SINGLE_BINARY = conf.options.DEDICATED # We don't need game launcher on dedicated
if conf.env.DEST_OS == 'linux':
conf.check( lib='dl' )
conf.check_cc( lib='dl' )
if conf.env.DEST_OS != 'win32':
conf.check( lib='m' )
conf.check( lib='pthread' )
conf.check_cc( lib='m' )
conf.check_cc( lib='pthread' )
else:
# Common Win32 libraries
# Don't check them more than once, to save time
# Usually, they are always available
# but we need them in uselib
conf.check( lib='user32' )
conf.check( lib='shell32' )
conf.check( lib='gdi32' )
conf.check( lib='advapi32' )
conf.check( lib='dbghelp' )
conf.check( lib='psapi' )
conf.check_cc( lib='user32' )
conf.check_cc( lib='shell32' )
conf.check_cc( lib='gdi32' )
conf.check_cc( lib='advapi32' )
conf.check_cc( lib='dbghelp' )
conf.check_cc( lib='psapi' )
# indicate if we are packaging for Linux/BSD

Loading…
Cancel
Save