2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

Update mainui. Add possibility to install engine ignoring *nix file hierarchy in wscript. Fix debugging.

This commit is contained in:
Alibek Omarov 2018-05-29 01:02:32 +03:00
parent 236c16e35f
commit 0db8d95bc9
5 changed files with 25 additions and 5 deletions

View File

@ -68,7 +68,8 @@ def build(bld):
target = 'xash',
features = 'c cprogram',
includes = includes,
use = libs
use = libs,
install_path = bld.env.BINDIR
)
else:
bld.shlib(
@ -76,5 +77,6 @@ def build(bld):
target = 'xash',
features = 'c',
includes = includes,
use = libs
use = libs,
install_path = bld.env.LIBDIR
)

View File

@ -54,5 +54,6 @@ def build(bld):
target = 'xash3d', # hl.exe
features = 'c cprogram',
includes = includes,
use = libs
use = libs,
install_path = bld.env.BINDIR
)

2
mainui

@ -1 +1 @@
Subproject commit a1c3ad25311549999f67dd2a9bc8f5d153bf9355
Subproject commit b82d68cc40b144a0114a76fa5dfabbc8e3fddf29

View File

@ -67,4 +67,5 @@ def build(bld):
target = 'vgui_support',
features = 'cxx',
includes = includes,
use = libs)
use = libs,
install_path = bld.env.LIBDIR)

16
wscript
View File

@ -41,6 +41,10 @@ def options(opt):
opt.add_option(
'--release', action = 'store_true', dest = 'RELEASE', default=False,
help = 'strip debug info from binary and enable optimizations')
opt.add_option(
'--win-style-install', action = 'store_true', dest = 'WIN_INSTALL', default = False,
help = 'install like Windows build, ignore prefix, useful for development')
opt.recurse(SUBDIRS)
@ -69,9 +73,12 @@ def configure(conf):
if(conf.options.RELEASE):
conf.env.append_unique('CFLAGS', '-O2')
conf.env.append_unique('CXXFLAGS', '-O2')
else:
conf.env.append_unique('CFLAGS', '-Og')
conf.env.append_unique('CFLAGS', '-g')
conf.env.append_unique('CXXFLAGS', '-Og')
conf.env.append_unique('CXXFLAGS', '-g')
conf.check( lib='dl' )
conf.check( lib='m' )
@ -80,6 +87,15 @@ def configure(conf):
conf.env.DEDICATED = conf.options.DEDICATED
conf.env.SINGLE_BINARY = conf.options.DEDICATED
# indicate if we are packaging for Linux/BSD
if(not conf.options.WIN_INSTALL and
conf.env.DEST_OS != 'win32' and
conf.env.DEST_OS != 'darwin'):
conf.env.LIBDIR = conf.env.BINDIR = '${PREFIX}/lib/xash3d'
else:
# prefix is ignored
conf.env.LIBDIR = conf.env.BINDIR = '/'
# global
conf.env.append_unique('XASH_BUILD_COMMIT', GIT_SHA)