audrey/meson.build

48 lines
1.1 KiB
Meson
Raw Normal View History

2024-10-15 20:51:13 +00:00
project(
'audrey',
['c', 'vala'],
version: '0.1.0', # AUDREY_VERSION
meson_version: '>= 1.0.0',
default_options: ['warning_level=0', 'werror=false'],
2024-10-06 11:21:53 +00:00
)
i18n = import('i18n')
gnome = import('gnome')
cc = meson.get_compiler('c')
2024-10-06 11:21:53 +00:00
valac = meson.get_compiler('vala')
srcdir = meson.project_source_root() / 'src'
config_h = configuration_data()
2024-10-15 20:51:13 +00:00
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
2024-10-12 20:52:29 +00:00
config_h.set_quoted('GETTEXT_PACKAGE', 'audrey')
2024-10-06 11:21:53 +00:00
config_h.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
configure_file(output: 'config.h', configuration: config_h)
2024-10-15 20:51:13 +00:00
config_dep = valac.find_library('config', dirs: srcdir)
2024-10-06 11:21:53 +00:00
config_inc = include_directories('.')
2024-10-15 20:51:13 +00:00
add_project_arguments(
'-DGETTEXT_PACKAGE="' + meson.project_name() + '"',
language: 'c',
)
2024-10-06 11:21:53 +00:00
add_project_arguments(
2024-10-18 00:39:17 +00:00
cc.get_supported_arguments(
['-Wno-tautological-pointer-compare', '-Wno-unused-value'],
),
language: 'c',
)
2024-10-06 11:21:53 +00:00
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
2024-10-15 20:51:13 +00:00
glib_compile_schemas: true,
gtk_update_icon_cache: true,
2024-10-06 11:21:53 +00:00
update_desktop_database: true,
)