diff options
Diffstat (limited to 'bittorrent/mbtstr/meson.build')
| -rw-r--r-- | bittorrent/mbtstr/meson.build | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/bittorrent/mbtstr/meson.build b/bittorrent/mbtstr/meson.build new file mode 100644 index 0000000..4565c94 --- /dev/null +++ b/bittorrent/mbtstr/meson.build @@ -0,0 +1,45 @@ +project( + 'mbtstr', # project name + 'c', # project language + meson_version: '>= 1.1.0', # meson minimum version + version: '1.0.0', # project version + default_options: [ + 'c_args=-D_GNU_SOURCE', + 'c_std=c99', # -std=c99 + 'debug=true', # -g + 'optimization=0', # -O0 + 'warning_level=3', # -Wall -Wextra -Wpedantic + 'werror=true', # -Werror + 'b_sanitize=address,undefined', # -fsanitize=address,undefined + ], +) + +SRCFILES = run_command('find','src -name *.c').stdout().split() + +mbtstrlib_inc = [include_directories('include')] + +mbtstrlib = shared_library( + 'mbtstr', + # python c horrible + sources: SRCFILES, + include_directories: mbtstrlib_inc + [include_directories('src')], +) + +mbtstrlib_dep = declare_dependency( + include_directories: mbtstrlib_inc, + link_with: mbtstrlib, +) + +mbtstrexe = executable( + 'mbtstrexe', + sources: SRCFILES, + include_directories: [include_directories('src')], + dependencies: [mbtstrlib_dep], +) + + + + + + + |
