Bavarder/src/meson.build

58 lines
1.2 KiB
Meson
Raw Normal View History

2023-04-26 18:22:27 +05:30
gnome = import('gnome')
python = import('python')
2023-07-19 19:29:17 +05:30
blueprints = custom_target('blueprints',
input: files(
'gtk/help-overlay.blp',
2023-08-03 18:03:54 +05:30
'views/export_dialog.blp',
2023-07-19 19:29:17 +05:30
'views/preferences_window.blp',
2023-08-03 18:03:54 +05:30
'views/save_dialog.blp',
2023-07-19 19:29:17 +05:30
'views/window.blp',
'widgets/thread_item.blp',
'widgets/item.blp',
'widgets/model_item.blp',
'widgets/download_row.blp',
'widgets/code_block.blp',
'providers/provider_item.blp',
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@']
)
gnome.compile_resources('bavarder',
'bavarder.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: PKGDATA_DIR,
dependencies: blueprints
)
2023-04-26 18:22:27 +05:30
configure_file(
input: 'bavarder.in',
output: 'bavarder',
configuration: conf,
install: true,
install_dir: get_option('bindir'),
install_mode: 'r-xr--r--'
)
configure_file(
input: 'constants.py.in',
output: 'constants.py',
2023-04-29 15:01:18 +05:30
configuration: conf,
2023-04-26 18:22:27 +05:30
install: true,
2023-07-19 19:29:17 +05:30
install_dir: MODULE_DIR
2023-04-26 18:22:27 +05:30
)
bavarder_sources = [
'__init__.py',
'main.py',
2023-07-19 19:29:17 +05:30
'threading.py'
2023-04-26 18:22:27 +05:30
]
2023-07-19 19:29:17 +05:30
PY_INSTALLDIR.install_sources(bavarder_sources, subdir: MODULE_DIR)
2023-04-30 20:01:54 +05:30
2023-05-27 05:28:15 +05:30
subdir('views')
2023-07-19 19:29:17 +05:30
subdir('widgets')
subdir('providers')