Files
cthulhu/src/cthulhu/meson.build
T

188 lines
4.5 KiB
Meson

# Python sources to install
cthulhu_python_sources = files([
'__init__.py',
'acss.py',
'action_presenter.py',
'ax_collection.py',
'ax_component.py',
'ax_document.py',
'ax_document_selection.py',
'ax_event_synthesizer.py',
'ax_hypertext.py',
'ax_object.py',
'ax_selection.py',
'ax_table.py',
'ax_text.py',
'ax_utilities_application.py',
'ax_utilities.py',
'ax_utilities_collection.py',
'ax_utilities_debugging.py',
'ax_utilities_event.py',
'ax_utilities_relation.py',
'ax_utilities_role.py',
'ax_utilities_state.py',
'ax_value.py',
'bookmarks.py',
'braille.py',
'braille_generator.py',
'braille_rolenames.py',
'brlmon.py',
'brltablenames.py',
'caret_navigation.py',
'chat.py',
'chnames.py',
'cmdnames.py',
'colornames.py',
'compositor_state_adapter.py',
'compositor_state_types.py',
'compositor_state_wayland.py',
'common_keyboardmap.py',
'cthulhuVersion.py',
'cthulhu_modifier_manager.py',
'cthulhu_state.py',
'date_and_time_presenter.py',
'dbus_service.py',
'debug.py',
'desktop_keyboardmap.py',
'dynamic_api_manager.py',
'event_manager.py',
'find.py',
'flat_review.py',
'flat_review_presenter.py',
'formatting.py',
'focus_manager.py',
'generator.py',
'gsettings_migrator.py',
'gsettings_registry.py',
'gstreamer_support.py',
'guilabels.py',
'highlighter.py',
'input_event.py',
'input_event_manager.py',
'keybindings.py',
'keynames.py',
'label_inference.py',
'laptop_keyboardmap.py',
'learn_mode_presenter.py',
'liveregions.py',
'logger.py',
'mako_notification_monitor.py',
'mathsymbols.py',
'messages.py',
'mouse_review.py',
'notification_presenter.py',
'object_navigator.py',
'object_properties.py',
'cthulhu.py',
'cthulhu_gtkbuilder.py',
'cthulhu_gui_find.py',
'cthulhu_gui_navlist.py',
'cthulhu_gui_prefs.py',
'cthulhu_gui_profile.py',
'phonnames.py',
'plugin.py',
'plugin_system_manager.py',
'pronunciation_dict.py',
'punctuation_settings.py',
'resource_manager.py',
'role_keys.py',
'script.py',
'script_manager.py',
'script_utilities.py',
'settings.py',
'settings_manager.py',
'signal_manager.py',
'sleep_mode_manager.py',
'sound.py',
'sound_helper.py',
'sound_sink.py',
'sound_generator.py',
'sound_theme_manager.py',
'speech_and_verbosity_manager.py',
'speech_history.py',
'speech.py',
'spellcheck.py',
'speechdispatcherfactory.py',
'speech_generator.py',
'speechserver.py',
'piperfactory.py',
'piper_voice_manager.py',
'piper_audio_player.py',
'structural_navigation.py',
'text_attribute_names.py',
'translation_context.py',
'translation_manager.py',
'tutorialgenerator.py',
'typing_echo_presenter.py',
'wnck_support.py',
'where_am_i_presenter.py',
])
# Note: Main executable (cthulhu) is installed from src/cthulhu.py
# Install Python sources
python3.install_sources(
cthulhu_python_sources,
subdir: 'cthulhu'
)
# Install generated Python sources
cthulhu_bin_py = configure_file(
input: 'cthulhu_bin.py.in',
output: 'cthulhu_bin.py',
configuration: {
'PLATFORM_PATH': ':/usr/bin:/usr/sbin:/bin',
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
'libdir': get_option('libdir'),
'datadir': get_option('datadir'),
'PYTHON': python3.full_path(),
'PYTHON_PREFIX': python3.get_install_dir(),
'pythondir': python3.get_install_dir(),
}
)
cthulhu_i18n_py = configure_file(
input: 'cthulhu_i18n.py.in',
output: 'cthulhu_i18n.py',
configuration: {
'GETTEXT_PACKAGE': 'cthulhu',
'prefix': get_option('prefix'),
'datadir': get_option('datadir'),
'localedir': get_option('datadir') / 'locale',
}
)
cthulhu_platform_py = configure_file(
input: 'cthulhu_platform.py.in',
output: 'cthulhu_platform.py',
configuration: {
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
'libdir': get_option('libdir'),
'datadir': get_option('prefix') / get_option('datadir'),
'sysconfdir': get_option('sysconfdir'),
'localstatedir': get_option('localstatedir'),
'PACKAGE': 'cthulhu',
'REVISION': run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip(),
'LOUIS_TABLE_DIR': '/usr/share/liblouis/tables',
}
)
python3.install_sources(
[cthulhu_bin_py, cthulhu_i18n_py, cthulhu_platform_py],
subdir: 'cthulhu'
)
# UI files
install_data(
['cthulhu-find.ui', 'cthulhu-setup.ui'],
install_dir: get_option('datadir') / 'cthulhu' / 'ui'
)
# Subdirectories
subdir('backends')
subdir('scripts')
subdir('wayland_protocols')
subdir('plugins')