Xrasher/ref/soft/wscript
Alibek Omarov 0154ffa060 wscript: try to automatically set console subsystem flag depending on target features
Remove subsystem flag from shlibs and stlibs, it's only required for executables.
2024-11-27 15:43:13 +03:00

30 lines
594 B
Python

#! /usr/bin/env python
# encoding: utf-8
# mittorn, 2018
from waflib import Logs
import os
top = '.'
def options(opt):
return
def configure(conf):
return
def build(bld):
libs = [ 'engine_includes', 'werror' ]
# on PSVita do not link any libraries that are already in the main executable, but add the includes target
if bld.env.DEST_OS == 'psvita':
libs += [ 'sdk_includes' ]
else:
libs += [ 'public', 'M' ]
bld.shlib(source = bld.path.ant_glob('*.c'),
target = 'ref_soft',
includes = '.',
defines = 'REF_DLL=1',
use = libs,
install_path = bld.env.LIBDIR
)