diff --git a/WarpBuf/meson.build b/WarpBuf/meson.build new file mode 100644 index 00000000..7e0fac5c --- /dev/null +++ b/WarpBuf/meson.build @@ -0,0 +1,34 @@ +project('warpbuf', 'cpp', + version : 'v0.0.1', + default_options : ['cpp_std=c++17'], + license : 'MIT') + +add_global_arguments(language : 'cpp') + +warpbuf_sources = [ + 'src/WarpBufChugin.cpp', + 'src/WarpBufChuginDLL.cpp' +] + +warpbuf_headers = [ + 'src/AbletonClipInfo.h', + 'src/WarpBufChugin.h', +] + +chuck_inc = include_directories('../../chuck/include') +portable_endian_inc = include_directories('../thirdparty/portable_endian/include') +inc = [chuck_inc, portable_endian_inc] + +# dependencies +# subdir('thirdparty/rubberband') +rubberband = dependency('rubberband') +libsndfile = dependency('sndfile') + + +warpbuf_lib = library( + 'warpbuf_lib', + sources: warpbuf_sources, + include_directories: inc, + dependencies: [rubberband, libsndfile], + install: true, +) diff --git a/WarpBuf/subprojects/libsndfile.wrap b/WarpBuf/subprojects/libsndfile.wrap new file mode 100644 index 00000000..f75feb9d --- /dev/null +++ b/WarpBuf/subprojects/libsndfile.wrap @@ -0,0 +1,13 @@ +[wrap-file] +directory = libsndfile-1.2.2 +source_url = https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz +source_filename = libsndfile-1.2.2.tar.xz +source_hash = 3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e +patch_filename = libsndfile_1.2.2-1_patch.zip +patch_url = https://wrapdb.mesonbuild.com/v2/libsndfile_1.2.2-1/get_patch +patch_hash = 0438f3ea86b2facf4fe05f761c717f3b71e144cb59e60504e49ecd25874d67ad +source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libsndfile_1.2.2-1/libsndfile-1.2.2.tar.xz +wrapdb_version = 1.2.2-1 + +[provide] +sndfile = libsndfile_dep diff --git a/WarpBuf/subprojects/rubberband.wrap b/WarpBuf/subprojects/rubberband.wrap new file mode 100644 index 00000000..bf015b3b --- /dev/null +++ b/WarpBuf/subprojects/rubberband.wrap @@ -0,0 +1,9 @@ +[wrap-file] +directory = rubberband-2.0.2 +source_url = https://breakfastquay.com/files/releases/rubberband-2.0.2.tar.bz2 +source_filename = rubberband-2.0.2.tar.bz2 +source_hash = b9eac027e797789ae99611c9eaeaf1c3a44cc804f9c8a0441a0d1d26f3d6bdf9 + +[provide] +rubberband = rubberband_dep +