diff options
author | David Robillard <d@drobilla.net> | 2021-08-08 14:30:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | 62a515492994a0320b1c45e87b4360adbf1ae9ba (patch) | |
tree | 4a12b44ded17f5a3d97e447449379c19dc1da53b /meson.build | |
parent | 5aa146e1ce58d295b5f45446bbbbdbb30c8e557d (diff) | |
download | serd-62a515492994a0320b1c45e87b4360adbf1ae9ba.tar.gz serd-62a515492994a0320b1c45e87b4360adbf1ae9ba.tar.bz2 serd-62a515492994a0320b1c45e87b4360adbf1ae9ba.zip |
Move serdi to tools subdirectory
This separates the command-line tool code from the library implementation.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/meson.build b/meson.build index 8248f576..bddb7392 100644 --- a/meson.build +++ b/meson.build @@ -196,19 +196,8 @@ pkg.generate( description: 'A lightweight library for working with RDF') # Build serdi command line utility -if get_option('utils') - - tool_link_args = [] - if get_option('static') - tool_link_args += ['-static'] - endif - - serdi = executable('serdi', - ['src/serdi.c', 'src/console.c'], - c_args: c_warnings + platform_args + prog_args, - link_args: tool_link_args, - install: true, - dependencies: serd_dep) +if get_option('tools') + subdir('tools') if not get_option('docs').disabled() install_man('doc/serdi.1') @@ -228,14 +217,14 @@ endif if not meson.is_subproject() and meson.version().version_compare('>=0.53.0') summary('Tests', get_option('tests'), bool_yn: true) - summary('Utilities', get_option('utils'), bool_yn: true) + summary('Tools', get_option('tools'), bool_yn: true) summary('Install prefix', get_option('prefix')) summary('Headers', get_option('prefix') / get_option('includedir')) summary('Libraries', get_option('prefix') / get_option('libdir')) - if get_option('utils') + if get_option('tools') summary('Executables', get_option('prefix') / get_option('bindir')) summary('Man pages', get_option('prefix') / get_option('mandir')) endif |