Browse Source

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

pull/2/head
Alibek Omarov 6 years ago
parent
commit
0db8d95bc9
  1. 6
      engine/wscript
  2. 3
      game_launch/wscript
  3. 2
      mainui
  4. 3
      vgui_support/wscript
  5. 16
      wscript

6
engine/wscript

@ -68,7 +68,8 @@ def build(bld): @@ -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): @@ -76,5 +77,6 @@ def build(bld):
target = 'xash',
features = 'c',
includes = includes,
use = libs
use = libs,
install_path = bld.env.LIBDIR
)

3
game_launch/wscript

@ -54,5 +54,6 @@ def build(bld): @@ -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 @@ @@ -1 +1 @@
Subproject commit a1c3ad25311549999f67dd2a9bc8f5d153bf9355
Subproject commit b82d68cc40b144a0114a76fa5dfabbc8e3fddf29

3
vgui_support/wscript

@ -67,4 +67,5 @@ def build(bld): @@ -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

@ -41,6 +41,10 @@ def options(opt): @@ -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): @@ -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): @@ -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)

Loading…
Cancel
Save