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.
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# mittorn, 2018
|
|
|
|
|
|
|
|
from waflib import Logs
|
|
|
|
import os
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
# stub
|
|
|
|
return
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
# public is part of shared libraries
|
|
|
|
conf.env.CFLAGS += conf.env.CFLAGS_cshlib
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
source = bld.path.ant_glob(['*.c'])
|
|
|
|
libs = []
|
|
|
|
includes = [ '.', '../common', '../engine' ]
|
|
|
|
|
|
|
|
bld.stlib(
|
|
|
|
source = source,
|
|
|
|
target = 'public',
|
|
|
|
features = 'c',
|
|
|
|
includes = includes,
|
|
|
|
use = libs,
|
|
|
|
install_path = bld.env.LIBDIR,
|
|
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
|
|
)
|