aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-09 23:05:36 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-09 23:05:36 +0200
commit3afcfc675484424c19b83ce90af5c64a92694f5f (patch)
treef8e4411f7e2cb4ab9c23262b092abda693e485f6
parentcb0e81ad239b75a65bb1e0200d7e8ce81576248a (diff)
downloadsynthpod-3afcfc675484424c19b83ce90af5c64a92694f5f.tar.xz
start meson migration.
-rw-r--r--VERSION2
-rw-r--r--app/meson.build14
-rw-r--r--bin/meson.build13
-rw-r--r--meson.build55
-rw-r--r--meson/arm-linux-gnueabihf18
-rw-r--r--meson/i686-linux-gnu17
-rw-r--r--meson/i686-w64-mingw3217
-rw-r--r--meson/universal-apple-darwin19
-rw-r--r--meson/x86_64-linux-gnu16
-rw-r--r--meson/x86_64-w64-mingw3217
-rw-r--r--sandbox_ui.lv2/meson.build7
11 files changed, 194 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 6bbd1d82..f1a09e0e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.5601
+0.1.5603
diff --git a/app/meson.build b/app/meson.build
new file mode 100644
index 00000000..6fe5da99
--- /dev/null
+++ b/app/meson.build
@@ -0,0 +1,14 @@
+srcs = ['synthpod_app.c',
+ 'synthpod_app_mod.c',
+ 'synthpod_app_port.c',
+ 'synthpod_app_state.c',
+ 'synthpod_app_ui.c',
+ 'synthpod_app_worker.c'
+]
+
+incs = [inc_incs, app_incs, xpress_incs, osc_incs, extui_incs, ardour_incs, varchunk_incs, crossclock_incs]
+deps = [m_dep, rt_dep, lv2_dep, thread_dep, lilv_dep]
+
+app = static_library('synthpod.app', srcs,
+ include_directories : incs,
+ dependencies : deps)
diff --git a/bin/meson.build b/bin/meson.build
new file mode 100644
index 00000000..6e056719
--- /dev/null
+++ b/bin/meson.build
@@ -0,0 +1,13 @@
+dummy_srcs = ['synthpod_dummy.c',
+ 'synthpod_bin.c',
+ 'nsmc.c'
+]
+
+incs = [inc_incs, app_incs, xpress_incs, osc_incs, extui_incs, ardour_incs, varchunk_incs, crossclock_incs, lfrtm_incs, mapper_incs, sbox_incs]
+deps = [m_dep, rt_dep, lv2_dep, thread_dep, lilv_dep]
+
+dummy = executable('synthpod_dummy', dummy_srcs,
+ include_directories : incs,
+ dependencies : deps,
+ link_with : [app, sbox_master],
+ install : true)
diff --git a/meson.build b/meson.build
new file mode 100644
index 00000000..c3928df0
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,55 @@
+project('synthpod', 'c', default_options : [
+ 'buildtype=release',
+ 'warning_level=1',
+ 'werror=false',
+ 'b_lto=true',
+ 'c_std=c11'])
+
+cc = meson.get_compiler('c')
+
+inc_incs = include_directories('include')
+app_incs = include_directories('app')
+xpress_incs = include_directories('xpress.lv2')
+osc_incs = include_directories('osc.lv2')
+extui_incs = include_directories('ext_ui.lv2')
+ardour_incs = include_directories('ardour.lv2')
+varchunk_incs = include_directories('varchunk')
+crossclock_incs = include_directories('cross_clock')
+lfrtm_incs = include_directories('lfrtm')
+mapper_incs = include_directories('mapper.lv2')
+sbox_incs = include_directories('sandbox_ui.lv2')
+netatom_incs = include_directories('netatom.lv2')
+
+m_dep = cc.find_library('m')
+rt_dep = cc.find_library('rt')
+lv2_dep = dependency('lv2', version : '>=1.14.0')
+thread_dep = dependency('threads')
+lilv_dep = dependency('lilv-0', version : '>=0.24.0',
+ static : meson.is_cross_build())
+
+rawvers = run_command('cat', 'VERSION').stdout().strip()
+version = rawvers.split('.')
+
+conf_data = configuration_data()
+conf_data.set('MAJOR_VERSION', version[0])
+conf_data.set('MINOR_VERSION', version[1])
+conf_data.set('MICRO_VERSION', version[2])
+
+add_project_arguments('-D_GNU_SOURCE', language : 'c')
+add_project_arguments('-DSYNTHPOD_VERSION="'+rawvers+'"', language : 'c')
+add_project_arguments('-DSYNTHPOD_MINOR_VERSION="'+version[1]+'"', language : 'c') #FIXME
+add_project_arguments('-DSYNTHPOD_MICRO_VERSION="'+version[2]+'"', language : 'c') #FIXME
+add_project_arguments('-DSYNTHPOD_BUNDLE_DIR="/usr/local/lib/synthpod/"', language : 'c') #FIXME
+add_project_arguments('-DSYNTHPOD_BIN_DIR="/usr/local/bin/"', language : 'c') #FIXME
+add_project_arguments('-DSYNTHPOD_PLUGIN_DIR="/usr/local/lib/lv2/"', language : 'c') #FIXME
+
+cp = find_program('cp')
+clone = [cp, '@INPUT@', '@OUTPUT@']
+
+c_args = ['-fvisibility=hidden',
+ '-ffast-math']
+
+subdir('sandbox_ui.lv2')
+subdir('app')
+subdir('bin')
+#subdir('plugins')
diff --git a/meson/arm-linux-gnueabihf b/meson/arm-linux-gnueabihf
new file mode 100644
index 00000000..241266ed
--- /dev/null
+++ b/meson/arm-linux-gnueabihf
@@ -0,0 +1,18 @@
+[host_machine]
+system = 'linux'
+cpu_family = 'arm'
+cpu = 'armv7hl'
+endian = 'little'
+
+[binaries]
+c = '/usr/bin/arm-linux-gnueabihf-gcc'
+cpp = '/usr/bin/arm-linux-gnueabihf-g++'
+ar = '/usr/bin/arm-linux-gnueabihf-ar'
+strip = '/usr/bin/arm-linux-gnueabihf-strip'
+pkgconfig = '/usr/bin/pkg-config'
+exe_wrapper = '/usr/bin/qemu-arm'
+
+[properties]
+root = '/usr/arm-linux-gnueabihf'
+c_link_args = ['-Wl,-z,defs']
+needs_exe_wrapper = true
diff --git a/meson/i686-linux-gnu b/meson/i686-linux-gnu
new file mode 100644
index 00000000..ff653c65
--- /dev/null
+++ b/meson/i686-linux-gnu
@@ -0,0 +1,17 @@
+[host_machine]
+system = 'linux'
+cpu_family = 'x86'
+cpu = 'i686'
+endian = 'little'
+
+[binaries]
+c = '/usr/bin/x86_64-linux-gnu-gcc'
+cpp = '/usr/bin/x86_64-linux-gnu-g++'
+ar = '/usr/bin/x86_64-linux-gnu-ar'
+strip = '/usr/bin/x86_64-linux-gnu-strip'
+pkgconfig = '/usr/bin/pkg-config'
+
+[properties]
+c_args = ['-m32']
+c_link_args = ['-m32', '-Wl,-z,defs']
+needs_exe_wrapper = false
diff --git a/meson/i686-w64-mingw32 b/meson/i686-w64-mingw32
new file mode 100644
index 00000000..4966ba7d
--- /dev/null
+++ b/meson/i686-w64-mingw32
@@ -0,0 +1,17 @@
+[host_machine]
+system = 'windows'
+cpu_family = 'i686'
+cpu = 'i686'
+endian = 'little'
+
+[binaries]
+c = '/usr/bin/i686-w64-mingw32-gcc'
+cpp = '/usr/bin/i686-w64-mingw32-g++'
+ar = '/usr/bin/i686-w64-mingw32-ar'
+strip = '/usr/bin/i686-w64-mingw32-strip'
+pkgconfig = '/usr/bin/pkg-config'
+exe_wrapper = '/usr/bin/wine'
+
+[properties]
+root = '/usr/i686-w64-mingw32'
+needs_exe_wrapper = true
diff --git a/meson/universal-apple-darwin b/meson/universal-apple-darwin
new file mode 100644
index 00000000..0ee2e02a
--- /dev/null
+++ b/meson/universal-apple-darwin
@@ -0,0 +1,19 @@
+[host_machine]
+system = 'darwin'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+
+[binaries]
+c = '/usr/universal-apple-darwin/bin/x86_64-apple-darwin15-clang'
+cpp = '/usr/universal-apple-darwin/bin/x86_64-apple-darwin15-clang++'
+objc = '/usr/universal-apple-darwin/bin/x86_64-apple-darwin15-clang'
+ar = '/usr/universal-apple-darwin/bin/x86_64-apple-darwin15-ar'
+strip = '/usr/universal-apple-darwin/bin/x86_64-apple-darwin15-strip'
+pkgconfig = '/usr/bin/pkg-config'
+
+[properties]
+root = '/usr/universal-apple-darwin/SDK/MacOSX10.11.sdk'
+c_args = ['-arch', 'i386', '-arch', 'x86_64']
+c_link_args = ['-arch', 'i386', '-arch', 'x86_64']
+needs_exe_wrapper = true
diff --git a/meson/x86_64-linux-gnu b/meson/x86_64-linux-gnu
new file mode 100644
index 00000000..b09321cd
--- /dev/null
+++ b/meson/x86_64-linux-gnu
@@ -0,0 +1,16 @@
+[host_machine]
+system = 'linux'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+
+[binaries]
+c = '/usr/bin/x86_64-linux-gnu-gcc'
+cpp = '/usr/bin/x86_64-linux-gnu-g++'
+ar = '/usr/bin/x86_64-linux-gnu-ar'
+strip = '/usr/bin/x86_64-linux-gnu-strip'
+pkgconfig = '/usr/bin/pkg-config'
+
+[properties]
+c_link_args = ['-Wl,-z,defs']
+needs_exe_wrapper = false
diff --git a/meson/x86_64-w64-mingw32 b/meson/x86_64-w64-mingw32
new file mode 100644
index 00000000..40c8a32f
--- /dev/null
+++ b/meson/x86_64-w64-mingw32
@@ -0,0 +1,17 @@
+[host_machine]
+system = 'windows'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+
+[binaries]
+c = '/usr/bin/x86_64-w64-mingw32-gcc'
+cpp = '/usr/bin/x86_64-w64-mingw32-g++'
+ar = '/usr/bin/x86_64-w64-mingw32-ar'
+strip = '/usr/bin/x86_64-w64-mingw32-strip'
+pkgconfig = '/usr/bin/pkg-config'
+exe_wrapper = '/usr/bin/wine64'
+
+[properties]
+root = '/usr/x86_64-w64-mingw32'
+needs_exe_wrapper = true
diff --git a/sandbox_ui.lv2/meson.build b/sandbox_ui.lv2/meson.build
new file mode 100644
index 00000000..e6318d3b
--- /dev/null
+++ b/sandbox_ui.lv2/meson.build
@@ -0,0 +1,7 @@
+sbox_master = static_library('sbox_master', 'sandbox_master.c',
+ include_directories : [varchunk_incs, mapper_incs, netatom_incs],
+ dependencies : [lilv_dep])
+
+sbox_slave = static_library('sbox_slave', 'sandbox_slave.c',
+ include_directories : [varchunk_incs, mapper_incs, netatom_incs],
+ dependencies : [lilv_dep])