mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 06:41:38 +01:00
latest changes
This commit is contained in:
30
meson.build
30
meson.build
@@ -1,12 +1,13 @@
|
||||
project('flashcards', 'c',
|
||||
version: '1.0.0',
|
||||
meson_version: '>= 1.0.0',
|
||||
default_options: ['warning_level=2', 'c_std=gnu23'],
|
||||
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('libadwaita-1', version : '>= 1.7'),
|
||||
dependency('sqlite3'),
|
||||
]
|
||||
|
||||
@@ -21,20 +22,21 @@ 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('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')
|
||||
configure_file(output : 'config.h', configuration : config_h)
|
||||
add_project_arguments(['-I' + meson.project_build_root()], language : 'c')
|
||||
|
||||
executable('flashcards',
|
||||
executable(
|
||||
meson.project_name(),
|
||||
sourcefiles,
|
||||
resources,
|
||||
dependencies: flashcards_deps,
|
||||
install: true
|
||||
dependencies : flashcards_deps,
|
||||
install : true
|
||||
)
|
||||
|
||||
gnome.post_install(
|
||||
glib_compile_schemas: true,
|
||||
gtk_update_icon_cache: true,
|
||||
update_desktop_database: true,
|
||||
glib_compile_schemas : true,
|
||||
gtk_update_icon_cache : true,
|
||||
update_desktop_database : true,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user