From ae53b622845c53995767108c28243c8bebc0f8ba Mon Sep 17 00:00:00 2001 From: Kimmo Jaatinen Date: Thu, 9 Nov 2017 21:15:12 +0200 Subject: [PATCH 1/3] Added support for Meson build system. --- meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..653ea25 --- /dev/null +++ b/meson.build @@ -0,0 +1,12 @@ +project('murmur3', 'c', version: '0.1') + + +lib_murmur3 = shared_library('murmur3', 'murmur3.c') + +exe_example = executable('example', 'example.c', link_with: lib_murmur3) + +exe_test1 = executable('test1', 'test.c', link_with: lib_murmur3) +test('Unit test', exe_test1, is_parallel: false) + + + From 2ab8fd48abd0c0cb7454d3a57086f3e52d4bbf51 Mon Sep 17 00:00:00 2001 From: Kimmo Jaatinen Date: Fri, 23 Feb 2018 17:12:41 +0200 Subject: [PATCH 2/3] - added missing include_directories in meson.build for easier dependency handling --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 653ea25..add835a 100644 --- a/meson.build +++ b/meson.build @@ -1,9 +1,9 @@ project('murmur3', 'c', version: '0.1') - +inc_murmur3 = include_directories('.') lib_murmur3 = shared_library('murmur3', 'murmur3.c') -exe_example = executable('example', 'example.c', link_with: lib_murmur3) +exe_example = executable('example', 'example.c', include_directories: inc_murmur3, link_with: lib_murmur3) exe_test1 = executable('test1', 'test.c', link_with: lib_murmur3) test('Unit test', exe_test1, is_parallel: false) From 17bc603e1e9a351356e9f612cf236f27bb30bd7f Mon Sep 17 00:00:00 2001 From: Kimmo Jaatinen Date: Wed, 21 Mar 2018 09:47:52 +0200 Subject: [PATCH 3/3] Fixed missing dependency declaration in meson.build --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index add835a..755cbaa 100644 --- a/meson.build +++ b/meson.build @@ -2,6 +2,7 @@ project('murmur3', 'c', version: '0.1') inc_murmur3 = include_directories('.') lib_murmur3 = shared_library('murmur3', 'murmur3.c') +dep_murmur3 = declare_dependency(include_directories: inc_murmur3, link_with: lib_murmur3) exe_example = executable('example', 'example.c', include_directories: inc_murmur3, link_with: lib_murmur3)