mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-14 13:10:09 +01:00
36 lines
653 B
Python
36 lines
653 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
# mittorn, 2018
|
|
|
|
from waflib import Logs
|
|
import os
|
|
|
|
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):
|
|
if bld.env.DEDICATED:
|
|
return
|
|
|
|
bld.shlib(source = bld.path.ant_glob(['*.c']),
|
|
target = 'ref_soft',
|
|
features = 'c',
|
|
includes = '.',
|
|
use = 'engine_includes public M',
|
|
install_path = bld.env.LIBDIR,
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
)
|