|
|
@ -8,8 +8,9 @@ import os |
|
|
|
top = '.' |
|
|
|
top = '.' |
|
|
|
|
|
|
|
|
|
|
|
def options(opt): |
|
|
|
def options(opt): |
|
|
|
# stub |
|
|
|
opt.add_option( |
|
|
|
return |
|
|
|
'--enable-bsp2', action = 'store_true', dest = 'SUPPORT_BSP2_FORMAT', default = False, |
|
|
|
|
|
|
|
help = 'build engine with BSP2 map support(recommended for Quake, breaks compability!)') |
|
|
|
|
|
|
|
|
|
|
|
def configure(conf): |
|
|
|
def configure(conf): |
|
|
|
# check for dedicated server build |
|
|
|
# check for dedicated server build |
|
|
@ -31,6 +32,9 @@ def configure(conf): |
|
|
|
conf.fatal('SDL2 not availiable! If you want to build dedicated server, specify --dedicated') |
|
|
|
conf.fatal('SDL2 not availiable! If you want to build dedicated server, specify --dedicated') |
|
|
|
conf.env.append_unique('DEFINES', 'XASH_SDL') |
|
|
|
conf.env.append_unique('DEFINES', 'XASH_SDL') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(conf.options.SUPPORT_BSP2_FORMAT): |
|
|
|
|
|
|
|
conf.env.append_unique('DEFINES', 'SUPPORT_BSP2_FORMAT') |
|
|
|
|
|
|
|
|
|
|
|
if conf.env.DEST_OS == 'win32': |
|
|
|
if conf.env.DEST_OS == 'win32': |
|
|
|
conf.check( lib='USER32' ) |
|
|
|
conf.check( lib='USER32' ) |
|
|
|
conf.check( lib='SHELL32' ) |
|
|
|
conf.check( lib='SHELL32' ) |
|
|
|