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
|
from waflib import Logs
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
from fwgslib import get_subproject_name
|
||||||
|
|
||||||
top = '.'
|
top = '.'
|
||||||
|
|
||||||
@ -12,18 +14,13 @@ def options(opt):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
if(conf.env.SINGLE_BINARY):
|
if conf.env.SINGLE_BINARY:
|
||||||
return
|
return
|
||||||
|
|
||||||
# check for dedicated server build
|
# check for dedicated server build
|
||||||
if not conf.env.DEDICATED:
|
if not conf.env.DEDICATED:
|
||||||
if conf.env.DEST_OS == 'win32':
|
if conf.env.DEST_OS == 'win32':
|
||||||
conf.load('winres')
|
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):
|
def build(bld):
|
||||||
if bld.env.SINGLE_BINARY:
|
if bld.env.SINGLE_BINARY:
|
||||||
|
Loading…
Reference in New Issue
Block a user