2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-24 18:59:50 +01:00
xash3d-fwgs/public/wscript

40 lines
773 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):
# stub
return
def build(bld):
bld(name = 'sdk_includes', export_includes = '. ../common ../pm_shared ../engine')
bld.stlib(source = bld.path.ant_glob('*.c'),
target = 'public',
features = 'c',
use = 'sdk_includes',
subsystem = bld.env.MSVC_SUBSYSTEM)
if bld.env.TESTS:
tests = {
'strings': 'tests/test_strings.c',
'build': 'tests/test_build.c',
'filebase': 'tests/test_filebase.c',
}
for i in tests:
bld.program(features = 'test',
source = tests[i],
target = 'test_%s' % i,
use = 'public',
subsystem = bld.env.CONSOLE_SUBSYSTEM,
install_path = None)