mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
wine-gcc hacks -- fixes #6984
This commit is contained in:
parent
a639e4492f
commit
48d085a569
1 changed files with 9 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ def build(bld):
|
||||||
bld (export_includes = ['fluidsynth'],
|
bld (export_includes = ['fluidsynth'],
|
||||||
name = 'libfluidsynth_includes'
|
name = 'libfluidsynth_includes'
|
||||||
)
|
)
|
||||||
bld.stlib (source = [
|
obj = bld.stlib (source = [
|
||||||
'src/fluid_midi.c',
|
'src/fluid_midi.c',
|
||||||
'src/fluid_adsr_env.c',
|
'src/fluid_adsr_env.c',
|
||||||
'src/fluid_chorus.c',
|
'src/fluid_chorus.c',
|
||||||
|
|
@ -69,5 +69,13 @@ def build(bld):
|
||||||
defines = [ 'HAVE_CONFIG_H', 'DEFAULT_SOUNDFONT=""' ]
|
defines = [ 'HAVE_CONFIG_H', 'DEFAULT_SOUNDFONT=""' ]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# wine-gcc hacks:
|
||||||
|
# defining __MINGW32__ for wine-gcc is a workaround for fluidsynth's include
|
||||||
|
# strategy (which is made for mingw or windows) without it
|
||||||
|
# winsock2.h will complain about undeclared "u_short"
|
||||||
|
# we also need to explicitly define _WIN32
|
||||||
|
if bld.is_defined('WINDOWS_VST_SUPPORT') and not bld.env['build_target'] == 'mingw':
|
||||||
|
obj.defines += [ '_WIN32', '__MINGW32__' ]
|
||||||
|
|
||||||
def shutdown():
|
def shutdown():
|
||||||
autowaf.shutdown()
|
autowaf.shutdown()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue