2022-07-17 11:46:05 +00:00
|
|
|
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_dir: get_option('bindir')
|
|
|
|
)
|
|
|
|
|
2022-09-13 16:29:43 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'gradience.in',
|
|
|
|
output: 'local-gradience',
|
|
|
|
configuration: local_conf
|
|
|
|
)
|
|
|
|
|
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-23 17:23:27 +00:00
|
|
|
configuration: configuration_data({
|
|
|
|
'APP_ID': APPLICATION_ID,
|
|
|
|
'RELEASE_VER': meson.project_version(),
|
|
|
|
'VERSION': meson.project_version() + VERSION_SUFFIX,
|
|
|
|
'BUILD_TYPE': get_option('buildtype'),
|
|
|
|
'PROJECT_URL': PROJECT_URL,
|
|
|
|
'BUGTRACKER_URL': BUGTRACKER_URL,
|
|
|
|
'HELP_URL': HELP_URL,
|
2022-09-22 12:33:02 +00:00
|
|
|
'TRANSLATE_URL': TRANSLATE_URL,
|
|
|
|
'PKGDATA_DIR': PKGDATA_DIR,
|
2022-08-23 17:23:27 +00:00
|
|
|
}),
|
2022-08-13 10:24:16 +00:00
|
|
|
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-09-13 16:29:43 +00:00
|
|
|
launcher = join_paths(meson.project_build_root(), 'gradience', 'local-' + meson.project_name())
|
2022-08-12 21:17:49 +00:00
|
|
|
|
|
|
|
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-08-10 15:51:55 +00:00
|
|
|
'plugins_list.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')
|
2022-08-23 17:38:09 +00:00
|
|
|
|
2022-10-10 19:30:39 +00:00
|
|
|
# Install utility modules
|
|
|
|
gradience_utils = [
|
|
|
|
'utils/__init__.py',
|
|
|
|
'utils/custom_presets.py',
|
|
|
|
'utils/flatpak_overrides.py',
|
|
|
|
'utils/utils.py',
|
|
|
|
'utils/run_async.py',
|
|
|
|
'utils/css.py',
|
|
|
|
'utils/preset.py',
|
|
|
|
'utils/repo.py',
|
2022-08-23 17:38:09 +00:00
|
|
|
]
|
2022-10-10 19:30:39 +00:00
|
|
|
PY_INSTALLDIR.install_sources(gradience_utils, subdir: 'gradience/utils')
|
2022-10-10 19:20:35 +00:00
|
|
|
|
2022-10-10 19:30:39 +00:00
|
|
|
# Install ui Python modules
|
2022-10-10 19:20:35 +00:00
|
|
|
gradience_ui_modules = [
|
2022-10-10 20:34:50 +00:00
|
|
|
'ui/error_list_row.py',
|
2022-10-10 19:20:35 +00:00
|
|
|
'ui/palette_shades.py',
|
2022-10-10 20:34:50 +00:00
|
|
|
'ui/option_row.py',
|
2022-10-10 19:20:35 +00:00
|
|
|
'ui/window.py',
|
|
|
|
'ui/app_type_dialog.py',
|
|
|
|
'ui/custom_css_group.py',
|
|
|
|
'ui/presets_manager_window.py',
|
2022-10-10 20:34:50 +00:00
|
|
|
'ui/preferences_window.py',
|
2022-10-10 19:20:35 +00:00
|
|
|
'ui/plugin_row.py',
|
|
|
|
'ui/explore_preset_row.py',
|
|
|
|
'ui/builtin_preset_row.py',
|
|
|
|
'ui/preset_row.py',
|
2022-10-10 20:34:50 +00:00
|
|
|
'ui/welcome_window.py',
|
2022-10-10 19:20:35 +00:00
|
|
|
'ui/repo_row.py',
|
2022-10-10 20:34:50 +00:00
|
|
|
'ui/no_plugin_window.py',
|
2022-10-10 19:20:35 +00:00
|
|
|
'ui/share_window.py',
|
|
|
|
]
|
|
|
|
PY_INSTALLDIR.install_sources(gradience_ui_modules, subdir: 'gradience/ui')
|