31 lines
1,012 B
Meson
31 lines
1,012 B
Meson
project('libxkbfile', 'c',
|
|
version: '1.1.3',
|
|
meson_version: '>= 0.57.0',
|
|
license: 'MIT'
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
cc_conf = configuration_data({
|
|
'HAVE_STRCASECMP': cc.has_function('strcasecmp') ? '1' : false,
|
|
'HAVE_STRNDUP': cc.has_function('strndup') and
|
|
cc.has_header_symbol('string.h', 'strndup') ? '1' : false,
|
|
'HAVE_UNLOCKED_STDIO': cc.has_function('getc_unlocked') ? '1' : false
|
|
})
|
|
configure_file(output: 'config.h',
|
|
configuration: cc_conf)
|
|
|
|
pc_conf = configuration_data({
|
|
'prefix': get_option('prefix'),
|
|
'exec_prefix': '${prefix}',
|
|
'libdir': '${exec_prefix}' / get_option('libdir'),
|
|
'includedir': '${prefix}' / get_option('includedir'),
|
|
'PACKAGE_VERSION': meson.project_version()
|
|
})
|
|
configure_file(output: 'xkbfile.pc',
|
|
input: 'xkbfile.pc.in',
|
|
install: true,
|
|
install_dir: get_option('libdir') / 'pkgconfig',
|
|
configuration: pc_conf)
|
|
|
|
subdir('src')
|