Commit d3fe98d8 authored by Christian Hergert's avatar Christian Hergert

build: use subdirectories for meson.build files

This allows us to keep the build information much closer to the code
implementation. Jumping between the libide/meson.build and invidivual
sources was getting cumbersome and prone to error.
parent 64164bde
......@@ -95,68 +95,62 @@ libgstyle_dep = declare_dependency(
include_directories: include_directories('.'),
)
if get_option('with_introspection')
libgstyle_introspection_sources = [
'gstyle-cielab.h',
'gstyle-cielab.c',
'gstyle-color.h',
'gstyle-color.c',
'gstyle-color-component.h',
'gstyle-color-component.c',
'gstyle-color-convert.h',
'gstyle-color-convert.c',
'gstyle-color-filter.h',
'gstyle-color-filter.c',
'gstyle-color-item.h',
'gstyle-color-item.c',
'gstyle-color-panel.h',
'gstyle-color-panel.c',
'gstyle-color-plane.h',
'gstyle-color-plane.c',
'gstyle-color-scale.h',
'gstyle-color-scale.c',
'gstyle-color-widget.h',
'gstyle-color-widget.c',
'gstyle-eyedropper.h',
'gstyle-eyedropper.c',
'gstyle-hsv.h',
'gstyle-hsv.c',
'gstyle-palette.h',
'gstyle-palette.c',
'gstyle-palette-widget.h',
'gstyle-palette-widget.c',
'gstyle-slidein.h',
'gstyle-slidein.c',
'gstyle-xyz.h',
'gstyle-xyz.c',
]
libgstyle_introspection_sources = [
'gstyle-cielab.h',
'gstyle-cielab.c',
'gstyle-color.h',
'gstyle-color.c',
'gstyle-color-component.h',
'gstyle-color-component.c',
'gstyle-color-convert.h',
'gstyle-color-convert.c',
'gstyle-color-filter.h',
'gstyle-color-filter.c',
'gstyle-color-item.h',
'gstyle-color-item.c',
'gstyle-color-panel.h',
'gstyle-color-panel.c',
'gstyle-color-plane.h',
'gstyle-color-plane.c',
'gstyle-color-scale.h',
'gstyle-color-scale.c',
'gstyle-color-widget.h',
'gstyle-color-widget.c',
'gstyle-eyedropper.h',
'gstyle-eyedropper.c',
'gstyle-hsv.h',
'gstyle-hsv.c',
'gstyle-palette.h',
'gstyle-palette.c',
'gstyle-palette-widget.h',
'gstyle-palette-widget.c',
'gstyle-slidein.h',
'gstyle-slidein.c',
'gstyle-xyz.h',
'gstyle-xyz.c',
]
libgstyle_gir = gnome.generate_gir(libgstyle,
sources: libgstyle_introspection_sources,
nsversion: '1.0',
namespace: 'Gstyle',
symbol_prefix: 'gstyle',
libgstyle_gir = gnome.generate_gir(libgstyle,
sources: libgstyle_introspection_sources,
nsversion: '1.0',
namespace: 'Gstyle',
symbol_prefix: 'gstyle',
identifier_prefix: 'Gstyle',
includes: ['Gdk-3.0', 'Gio-2.0', 'Gtk-3.0', 'GtkSource-3.0'],
install: true,
install_dir_gir: pkggirdir,
install_dir_typelib: pkgtypelibdir,
extra_args: [
'--c-include=gstyle-private.h',
],
)
if get_option('with_vapi')
includes: ['Gdk-3.0', 'Gio-2.0', 'Gtk-3.0', 'GtkSource-3.0'],
install: true,
install_dir_gir: pkggirdir,
install_dir_typelib: pkgtypelibdir,
extra_args: [ '--c-include=gstyle-private.h' ],
)
libgstyle_vapi = gnome.generate_vapi('gstyle-private',
sources: libgstyle_gir[0],
packages: ['gio-2.0', 'gtk+-3.0', 'gtksourceview-3.0'],
install: true,
install_dir: pkgvapidir,
)
if get_option('with_vapi')
endif
libgstyle_vapi = gnome.generate_vapi('gstyle-private',
sources: libgstyle_gir[0],
packages: ['gio-2.0', 'gtk+-3.0', 'gtksourceview-3.0'],
install: true,
install_dir: pkgvapidir,
)
endif
......
application_headers = [
'ide-application.h',
'ide-application-addin.h',
'ide-application-credits.h',
'ide-application-tool.h',
]
application_sources = [
'ide-application.c',
'ide-application-addin.c',
'ide-application-open.c',
'ide-application-tool.c',
]
application_private_sources = [
'ide-application-actions.c',
'ide-application-actions.h',
'ide-application-command-line.c',
'ide-application-plugins.c',
'ide-application-private.h',
'ide-application-shortcuts.c',
'ide-application-tests.c',
'ide-application-tests.h',
]
libide_public_headers += files(application_headers)
libide_public_sources += files(application_sources)
libide_private_sources += files(application_private_sources)
install_headers(application_headers, subdir: join_paths(libide_header_subdir, 'application'))
buffers_headers = [
'ide-buffer.h',
'ide-buffer-addin.h',
'ide-buffer-change-monitor.h',
'ide-buffer-manager.h',
'ide-unsaved-file.h',
'ide-unsaved-files.h',
]
buffers_sources = [
'ide-buffer.c',
'ide-buffer-addin.c',
'ide-buffer-change-monitor.c',
'ide-buffer-manager.c',
'ide-unsaved-file.c',
'ide-unsaved-files.c',
]
buffers_private_sources = [
'ide-buffer-private.h',
]
buffers_enums = [
'ide-buffer.h',
]
libide_enum_headers += files(buffers_enums)
libide_public_headers += files(buffers_headers)
libide_public_sources += files(buffers_sources)
libide_private_sources += files(buffers_private_sources)
install_headers(buffers_headers, subdir: join_paths(libide_header_subdir, 'buffers'))
buildconfig_headers = [
'ide-buildconfig-configuration.h',
'ide-buildconfig-configuration-provider.h',
]
buildconfig_sources = [
'ide-buildconfig-configuration.c',
'ide-buildconfig-configuration-provider.c',
]
buildconfig_private_sources = [
'ide-buildconfig-plugin.c',
'ide-buildconfig-pipeline-addin.c',
'ide-buildconfig-pipeline-addin.h',
]
libide_public_headers += files(buildconfig_headers)
libide_public_sources += files(buildconfig_sources)
libide_private_sources += files(buildconfig_private_sources)
install_headers(buildconfig_headers, subdir: join_paths(libide_header_subdir, 'buildconfig'))
buildsystem_headers = [
'ide-build-log.h',
'ide-build-manager.h',
'ide-build-pipeline-addin.h',
'ide-build-pipeline.h',
'ide-build-stage-launcher.h',
'ide-build-stage-mkdirs.h',
'ide-build-stage-transfer.h',
'ide-build-stage.h',
'ide-build-system-discovery.h',
'ide-build-system.h',
'ide-build-target.h',
'ide-build-utils.h',
'ide-configuration-manager.h',
'ide-configuration-provider.h',
'ide-configuration.h',
'ide-environment-variable.h',
'ide-environment.h',
]
buildsystem_sources = [
'ide-build-manager.c',
'ide-build-pipeline-addin.c',
'ide-build-pipeline.c',
'ide-build-stage-launcher.c',
'ide-build-stage-mkdirs.c',
'ide-build-stage-transfer.c',
'ide-build-stage.c',
'ide-build-system-discovery.c',
'ide-build-system.c',
'ide-build-target.c',
'ide-build-utils.c',
'ide-configuration-manager.c',
'ide-configuration-provider.c',
'ide-configuration.c',
'ide-environment-variable.c',
'ide-environment.c',
]
buildsystem_private_sources = [
'ide-build-log.c',
'ide-build-log-private.h',
'ide-build-stage-private.h',
]
buildsystem_enums = [
'ide-build-log.h',
'ide-build-pipeline.h',
]
libide_enum_headers += files(buildsystem_enums)
libide_public_headers += files(buildsystem_headers)
libide_public_sources += files(buildsystem_sources)
libide_private_sources += files(buildsystem_private_sources)
install_headers(buildsystem_headers, subdir: join_paths(libide_header_subdir, 'buildsystem'))
buildui_private_sources = [
'ide-build-configuration-row.c',
'ide-build-configuration-row.h',
'ide-build-configuration-view.c',
'ide-build-configuration-view.h',
'ide-build-log-panel.c',
'ide-build-log-panel.h',
'ide-build-panel.c',
'ide-build-panel.h',
'ide-build-perspective.c',
'ide-build-perspective.h',
'ide-build-plugin.c',
'ide-build-tool.c',
'ide-build-tool.h',
'ide-build-workbench-addin.c',
'ide-build-workbench-addin.h',
'ide-environment-editor-row.c',
'ide-environment-editor-row.h',
'ide-environment-editor.c',
'ide-environment-editor.h',
]
libide_private_sources += files(buildui_private_sources)
debugger_headers = [
'ide-debug-manager.h',
'ide-debugger.h',
'ide-debugger-breakpoint.h',
'ide-debugger-breakpoints.h',
'ide-debugger-frame.h',
'ide-debugger-instruction.h',
'ide-debugger-library.h',
'ide-debugger-register.h',
'ide-debugger-thread-group.h',
'ide-debugger-thread.h',
'ide-debugger-types.h',
'ide-debugger-variable.h',
]
debugger_sources = [
'ide-debug-manager.c',
'ide-debugger.c',
'ide-debugger-breakpoint.c',
'ide-debugger-breakpoints.c',
'ide-debugger-frame.c',
'ide-debugger-instruction.c',
'ide-debugger-library.c',
'ide-debugger-register.c',
'ide-debugger-thread-group.c',
'ide-debugger-thread.c',
'ide-debugger-types.c',
'ide-debugger-variable.c',
]
debugger_private_sources = [
'ide-debugger-actions.c',
'ide-debugger-address-map.c',
'ide-debugger-address-map.h',
'ide-debugger-breakpoints-view.c',
'ide-debugger-breakpoints-view.h',
'ide-debugger-controls.c',
'ide-debugger-controls.h',
'ide-debugger-disassembly-view.c',
'ide-debugger-disassembly-view.h',
'ide-debugger-editor-addin.c',
'ide-debugger-editor-addin.h',
'ide-debugger-fallbacks.c',
'ide-debugger-gutter-renderer.c',
'ide-debugger-gutter-renderer.h',
'ide-debugger-libraries-view.c',
'ide-debugger-libraries-view.h',
'ide-debugger-locals-view.c',
'ide-debugger-locals-view.h',
'ide-debugger-plugin.c',
'ide-debugger-private.h',
'ide-debugger-registers-view.c',
'ide-debugger-registers-view.h',
'ide-debugger-threads-view.c',
'ide-debugger-threads-view.h',
]
libide_public_headers += files(debugger_headers)
libide_public_sources += files(debugger_sources)
libide_private_sources += files(debugger_private_sources)
install_headers(debugger_headers, subdir: join_paths(libide_header_subdir, 'debugger'))
devices_headers = [
'ide-device-manager.h',
'ide-device-provider.h',
'ide-device.h',
]
devices_sources = [
'ide-device-manager.c',
'ide-device-provider.c',
'ide-device.c',
]
devices_enums = [
'ide-device.h',
]
libide_enum_headers += files(devices_enums)
libide_public_headers += files(devices_headers)
libide_public_sources += files(devices_sources)
install_headers(devices_headers, subdir: join_paths(libide_header_subdir, 'devices'))
diagnostics_headers = [
'ide-diagnostic.h',
'ide-diagnostic-provider.h',
'ide-diagnostics.h',
'ide-diagnostics-manager.h',
'ide-fixit.h',
'ide-source-location.h',
'ide-source-range.h',
]
diagnostics_sources = [
'ide-diagnostic.c',
'ide-diagnostic-provider.c',
'ide-diagnostics.c',
'ide-diagnostics-manager.c',
'ide-fixit.c',
'ide-source-location.c',
'ide-source-range.c',
]
diagnostics_enums = [
'ide-diagnostic.h',
]
libide_enum_headers += files(diagnostics_enums)
libide_public_headers += files(diagnostics_headers)
libide_public_sources += files(diagnostics_sources)
install_headers(diagnostics_headers, subdir: join_paths(libide_header_subdir, 'diagnostics'))
directory_headers = [
'ide-directory-build-system.h',
'ide-directory-vcs.h',
]
directory_sources = [
'ide-directory-build-system.c',
'ide-directory-plugin.c',
'ide-directory-vcs.c',
]
libide_public_headers += files(directory_headers)
libide_public_sources += files(directory_sources)
install_headers(directory_headers, subdir: join_paths(libide_header_subdir, 'directory'))
doap_headers = [
'ide-doap-person.h',
'ide-doap.h',
]
doap_sources = [
'ide-doap-person.c',
'ide-doap.c',
]
doap_enums = [
'ide-doap.h',
]
libide_public_headers += files(doap_headers)
libide_public_sources += files(doap_sources)
libide_enum_headers += files(doap_enums)
install_headers(doap_headers, subdir: join_paths(libide_header_subdir, 'doap'))
directory_headers = [
'ide-documentation.h',
'ide-documentation-info.h',
'ide-documentation-proposal.h',
'ide-documentation-provider.h',
]
directory_sources = [
'ide-documentation.c',
'ide-documentation-info.c',
'ide-documentation-proposal.c',
'ide-documentation-provider.c',
]
libide_public_headers += files(directory_headers)
libide_public_sources += files(directory_sources)
install_headers(directory_headers, subdir: join_paths(libide_header_subdir, 'directory'))
editor_headers = [
'ide-editor-addin.h',
'ide-editor-perspective.h',
'ide-editor-sidebar.h',
'ide-editor-utilities.h',
'ide-editor-view-addin.h',
'ide-editor-view.h',
]
editor_sources = [
'ide-editor-addin.c',
'ide-editor-perspective.c',
'ide-editor-sidebar.c',
'ide-editor-utilities.c',
'ide-editor-view-addin.c',
'ide-editor-view.c',
]
editor_private_sources = [
'ide-editor-layout-stack-addin.c',
'ide-editor-layout-stack-addin.h',
'ide-editor-layout-stack-controls.c',
'ide-editor-layout-stack-controls.h',
'ide-editor-perspective-actions.c',
'ide-editor-perspective-shortcuts.c',
'ide-editor-plugin.c',
'ide-editor-print-operation.c',
'ide-editor-print-operation.h',
'ide-editor-private.h',
'ide-editor-properties.c',
'ide-editor-properties.h',
'ide-editor-search-bar.c',
'ide-editor-search-bar-actions.c',
'ide-editor-search-bar-shortcuts.c',
'ide-editor-search-bar.h',
'ide-editor-view-actions.c',
'ide-editor-view-settings.c',
'ide-editor-view-shortcuts.c',
'ide-editor-workbench-addin.c',
'ide-editor-workbench-addin.h',
]
libide_public_headers += files(editor_headers)
libide_public_sources += files(editor_sources)
libide_private_sources += files(editor_private_sources)
install_headers(editor_headers, subdir: join_paths(libide_header_subdir, 'editor'))
files_headers = [
'ide-file.h',
'ide-file-settings.h',
'ide-indent-style.h',
]
files_sources = [
'ide-file-settings.c',
'ide-file.c',
]
files_enums = [
'ide-indent-style.h',
]
libide_public_headers += files(files_headers)
libide_public_sources += files(files_sources)
libide_enum_headers += files(files_enums)
install_headers(files_headers, subdir: join_paths(libide_header_subdir, 'files'))
formatting_headers = [
'ide-formatter.h',
'ide-formatter-options.h',
]
formatting_sources = [
'ide-formatter.c',
'ide-formatter-options.c',
]
libide_public_headers += files(formatting_headers)
libide_public_sources += files(formatting_sources)
install_headers(formatting_headers, subdir: libide_header_subdir)
genesis_headers = [
'ide-genesis-addin.h',
]
genesis_sources = [
'ide-genesis-addin.c',
]
libide_public_headers += files(genesis_headers)
libide_public_sources += files(genesis_sources)
install_headers(genesis_headers, subdir: join_paths(libide_header_subdir, 'genesis'))
greeter_private_sources = [
'ide-greeter-perspective.c',
'ide-greeter-perspective.h',
'ide-greeter-project-row.c',
'ide-greeter-project-row.h',
]
libide_private_sources += files(greeter_private_sources)
gsettings_private_sources = [
'ide-gsettings-file-settings.c',
'ide-gsettings-file-settings.h',
'ide-language-defaults.c',
'ide-language-defaults.h',
]
libide_private_sources += files(gsettings_private_sources)
highlighting_headers = [
'ide-highlight-engine.h',
'ide-highlight-index.h',
'ide-highlighter.h',
]
highlighting_sources = [
'ide-highlight-engine.c',
'ide-highlight-index.c',
'ide-highlighter.c',
]
highlighting_enums = [
'ide-highlighter.h',
]
libide_public_headers += files(highlighting_headers)
libide_public_sources += files(highlighting_sources)
libide_enum_headers += files(highlighting_enums)
install_headers(highlighting_headers, subdir: join_paths(libide_header_subdir, 'genesis'))
keybindings_private_sources = [
'ide-keybindings.c',
'ide-keybindings.h',
'ide-shortcuts-window.c',
'ide-shortcuts-window.h',
]
libide_private_sources += files(keybindings_private_sources)
langserv_headers = [
'ide-langserv-client.h',
'ide-langserv-completion-provider.h',
'ide-langserv-diagnostic-provider.h',
'ide-langserv-formatter.h',
'ide-langserv-highlighter.h',
'ide-langserv-rename-provider.h',
'ide-langserv-symbol-node.h',
'ide-langserv-symbol-resolver.h',
'ide-langserv-symbol-tree.h',
'ide-langserv-util.h',
]
langserv_sources = [
'ide-langserv-client.c',
'ide-langserv-completion-provider.c',
'ide-langserv-diagnostic-provider.c',
'ide-langserv-formatter.c',
'ide-langserv-highlighter.c',
'ide-langserv-rename-provider.c',
'ide-langserv-symbol-node.c',
'ide-langserv-symbol-node-private.h',
'ide-langserv-symbol-resolver.c',
'ide-langserv-symbol-tree.c',
'ide-langserv-symbol-tree-private.h',
'ide-langserv-util.c',
]
libide_public_headers += files(langserv_headers)
libide_public_sources += files(langserv_sources)
install_headers(langserv_headers, subdir: join_paths(libide_header_subdir, 'langserv'))
layout_headers = [
'ide-layout-grid.h',
'ide-layout-grid-column.h',
'ide-layout-stack.h',
'ide-layout-stack-addin.h',
'ide-layout-stack-header.h',
'ide-layout-view.h',
'ide-layout-pane.h',
'ide-layout-transient-sidebar.h',
'ide-layout.h',
]
layout_sources = [
'ide-layout-grid.c',
'ide-layout-grid-column.c',
'ide-layout-pane.c',
'ide-layout-stack.c',
'ide-layout-stack-addin.c',
'ide-layout-stack-header.c',
'ide-layout-transient-sidebar.c',
'ide-layout-view.c',
'ide-layout.c',
]
layout_private_sources = [
'ide-layout-grid-actions.c',
'ide-layout-grid-column-actions.c',
'ide-layout-private.h',
'ide-layout-stack-actions.c',
'ide-layout-stack-shortcuts.c',
'ide-shortcut-label.c',
'ide-shortcut-label.h',
]
libide_public_headers += files(layout_headers)
libide_public_sources += files(layout_sources)
libide_private_sources += files(layout_private_sources)
install_headers(layout_headers, subdir: join_paths(libide_header_subdir, 'layout'))
local_headers = [
'ide-local-device.h',
]
local_sources = [
'ide-local-device.c',
]
libide_public_headers += files(local_headers)
libide_public_sources += files(local_sources)
install_headers(local_headers, subdir: join_paths(libide_header_subdir, 'local'))
logging_headers = [
'ide-log.h',
]
logging_sources = [
'ide-log.c',
]
libide_public_headers += files(logging_headers)
libide_public_sources += files(logging_sources)
install_headers(logging_headers, subdir: join_paths(libide_header_subdir, 'logging'))
This diff is collapsed.
modelines_private_sources = [
'ide-modelines-file-settings.c',
'ide-modelines-file-settings.h',
'modeline-parser.c',
'modeline-parser.h',
]
libide_private_sources += files(modelines_private_sources)
plugins_headers = [
'ide-extension-adapter.h',
'ide-extension-set-adapter.h',
]
plugins_sources = [
'ide-extension-adapter.c',
'ide-extension-set-adapter.c',
]
plugins_private_sources = [
'ide-extension-util.c',
'ide-extension-util.h',
]
libide_public_headers += files(plugins_headers)
libide_public_sources += files(plugins_sources)
libide_private_sources += files(plugins_private_sources)
install_headers(plugins_headers, subdir: join_paths(libide_header_subdir, 'plugins'))
preferences_headers = [
'ide-preferences-addin.h',
'ide-preferences-perspective.h',
]
preferences_sources = [
'ide-preferences-addin.c',
'ide-preferences-perspective.c',
]
preferences_private_sources = [
'ide-preferences-builtin.c',
'ide-preferences-builtin.h',
'ide-preferences-language-row.c',
'ide-preferences-language-row.h',
]
libide_public_headers += files(preferences_headers)
libide_public_sources += files(preferences_sources)
libide_private_sources += files(preferences_private_sources)
install_headers(preferences_headers, subdir: join_paths(libide_header_subdir, 'preferences'))