2019-02-18 19:25:26 +01:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# mittorn, 2018
|
|
|
|
|
|
|
|
from waflib import Logs
|
|
|
|
import os
|
|
|
|
from fwgslib import get_subproject_name
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
# stub
|
|
|
|
return
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
# check for dedicated server build
|
|
|
|
if conf.options.DEDICATED:
|
|
|
|
return
|
|
|
|
|
|
|
|
if conf.options.SUPPORT_BSP2_FORMAT:
|
|
|
|
conf.env.append_unique('DEFINES', 'SUPPORT_BSP2_FORMAT')
|
|
|
|
|
2019-02-24 16:45:27 +01:00
|
|
|
conf.env.append_unique('DEFINES', 'REF_DLL')
|
|
|
|
|
2019-02-18 19:25:26 +01:00
|
|
|
def build(bld):
|
|
|
|
if bld.env.DEDICATED:
|
|
|
|
return
|
|
|
|
|
|
|
|
bld.load_envs()
|
|
|
|
name = get_subproject_name(bld)
|
|
|
|
bld.env = bld.all_envs[name]
|
|
|
|
|
|
|
|
libs = []
|
|
|
|
|
|
|
|
source = bld.path.ant_glob(['*.c'])
|
|
|
|
|
|
|
|
includes = ['.',
|
2019-02-23 19:49:46 +01:00
|
|
|
'../engine',
|
|
|
|
'../engine/common',
|
2019-02-18 19:25:26 +01:00
|
|
|
'../engine/server',
|
|
|
|
'../engine/client',
|
|
|
|
'../common',
|
|
|
|
'../pm_shared' ]
|
|
|
|
|
|
|
|
bld.shlib(
|
2019-02-24 16:45:27 +01:00
|
|
|
source = source,
|
2019-02-18 19:25:26 +01:00
|
|
|
target = name,
|
|
|
|
features = 'c',
|
|
|
|
includes = includes,
|
|
|
|
use = libs,
|
|
|
|
install_path = bld.env.LIBDIR,
|
|
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
|
|
)
|