mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add winedbg support behind a feature flag
I had something similar saved as a stash since I did not want to make things more complicated by adding feature flags, but this should be fine.
This commit is contained in:
@@ -15,6 +15,13 @@ if not meson.get_compiler('cpp').compiles(winelib_check)
|
||||
error('You need to set up a cross compiler, check the README for more information.')
|
||||
endif
|
||||
|
||||
# This provides an easy way to start the Wine VST host using winedbg since it
|
||||
# can be quite a pain to set up
|
||||
compiler_options = []
|
||||
if get_option('use-winedbg')
|
||||
compiler_options += '-DUSE_WINEDBG'
|
||||
endif
|
||||
|
||||
# The application consists of a VST plugin (yabridge) that calls a winelib
|
||||
# program (yabridge-host) that can host Windows VST plugins. More information
|
||||
# about the way these two components work together can be found in the readme
|
||||
@@ -39,6 +46,7 @@ shared_library(
|
||||
native : true,
|
||||
include_directories : include_dir,
|
||||
dependencies : [boost_dep, bitsery_dep, threads_dep],
|
||||
cpp_args : compiler_options,
|
||||
link_args : ['-ldl']
|
||||
)
|
||||
|
||||
@@ -53,5 +61,6 @@ executable(
|
||||
native : false,
|
||||
include_directories : include_dir,
|
||||
dependencies : [boost_dep, bitsery_dep, wine_threads_dep],
|
||||
cpp_args : compiler_options,
|
||||
link_args : []
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user