2019-03-19 23:17:46 +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):
|
|
|
|
# stub
|
|
|
|
return
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
bld.load_envs()
|
|
|
|
name = get_subproject_name(bld)
|
|
|
|
bld.env = bld.all_envs[name]
|
|
|
|
|
|
|
|
source = bld.path.ant_glob(['*.c'])
|
2019-03-20 00:40:47 +01:00
|
|
|
libs = []
|
2019-03-19 23:17:46 +01:00
|
|
|
includes = [ '.', '../common', '../engine' ]
|
|
|
|
|
|
|
|
bld.stlib(
|
|
|
|
source = source,
|
|
|
|
target = name,
|
|
|
|
features = 'c',
|
|
|
|
includes = includes,
|
|
|
|
use = libs,
|
|
|
|
install_path = bld.env.LIBDIR,
|
|
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
|
|
)
|