1project('appres', 'c', 2 version : '1.0.7', 3 license : 'MIT', 4 default_options: ['warning_level=3'], 5) 6 7cc = meson.get_compiler('c') 8 9prefix = get_option('prefix') 10 11package_string = '@0@ @1@'.format(meson.project_name(), meson.project_version()) 12 13conf_data = configuration_data() 14conf_data.set('PACKAGE_STRING', '"@0@"'.format(package_string)) 15configure_file(output : 'config.h', configuration : conf_data) 16add_global_arguments('-DHAVE_CONFIG_H', language : 'c') 17 18x11_dep = dependency('x11', required: true) 19xmuu_dep = dependency('xt', required: true) 20xproto_dep = dependency('xproto', required: true, version: '>= 7.0.17') 21 22sources = ['appres.c'] 23executable('appres', sources, 24 dependencies: [x11_dep, xmuu_dep, xproto_dep], 25 install: true) 26 27man = join_paths(prefix, get_option('mandir')) 28 29man_conf = configuration_data() 30man_conf.set('PACKAGE_STRING', package_string) 31man_conf.set('APP_MAN_SUFFIX', '1') 32man_conf.set('MISC_MAN_SUFFIX', '7') 33man_conf.set('XORG_MAN_PAGE', 'X Version 11') 34 35install_man(configure_file( 36 input: 'man/appres.man', 37 output: 'appres.1', 38 install_dir: join_paths(man, 'man1'), 39 configuration: man_conf 40)) 41