diff options
author | 2017-06-14 15:52:45 +0300 | |
---|---|---|
committer | 2017-06-14 15:52:45 +0300 | |
commit | f8b02b46dca8f3a2689104127bbe1c0736705ff4 (patch) | |
tree | d214fb520e68d8a79e94c61842bc9dd1099e151b /meson.build | |
parent | 49c320f951b40ed3c722ceb53c320db98fcb7ecc (diff) | |
download | librin-f8b02b46dca8f3a2689104127bbe1c0736705ff4.tar.gz librin-f8b02b46dca8f3a2689104127bbe1c0736705ff4.tar.bz2 librin-f8b02b46dca8f3a2689104127bbe1c0736705ff4.zip |
meson: drop automake support && add initial meson support.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..9c0e16d --- /dev/null +++ b/meson.build @@ -0,0 +1,33 @@ +project('librin', 'c', + license : 'LGPL2.1', + default_options : 'c_std=gnu11') + +inc = include_directories('include') + +if get_option('gpio') + thread_dep = dependency('threads') +else + thread_dep = [] +endif + +deps = thread_dep + +subdir('include') +subdir('src') + +if ((not get_option('static')) and (not get_option('shared'))) + library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps) +endif + +if get_option('static') + static_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps) +endif + +if get_option('shared') + shared_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps) +endif + + +if get_option('tests') + subdir('test') +endif |