mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
31 lines
621 B
Python
31 lines
621 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 = [ 'ref_common', 'engine_includes', 'werror', 'yy_thunks' ]
|
|
# 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
|
|
)
|