wscript: do not set install_path on dos target, set build task names to "server" and "client"

This commit is contained in:
mittorn 2020-02-12 15:40:06 +07:00
parent 9a08968453
commit c6d793231c
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,7 @@ def build(bld):
if bld.env.DEST_OS == 'win32':
libs += ["USER32"]
if bld.env.DEST_OS not in ['android']:
if bld.env.DEST_OS not in ['android', 'dos']:
install_path = os.path.join(bld.env.GAMEDIR, bld.env.CLIENT_DIR)
else:
install_path = bld.env.PREFIX
@ -61,6 +61,7 @@ def build(bld):
bld.shlib(
source = source,
target = 'client' + bld.env.POSTFIX,
name = 'client',
features = 'c cxx',
includes = includes,
defines = defines,

View File

@ -61,7 +61,7 @@ def build(bld):
libs = []
if bld.env.DEST_OS not in ['android']:
if bld.env.DEST_OS not in ['android', 'dos']:
install_path = os.path.join(bld.env.GAMEDIR, bld.env.SERVER_DIR)
else:
install_path = bld.env.PREFIX
@ -69,6 +69,7 @@ def build(bld):
bld.shlib(
source = source,
target = bld.env.SERVER_NAME + bld.env.POSTFIX,
name = 'server',
features = 'c cxx',
includes = includes,
defines = defines,