mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-03 23:51:14 +01:00
48 lines
838 B
Python
48 lines
838 B
Python
#! /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')
|
|
|
|
conf.env.append_unique('DEFINES', 'REF_DLL')
|
|
|
|
def build(bld):
|
|
libs = [ 'public', 'M' ]
|
|
|
|
source = bld.path.ant_glob(['*.c'])
|
|
|
|
includes = ['.',
|
|
'../engine',
|
|
'../engine/common',
|
|
'../engine/server',
|
|
'../engine/client',
|
|
'../public',
|
|
'../common',
|
|
'../pm_shared' ]
|
|
|
|
bld.shlib(
|
|
source = source,
|
|
target = 'ref_gl',
|
|
features = 'c',
|
|
includes = includes,
|
|
use = libs,
|
|
install_path = bld.env.LIBDIR,
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
)
|