Gradience/gradience/meson.build

80 lines
1.9 KiB
Meson
Raw Normal View History

configure_file(
2022-08-18 16:50:25 +00:00
input: 'gradience.in',
output: 'gradience',
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',
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,
'TRANSLATE_URL': TRANSLATE_URL,
'PKGDATA_DIR': PKGDATA_DIR,
}),
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())
run_target('run',
command: [launcher]
)
# Install sources
2022-08-18 16:50:25 +00:00
gradience_sources = [
'__init__.py',
'settings_schema.py',
'main.py',
2022-08-10 15:51:55 +00:00
'plugins_list.py',
]
2022-08-18 16:50:25 +00:00
PY_INSTALLDIR.install_sources(gradience_sources, subdir: 'gradience')
# 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',
]
PY_INSTALLDIR.install_sources(gradience_utils, subdir: 'gradience/utils')
# Install ui Python modules
gradience_ui_modules = [
'ui/error_list_row.py',
'ui/palette_shades.py',
'ui/option_row.py',
'ui/window.py',
'ui/app_type_dialog.py',
'ui/custom_css_group.py',
'ui/presets_manager_window.py',
'ui/preferences_window.py',
'ui/plugin_row.py',
'ui/explore_preset_row.py',
'ui/builtin_preset_row.py',
'ui/preset_row.py',
'ui/welcome_window.py',
'ui/repo_row.py',
'ui/no_plugin_window.py',
'ui/share_window.py',
]
PY_INSTALLDIR.install_sources(gradience_ui_modules, subdir: 'gradience/ui')