summaryrefslogtreecommitdiff
path: root/random
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-07-30 16:42:52 +0100
committerOlivier Crête <olivier.crete@collabora.com>2018-12-14 14:47:01 -0500
commit0e0f89d2b916dc0475787e0970bb692882ee3de2 (patch)
treee63653836a4e07fd0d54c5b2b5b52d7535d37c91 /random
parented70ea09b6b283b25d3047443c00a14c8cb29e1a (diff)
Add support for Meson build system
Diffstat (limited to 'random')
-rw-r--r--random/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/random/meson.build b/random/meson.build
new file mode 100644
index 0000000..14eaaff
--- /dev/null
+++ b/random/meson.build
@@ -0,0 +1,15 @@
+librandom = static_library('nice-random',
+ 'random.c', 'random-glib.c',
+ c_args: ['-DG_LOG_DOMAIN="libnice-random"'],
+ include_directories: nice_incs,
+ dependencies: [glib_dep, gthread_dep],
+ install: false)
+
+if not get_option('tests').disabled()
+ test_exe = executable('nice-random-test', 'test.c',
+ include_directories: nice_incs,
+ dependencies: [glib_dep, gthread_dep],
+ link_with: librandom)
+
+ test('nice-random', test_exe)
+endif