Browse Source

game_launch: wscript: refactor, use shared get_subproject_name

pull/2/head
Alibek Omarov 6 years ago
parent
commit
6debd84a2e
  1. 9
      game_launch/wscript

9
game_launch/wscript

@ -4,6 +4,8 @@ @@ -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): @@ -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…
Cancel
Save