2021-02-09 17:37:26 +02:00
|
|
|
project('koto', 'c',
|
|
|
|
version: '0.1.0',
|
2021-02-16 23:18:23 +02:00
|
|
|
meson_version: '>= 0.57.0',
|
2021-05-27 12:56:36 +03:00
|
|
|
default_options: [
|
2021-02-09 17:37:26 +02:00
|
|
|
'c_std=gnu11',
|
2021-05-27 12:56:36 +03:00
|
|
|
'warning_level=2',
|
2021-05-07 16:45:57 +03:00
|
|
|
'werror=true',
|
2021-02-09 17:37:26 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n = import('i18n')
|
2021-02-16 23:18:23 +02:00
|
|
|
gnome = import('gnome')
|
2021-02-09 17:37:26 +02:00
|
|
|
|
|
|
|
config_h = configuration_data()
|
|
|
|
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
|
|
config_h.set_quoted('GETTEXT_PACKAGE', 'koto')
|
|
|
|
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
|
|
|
|
configure_file(
|
|
|
|
output: 'koto-config.h',
|
|
|
|
configuration: config_h,
|
|
|
|
)
|
2021-05-27 12:56:36 +03:00
|
|
|
|
|
|
|
c = meson.get_compiler('c')
|
|
|
|
toml_dep = c.find_library('toml', required: true)
|
2021-02-09 17:37:26 +02:00
|
|
|
|
2021-02-25 18:15:36 +02:00
|
|
|
subdir('theme')
|
2021-02-09 17:37:26 +02:00
|
|
|
subdir('data')
|
|
|
|
subdir('src')
|
|
|
|
subdir('po')
|
|
|
|
|
2021-02-16 23:18:23 +02:00
|
|
|
gnome.post_install(
|
|
|
|
glib_compile_schemas: true,
|
2021-02-24 20:17:18 +02:00
|
|
|
gtk_update_icon_cache: false
|
2021-02-16 23:18:23 +02:00
|
|
|
)
|
2021-02-09 17:37:26 +02:00
|
|
|
meson.add_install_script('build-aux/meson/postinstall.py')
|