Skip to content

Commit

Permalink
inital version of meson build (working on linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshaheed committed Jun 12, 2024
1 parent 7d9d24b commit fdfd386
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
34 changes: 34 additions & 0 deletions WarpBuf/meson.build
Original file line number Diff line number Diff line change
@@ -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,
)
13 changes: 13 additions & 0 deletions WarpBuf/subprojects/libsndfile.wrap
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions WarpBuf/subprojects/rubberband.wrap
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fdfd386

Please sign in to comment.