2020-09-05 20:00:11 +02:00
|
|
|
project('pdf-simple-sign', 'cpp', default_options : ['cpp_std=c++11'],
|
2020-09-06 05:16:24 +02:00
|
|
|
version : '1.1.1')
|
2020-09-05 20:00:11 +02:00
|
|
|
|
|
|
|
conf = configuration_data()
|
2021-11-06 11:42:57 +01:00
|
|
|
conf.set_quoted('PROJECT_NAME', meson.project_name())
|
|
|
|
conf.set_quoted('PROJECT_VERSION', meson.project_version())
|
2020-09-05 20:00:11 +02:00
|
|
|
configure_file(output : 'config.h', configuration : conf)
|
|
|
|
|
2017-11-08 16:07:39 +01:00
|
|
|
cryptodep = dependency('libcrypto')
|
2017-12-02 23:01:48 +01:00
|
|
|
executable('pdf-simple-sign', 'pdf-simple-sign.cpp',
|
|
|
|
install : true,
|
|
|
|
dependencies : cryptodep)
|
2020-09-05 20:03:10 +02:00
|
|
|
|
|
|
|
asciidoctor = find_program('asciidoctor')
|
|
|
|
foreach page : ['pdf-simple-sign']
|
|
|
|
custom_target('manpage for ' + page,
|
|
|
|
input: page + '.adoc', output: page + '.1',
|
|
|
|
command: [asciidoctor, '-b', 'manpage',
|
|
|
|
'-a', 'release-version=' + meson.project_version(),
|
|
|
|
'@INPUT@', '-o', '@OUTPUT@'],
|
|
|
|
install: true,
|
|
|
|
install_dir: join_paths(get_option('mandir'), 'man1'))
|
|
|
|
endforeach
|