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.7'), 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', meson.project_name()) 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( meson.project_name(), sourcefiles, resources, dependencies : flashcards_deps, install : true ) gnome.post_install( glib_compile_schemas : true, gtk_update_icon_cache : true, update_desktop_database : true, )