special case luabridge for windows/MSVC

luabridge uses static fn addresses to identify classes.
Windows uses different addresses for *identical* static functions
in libardour.dll and ardour.exe

This solves the issue by moving the all functions from a
header-only implementation into libardour.
This commit is contained in:
Robin Gareus
2016-04-11 22:19:25 +02:00
parent 4eba3869fe
commit 8002b2d26e
4 changed files with 112 additions and 7 deletions

View File

@@ -33,13 +33,14 @@ def build(bld):
if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
return
if bld.env['build_target'] != 'mingw':
# TEST/DEVEL TOOL #######################
obj = bld (features = 'cxx c cxxprogram')
obj.source = 'devel.cc'
obj.target = 'devel'
obj.uselib = ['SIGCPP', 'READLINE']
obj.use = ['liblua']
obj.install_path = None
obj = bld (features = 'cxx c cxxprogram')
obj.source = 'devel.cc'
obj.target = 'devel'
obj.uselib = ['SIGCPP', 'READLINE']
obj.use = ['liblua']
obj.install_path = None
#########################################
# commandline luasession wrapper