mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
game_launch: convert to include targets usage
This commit is contained in:
parent
8ffb3aac8a
commit
3c8fe508f0
@ -21,21 +21,16 @@ def configure(conf):
|
|||||||
conf.define_cond('XASH_DISABLE_MENU_CHANGEGAME', conf.options.DISABLE_MENU_CHANGEGAME)
|
conf.define_cond('XASH_DISABLE_MENU_CHANGEGAME', conf.options.DISABLE_MENU_CHANGEGAME)
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
source = ['game.cpp']
|
libs = ['sdk_includes']
|
||||||
includes = '. ../common ../public'
|
|
||||||
libs = []
|
|
||||||
|
|
||||||
if bld.env.DEST_OS != 'win32':
|
if bld.env.DEST_OS != 'win32':
|
||||||
libs += [ 'DL' ]
|
libs += [ 'DL' ]
|
||||||
else:
|
else:
|
||||||
libs += ['USER32', 'SHELL32']
|
libs += ['USER32', 'SHELL32']
|
||||||
source += ['game.rc']
|
source += ['game.rc']
|
||||||
|
|
||||||
bld(
|
bld(source = 'game.cpp',
|
||||||
source = source,
|
|
||||||
target = 'xash3d', # hl.exe
|
target = 'xash3d', # hl.exe
|
||||||
features = 'c cxx cxxprogram',
|
features = 'c cxx cxxprogram',
|
||||||
includes = includes,
|
|
||||||
use = libs,
|
use = libs,
|
||||||
rpath = '$ORIGIN',
|
rpath = '$ORIGIN',
|
||||||
install_path = bld.env.BINDIR,
|
install_path = bld.env.BINDIR,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user