mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-03-11 20:22:49 +00:00
fix packaging and add missing execinfo for freebsd
This commit is contained in:
parent
523f4e9eaa
commit
426d6a329f
@ -17,6 +17,8 @@ def configure(conf):
|
|||||||
conf.define('TIER0_DLL_EXPORT',1)
|
conf.define('TIER0_DLL_EXPORT',1)
|
||||||
# conf.define('NO_HOOK_MALLOC',1)
|
# conf.define('NO_HOOK_MALLOC',1)
|
||||||
|
|
||||||
|
if conf.env.DEST_OS == 'freebsd': conf.check_cc(lib='execinfo')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
source = [
|
source = [
|
||||||
'assert_dialog.cpp',
|
'assert_dialog.cpp',
|
||||||
@ -82,6 +84,7 @@ def build(bld):
|
|||||||
libs = ['ADVAPI32', 'WS2_32']
|
libs = ['ADVAPI32', 'WS2_32']
|
||||||
else:
|
else:
|
||||||
libs = ['DL', 'M', 'LOG']
|
libs = ['DL', 'M', 'LOG']
|
||||||
|
if bld.env.DEST_OS == 'freebsd': libs += ['EXECINFO']
|
||||||
|
|
||||||
install_path = bld.env.LIBDIR
|
install_path = bld.env.LIBDIR
|
||||||
|
|
||||||
|
3
wscript
3
wscript
@ -591,7 +591,8 @@ def configure(conf):
|
|||||||
conf.add_subproject(projects['game'])
|
conf.add_subproject(projects['game'])
|
||||||
|
|
||||||
def build(bld):
|
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']:
|
if bld.env.DEST_OS in ['win32', 'android']:
|
||||||
sdl_name = 'SDL2.dll' if bld.env.DEST_OS == 'win32' else 'libSDL2.so'
|
sdl_name = 'SDL2.dll' if bld.env.DEST_OS == 'win32' else 'libSDL2.so'
|
||||||
|
Loading…
Reference in New Issue
Block a user