summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build29
1 files changed, 29 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..f4e1d21
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,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)