This commit is contained in:
Er2 2023-12-30 10:46:53 +01:00 committed by GitHub
commit 0b241d1109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = None if bld.env.BUILD_SDK else bld.env.LIBDIR

View File

@ -625,7 +625,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'