mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Initial commit with project skeleton
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
project(
|
||||
'yabridge',
|
||||
'cpp',
|
||||
version : '0.1',
|
||||
default_options : ['warning_level=3', 'cpp_std=c++17']
|
||||
)
|
||||
|
||||
# Meson does not let us set a default cross compiler, which makes sense, but it
|
||||
# also means that it's easy to forget. This will cause the setup process to
|
||||
# abort if no cross compiler has been set up.
|
||||
winelib_check = '''#ifndef __WINE__
|
||||
#error 1
|
||||
#endif'''
|
||||
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
|
||||
|
||||
# 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
|
||||
# file.
|
||||
|
||||
include_dir = include_directories('src/include')
|
||||
|
||||
common_src = []
|
||||
|
||||
linux_plugin_src = [
|
||||
'src/plugin/yabridge.cpp',
|
||||
]
|
||||
|
||||
wine_host_src = [
|
||||
'src/wine-host/vst-host.cpp',
|
||||
]
|
||||
|
||||
shared_library(
|
||||
'yabridge',
|
||||
linux_plugin_src + common_src,
|
||||
native : true,
|
||||
include_directories : include_dir,
|
||||
dependencies : [],
|
||||
link_args : []
|
||||
)
|
||||
|
||||
executable(
|
||||
'yabridge-host',
|
||||
wine_host_src + common_src,
|
||||
native : false,
|
||||
include_directories : include_dir,
|
||||
dependencies : [],
|
||||
link_args : []
|
||||
)
|
||||
Reference in New Issue
Block a user