2022-07-17 11:46:05 +00:00
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
blueprints = custom_target('blueprints',
|
|
|
|
input: files(
|
2022-07-21 19:03:18 +00:00
|
|
|
'ui/error.blp',
|
|
|
|
'ui/palette_shades.blp',
|
2022-07-17 11:46:05 +00:00
|
|
|
'ui/option.blp',
|
|
|
|
'ui/window.blp',
|
2022-07-22 12:29:32 +00:00
|
|
|
'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',
|
2022-07-17 11:46:05 +00:00
|
|
|
),
|
|
|
|
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',
|
2022-07-17 11:46:05 +00:00
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
2022-08-13 10:24:16 +00:00
|
|
|
install_dir: PKGDATA_DIR,
|
2022-07-17 11:46:05 +00:00
|
|
|
dependencies: blueprints,
|
|
|
|
)
|
|
|
|
|
|
|
|
configure_file(
|
2022-08-18 16:50:25 +00:00
|
|
|
input: 'gradience.in',
|
|
|
|
output: 'gradience',
|
2022-07-17 11:46:05 +00:00
|
|
|
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',
|
2022-08-13 10:24:16 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2022-08-12 21:17:49 +00:00
|
|
|
launcher = join_paths(meson.project_build_root(), 'src', meson.project_name())
|
|
|
|
|
|
|
|
run_target('run',
|
|
|
|
command: [launcher]
|
|
|
|
)
|
|
|
|
|
2022-08-13 10:24:16 +00:00
|
|
|
# Install sources
|
2022-08-18 16:50:25 +00:00
|
|
|
gradience_sources = [
|
2022-07-17 11:46:05 +00:00
|
|
|
'__init__.py',
|
2022-07-26 13:31:16 +00:00
|
|
|
'settings_schema.py',
|
2022-07-17 11:46:05 +00:00
|
|
|
'main.py',
|
2022-07-21 19:03:18 +00:00
|
|
|
'error.py',
|
|
|
|
'palette_shades.py',
|
2022-08-10 15:51:55 +00:00
|
|
|
'plugin.py',
|
|
|
|
'plugins_list.py',
|
|
|
|
'setting.py',
|
2022-07-17 11:46:05 +00:00
|
|
|
'option.py',
|
2022-08-14 18:14:38 +00:00
|
|
|
'run_async.py',
|
2022-07-17 11:46:05 +00:00
|
|
|
'window.py',
|
2022-07-22 12:29:32 +00:00
|
|
|
'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-07-17 11:46:05 +00:00
|
|
|
]
|
2022-08-18 16:50:25 +00:00
|
|
|
|
|
|
|
PY_INSTALLDIR.install_sources(gradience_sources, subdir: 'gradience')
|
|
|
|
#install_data(gradience_sources, install_dir: MODULE_DIR)
|