summaryrefslogtreecommitdiff
path: root/meson.build
blob: f4e1d2102276ea52f571106d197b54d15df1c4b5 (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
25
26
27
28
29
project('csx', 'c')

c = meson.get_compiler('c')

wayland = dependency('wayland-client')
pixman = dependency('pixman-1')
xlib = dependency('x11')

csx_files = files('private.h', 'display.c', 'resource.c', 'window.c',
		  'pixmap.c', 'event.c', 'input.c', 'hints.c', 'xim.c',
		  'draw.c', 'font.c', 'colormap.c', 'xfixes.c', 'randr.c')

csx = shared_library('csx',
		     csx_files,
		     c_args : [ '-Wall', '-Wextra', '-Wno-unused-parameter',
				'-Wno-missing-field-initializers', '-fvisibility=hidden',
				'-Wstrict-prototypes', '-Wmissing-prototypes' ],
		     dependencies : [ wayland, pixman ],
		     install : true)

executable('csx-test',
	   files('test.c'),
	   link_with : csx,
	   install : false)

executable('xlib-test',
	   files('test.c'),
	   dependencies : [ xlib ],
	   install : false)