From c24348eb207fdd124b61212c27ab6951279ce322 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 4 May 2020 11:09:06 +0200 Subject: initial chattymalloc standalone commit --- meson.build | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meson.build (limited to 'meson.build') 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]) -- cgit v1.2.3