You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
803 B
40 lines
803 B
#! /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', |
|
'efp': 'tests/test_efp.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)
|
|
|