summaryrefslogtreecommitdiff
path: root/bittorrent/mbtstr/meson.build
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /bittorrent/mbtstr/meson.build
add: added projectsHEADmain
Diffstat (limited to 'bittorrent/mbtstr/meson.build')
-rw-r--r--bittorrent/mbtstr/meson.build45
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],
+)
+
+
+
+
+
+
+