Update project structure

This commit is contained in:
kramo
2023-02-19 20:06:45 +01:00
parent e87e96f3c6
commit a0a67fd2ca
10 changed files with 24 additions and 26 deletions

View File

@@ -1,25 +1,4 @@
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'cartridges')
gnome = import('gnome')
blueprints = custom_target('blueprints',
input: files(
'gtk/help-overlay.blp',
'window.blp',
'gtk/game.blp',
'gtk/preferences.blp'
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
)
gnome.compile_resources('cartridges',
'cartridges.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
dependencies: blueprints,
)
python = import('python')