From: Andrea Zagli Date: Wed, 24 Aug 2016 15:23:50 +0000 (+0200) Subject: Added project files for meson build system. X-Git-Tag: v0.0.2~1^2~10 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=c0ab6d7befdef75cc3af265170d9e607f91f2098;p=libzakutils Added project files for meson build system. --- diff --git a/.gitignore b/.gitignore index 5b43953..5781664 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,5 @@ intltool-* Rules-quot *.exe *.csv -tests/format_money \ No newline at end of file +tests/format_money +build/ \ No newline at end of file diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..78f119b --- /dev/null +++ b/meson.build @@ -0,0 +1,13 @@ +project('libzakutils', 'c', + version: '0.0.1') + +add_global_link_arguments('-lm', language: 'c') + +glib_dep = dependency('glib-2.0') +gobject_dep = dependency('gobject-2.0') +gio_dep = dependency('gio-2.0') + +inc = include_directories('src') + +subdir('src') +subdir('tests') \ No newline at end of file diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..031ec9a --- /dev/null +++ b/src/meson.build @@ -0,0 +1,9 @@ +install_headers(['libzakutils.h', 'datetime.h', 'generic.h'], + subdir: 'libzakutils') + +libzakutils_sources = ['datetime.c', 'generic.c'] + +libzakutils = shared_library ('zakutils', + libzakutils_sources, + dependencies: [glib_dep, gobject_dep, gio_dep], + install: true) \ No newline at end of file diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..542edf2 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,4 @@ +format_money_exe = executable('format_money', 'format_money.c', + include_directories: inc, + dependencies: [glib_dep, gobject_dep, gio_dep], + link_with: libzakutils) \ No newline at end of file