diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-05-04 11:09:06 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-05-04 11:09:06 +0200 |
| commit | c24348eb207fdd124b61212c27ab6951279ce322 (patch) | |
| tree | f22dda10c160217c1a6f935c12bafabb934def5c /meson.build | |
| download | chattymalloc-c24348eb207fdd124b61212c27ab6951279ce322.tar.gz chattymalloc-c24348eb207fdd124b61212c27ab6951279ce322.zip | |
initial chattymalloc standalone commit
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..372f8c4 --- /dev/null +++ b/meson.build @@ -0,0 +1,24 @@ +project('chattymalloc', 'c', + version : '0.1', + default_options : [ + 'warning_level=3', + 'c_std=gnu11', + 'b_ndebug=if-release', + 'werror=true', + ]) + +conf_data = configuration_data() + +include_dir = include_directories('include') + +thread_dep = dependency('threads') + +cc = meson.get_compiler('c') +libdl = cc.find_library('dl') + +chattymalloc_sources = ['chattymalloc.c'] +chattymalloc_so = shared_library('chattymalloc', + chattymalloc_sources, + include_directories : include_dir, + c_args: ['-fno-builtin-calloc', '-fno-builtin-malloc'], + dependencies: [thread_dep, libdl]) |
