mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-26 03:39:16 +01:00
game_launch: wscript: refactor, use shared get_subproject_name
This commit is contained in:
parent
62995b0769
commit
6debd84a2e
@ -4,6 +4,8 @@
|
||||
|
||||
from waflib import Logs
|
||||
import os
|
||||
import sys
|
||||
from fwgslib import get_subproject_name
|
||||
|
||||
top = '.'
|
||||
|
||||
@ -12,18 +14,13 @@ def options(opt):
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
if(conf.env.SINGLE_BINARY):
|
||||
if conf.env.SINGLE_BINARY:
|
||||
return
|
||||
|
||||
# check for dedicated server build
|
||||
if not conf.env.DEDICATED:
|
||||
if conf.env.DEST_OS == 'win32':
|
||||
conf.load('winres')
|
||||
conf.check(lib='user32')
|
||||
conf.check(lib='shell32')
|
||||
|
||||
def get_subproject_name(ctx):
|
||||
return os.path.basename(os.path.realpath(str(ctx.path)))
|
||||
|
||||
def build(bld):
|
||||
if bld.env.SINGLE_BINARY:
|
||||
|
Loading…
Reference in New Issue
Block a user