Gradience/src/meson.build

66 lines
1.4 KiB
Meson
Raw Normal View History

gnome = import('gnome')
blueprints = custom_target('blueprints',
input: files(
'ui/error.blp',
'ui/palette_shades.blp',
'ui/option.blp',
'ui/window.blp',
'ui/app_type_dialog.blp',
2022-07-24 17:46:37 +00:00
'ui/custom_css_group.blp',
2022-08-15 13:40:21 +00:00
'ui/presets_manager_window.blp',
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
)
2022-08-18 16:50:25 +00:00
gnome.compile_resources('gradience',
'gradience.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: PKGDATA_DIR,
dependencies: blueprints,
)
configure_file(
2022-08-18 16:50:25 +00:00
input: 'gradience.in',
output: 'gradience',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)
2022-08-11 16:44:51 +00:00
configure_file(
2022-08-13 10:27:59 +00:00
input: 'constants.py.in',
output: 'constants.py',
configuration: conf,
install: true,
2022-08-18 16:50:25 +00:00
install_dir: PY_INSTALLDIR.get_install_dir() / 'gradience',
2022-08-11 16:44:51 +00:00
)
launcher = join_paths(meson.project_build_root(), 'src', meson.project_name())
run_target('run',
command: [launcher]
)
# Install sources
2022-08-18 16:50:25 +00:00
gradience_sources = [
'__init__.py',
'settings_schema.py',
'main.py',
'error.py',
'palette_shades.py',
2022-08-10 15:51:55 +00:00
'plugin.py',
'plugins_list.py',
'setting.py',
'option.py',
2022-08-14 18:14:38 +00:00
'run_async.py',
'window.py',
'app_type_dialog.py',
2022-07-24 17:46:37 +00:00
'custom_css_group.py',
2022-08-15 13:40:21 +00:00
'presets_manager_window.py',
]
2022-08-18 16:50:25 +00:00
PY_INSTALLDIR.install_sources(gradience_sources, subdir: 'gradience')
#install_data(gradience_sources, install_dir: MODULE_DIR)