fix packaging and add missing execinfo for freebsd

This commit is contained in:
Er2 2023-05-07 16:47:31 +03:00
parent 523f4e9eaa
commit 426d6a329f
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,8 @@ def configure(conf):
conf.define('TIER0_DLL_EXPORT',1)
# conf.define('NO_HOOK_MALLOC',1)
if conf.env.DEST_OS == 'freebsd': conf.check_cc(lib='execinfo')
def build(bld):
source = [
'assert_dialog.cpp',
@ -82,6 +84,7 @@ def build(bld):
libs = ['ADVAPI32', 'WS2_32']
else:
libs = ['DL', 'M', 'LOG']
if bld.env.DEST_OS == 'freebsd': libs += ['EXECINFO']
install_path = bld.env.LIBDIR

View File

@ -591,7 +591,8 @@ def configure(conf):
conf.add_subproject(projects['game'])
def build(bld):
os.environ["CCACHE_DIR"] = os.path.abspath('.ccache/'+bld.env.COMPILER_CC+'/'+bld.env.DEST_OS+'/'+bld.env.DEST_CPU)
if not os.environ.get('CCACHE_DIR'):
os.environ["CCACHE_DIR"] = os.path.abspath('.ccache/'+bld.env.COMPILER_CC+'/'+bld.env.DEST_OS+'/'+bld.env.DEST_CPU)
if bld.env.DEST_OS in ['win32', 'android']:
sdl_name = 'SDL2.dll' if bld.env.DEST_OS == 'win32' else 'libSDL2.so'