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 @@
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…
Cancel
Save