mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 07:51:38 +01:00
41 lines
964 B
Meson
41 lines
964 B
Meson
project('flashcards', 'c',
|
|
version: '1.0.0',
|
|
meson_version: '>= 1.0.0',
|
|
default_options: ['warning_level=2', 'c_std=gnu23'],
|
|
)
|
|
|
|
flashcards_deps = [
|
|
dependency('gtk4'),
|
|
dependency('libadwaita-1', version: '>= 1.6'),
|
|
dependency('sqlite3'),
|
|
]
|
|
|
|
gnome = import('gnome')
|
|
i18n = import('i18n')
|
|
|
|
subdir('src')
|
|
subdir('resources')
|
|
subdir('po')
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
config_h = configuration_data()
|
|
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
config_h.set_quoted('GETTEXT_PACKAGE', 'flashcards')
|
|
config_h.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
|
|
configure_file(output: 'config.h', configuration: config_h)
|
|
add_project_arguments(['-I' + meson.project_build_root()], language: 'c')
|
|
|
|
executable('flashcards',
|
|
sourcefiles,
|
|
resources,
|
|
dependencies: flashcards_deps,
|
|
install: true
|
|
)
|
|
|
|
gnome.post_install(
|
|
glib_compile_schemas: true,
|
|
gtk_update_icon_cache: true,
|
|
update_desktop_database: true,
|
|
)
|