Files
cartridges/src/meson.build
2022-12-26 14:38:37 +01:00

58 lines
1.4 KiB
Meson

pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'gameshelf')
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('gameshelf',
'gameshelf.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
dependencies: blueprints,
)
python = import('python')
conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').path())
conf.set('VERSION', meson.project_version())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir)
configure_file(
input: 'gameshelf.in',
output: 'gameshelf',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)
gameshelf_sources = [
'__init__.py',
'main.py',
'window.py',
'preferences.py',
'game.py',
'utils/steam_parser.py',
'utils/run_command.py',
'utils/get_games.py',
'utils/get_cover.py',
'utils/save_games.py',
'utils/save_cover.py',
'utils/toggle_hidden.py',
'utils/create_dialog.py',
'utils/create_details_window.py'
]
install_data(gameshelf_sources, install_dir: moduledir)