aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 372f8c4d6bbe44b376e1c605f12148ba6dfc8581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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])