2020-03-29 17:45:00 +03:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# mittorn, 2018
|
|
|
|
|
|
|
|
from waflib import Logs
|
|
|
|
import os
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
return
|
|
|
|
|
|
|
|
def configure(conf):
|
2024-11-02 01:57:33 +03:00
|
|
|
return
|
2020-03-29 17:45:00 +03:00
|
|
|
|
|
|
|
def build(bld):
|
2024-01-30 15:04:57 +03:00
|
|
|
libs = [ 'engine_includes', 'werror' ]
|
2023-02-13 20:53:17 +01:00
|
|
|
# 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' ]
|
|
|
|
|
2024-10-24 00:40:12 +03:00
|
|
|
bld.shlib(source = bld.path.ant_glob('*.c'),
|
2020-03-29 17:45:00 +03:00
|
|
|
target = 'ref_soft',
|
2022-09-10 20:05:45 +03:00
|
|
|
includes = '.',
|
2024-11-02 01:57:33 +03:00
|
|
|
defines = 'REF_DLL=1',
|
2023-02-13 20:53:17 +01:00
|
|
|
use = libs,
|
2024-11-27 15:34:49 +03:00
|
|
|
install_path = bld.env.LIBDIR
|
2020-03-29 17:45:00 +03:00
|
|
|
)
|