Commit d0121822 authored by Christian Hergert's avatar Christian Hergert
Browse files

build: reorganize libide

The libide/ directory was getting a bit out of control. The number of files
in the directory was simply too much to make it easy for newcomers to
find what they are looking for.

This breaks things up into a bunch of, somewhat logical, directories.

We no longer use a bunch of crazy include paths with -I, and instead
include the directory name when including as such:

  #include "buffers/ide-buffer.h"

This will hopefully make it easier to navigate, and basically the same to
open files if you use fuzzy search to open files.
parent 32573cca
......@@ -448,11 +448,6 @@ PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/rg"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/search"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/contrib/xml"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide/editor"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide/genesis"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide/greeter"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide/preferences"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS -I\$(top_srcdir)/libide/util"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $LIBIDE_CFLAGS"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $DEBUG_CFLAGS"
PLUGIN_CFLAGS="$PLUGIN_CFLAGS $OPTIMIZE_CFLAGS"
......@@ -497,8 +492,8 @@ AC_CONFIG_FILES([
contrib/tmpl/tmpl-debug.h
contrib/xml/Makefile
libide/ide-debug.h
libide/Makefile
libide/ide-debug.h
plugins/Makefile
......
......@@ -7,512 +7,480 @@ pkglibdir = $(libdir)/gnome-builder
pkglib_LTLIBRARIES = libide-1.0.la
headersdir = $(includedir)/gnome-builder-@VERSION@/libide
nobase_headers_DATA = \
nobase_headers_DATA = \
$(libide_1_0_la_public_headers) \
$(builddir)/ide-enums.h
libide_1_0_la_public_headers = \
directory/ide-directory-build-system.h \
directory/ide-directory-genesis-addin.h \
directory/ide-directory-vcs.h \
doap/ide-doap-person.h \
doap/ide-doap.h \
editor/ide-editor-perspective.h \
editor/ide-editor-view-addin.h \
editor/ide-editor-view.h \
genesis/ide-genesis-addin.h \
genesis/ide-genesis-perspective.h \
ide-application-addin.h \
ide-application-credits.h \
ide-application-tool.h \
ide-application.h \
ide-back-forward-item.h \
ide-back-forward-list.h \
ide-buffer-change-monitor.h \
ide-buffer-manager.h \
ide-buffer.h \
ide-build-result-addin.h \
ide-build-result.h \
ide-build-system.h \
ide-builder.h \
ide-completion-item.h \
ide-completion-provider.h \
ide-completion-results.h \
ide-configuration-manager.h \
ide-configuration.h \
ide-context.h \
ide-debug.h \
ide-debugger.h \
ide-deployer.h \
ide-device-manager.h \
ide-device-provider.h \
ide-device.h \
ide-diagnostic-provider.h \
ide-diagnostic.h \
ide-diagnostician.h \
ide-diagnostics.h \
ide-environment-editor-row.h \
ide-environment-editor.h \
ide-environment-variable.h \
ide-environment.h \
ide-executable.h \
ide-executer.h \
ide-extension-adapter.h \
ide-extension-set-adapter.h \
ide-file-settings.defs \
ide-file-settings.h \
ide-file.h \
ide-fixit.h \
ide-global.h \
ide-highlight-engine.h \
ide-highlight-index.h \
ide-highlighter.h \
ide-indent-style.h \
ide-indenter.h \
ide-language.h \
ide-layout-grid.h \
ide-layout-pane.h \
ide-layout-stack-split.h \
ide-layout-stack.h \
ide-layout-view.h \
ide-layout.h \
ide-log.h \
ide-macros.h \
ide-object.h \
ide-pattern-spec.h \
ide-perspective.h \
ide-preferences-addin.h \
ide-preferences.h \
ide-process.h \
ide-progress.h \
ide-project-file.h \
ide-project-files.h \
ide-project-info.h \
ide-project-item.h \
ide-project-miner.h \
ide-project.h \
ide-recent-projects.h \
ide-refactory.h \
ide-runtime-manager.h \
ide-runtime-provider.h \
ide-runtime.h \
ide-script-manager.h \
ide-script.h \
ide-search-context.h \
ide-search-engine.h \
ide-search-provider.h \
ide-search-reducer.h \
ide-search-result.h \
ide-service.h \
ide-settings.h \
ide-source-location.h \
ide-source-map.h \
ide-source-range.h \
ide-source-snippet-chunk.h \
ide-source-snippet-context.h \
ide-source-snippet.h \
ide-source-snippets-manager.h \
ide-source-snippets.h \
ide-source-style-scheme.h \
ide-source-view-mode.h \
ide-source-view.h \
ide-subprocess-launcher.h \
ide-symbol-node.h \
ide-symbol-resolver.h \
ide-symbol-tree.h \
ide-symbol.h \
ide-tags-builder.h \
ide-target.h \
ide-test-case.h \
ide-test-suite.h \
ide-thread-pool.h \
ide-tree-builder.h \
ide-tree-node.h \
ide-tree-types.h \
ide-tree.h \
ide-types.h \
ide-unsaved-file.h \
ide-unsaved-files.h \
ide-uri.h \
ide-vcs-config.h \
ide-vcs-uri.h \
ide-vcs-initializer.h \
ide-vcs.h \
ide-workbench-addin.h \
ide-workbench-header-bar.h \
ide-workbench.h \
ide-worker.h \
ide.h \
local/ide-local-device.h \
preferences/ide-preferences-bin.h \
preferences/ide-preferences-entry.h \
$(builddir)/ide-enums.h \
$(NULL)
libide_1_0_la_public_headers = \
ide-context.h \
ide-debug.h \
ide-global.h \
ide-macros.h \
ide-object.h \
ide-service.h \
ide-types.h \
ide.h \
application/ide-application-addin.h \
application/ide-application-credits.h \
application/ide-application-tool.h \
application/ide-application.h \
buffers/ide-buffer-change-monitor.h \
buffers/ide-buffer-manager.h \
buffers/ide-buffer.h \
buffers/ide-unsaved-file.h \
buffers/ide-unsaved-files.h \
buildsystem/ide-build-result-addin.h \
buildsystem/ide-build-result.h \
buildsystem/ide-build-system.h \
buildsystem/ide-builder.h \
buildsystem/ide-configuration-manager.h \
buildsystem/ide-configuration.h \
buildsystem/ide-environment-variable.h \
buildsystem/ide-environment.h \
devices/ide-device-manager.h \
devices/ide-device-provider.h \
devices/ide-device.h \
diagnostics/ide-diagnostic-provider.h \
diagnostics/ide-diagnostic.h \
diagnostics/ide-diagnostician.h \
diagnostics/ide-diagnostics.h \
diagnostics/ide-fixit.h \
diagnostics/ide-source-location.h \
diagnostics/ide-source-range.h \
directory/ide-directory-build-system.h \
directory/ide-directory-genesis-addin.h \
directory/ide-directory-vcs.h \
doap/ide-doap-person.h \
doap/ide-doap.h \
editor/ide-editor-perspective.h \
editor/ide-editor-view-addin.h \
editor/ide-editor-view.h \
files/ide-file-settings.defs \
files/ide-file-settings.h \
files/ide-file.h \
files/ide-indent-style.h \
genesis/ide-genesis-addin.h \
genesis/ide-genesis-perspective.h \
highlighting/ide-highlight-engine.h \
highlighting/ide-highlight-index.h \
highlighting/ide-highlighter.h \
history/ide-back-forward-item.h \
history/ide-back-forward-list.h \
local/ide-local-device.h \
logging/ide-log.h \
plugins/ide-extension-adapter.h \
plugins/ide-extension-set-adapter.h \
preferences/ide-preferences-addin.h \
preferences/ide-preferences-bin.h \
preferences/ide-preferences-entry.h \
preferences/ide-preferences-file-chooser-button.h \
preferences/ide-preferences-flow-box.h \
preferences/ide-preferences-font-button.h \
preferences/ide-preferences-group.h \
preferences/ide-preferences-page.h \
preferences/ide-preferences-spin-button.h \
preferences/ide-preferences-switch.h \
search/ide-omni-search-display.h \
search/ide-omni-search-entry.h \
search/ide-omni-search-group.h \
search/ide-omni-search-row.h \
template/ide-project-template.h \
template/ide-template-base.h \
template/ide-template-provider.h \
util/ide-cairo.h \
util/ide-dnd.h \
util/ide-file-manager.h \
util/ide-gtk.h \
util/ide-line-reader.h \
util/ide-list-inline.h \
util/ide-pango.h \
util/ide-posix.h \
util/ide-rgba.h \
preferences/ide-preferences-flow-box.h \
preferences/ide-preferences-font-button.h \
preferences/ide-preferences-group.h \
preferences/ide-preferences-page.h \
preferences/ide-preferences-spin-button.h \
preferences/ide-preferences-switch.h \
preferences/ide-preferences.h \
projects/ide-project-file.h \
projects/ide-project-files.h \
projects/ide-project-info.h \
projects/ide-project-item.h \
projects/ide-project-miner.h \
projects/ide-project.h \
projects/ide-recent-projects.h \
runtimes/ide-runtime-manager.h \
runtimes/ide-runtime-provider.h \
runtimes/ide-runtime.h \
scripting/ide-script-manager.h \
scripting/ide-script.h \
search/ide-omni-search-display.h \
search/ide-omni-search-entry.h \
search/ide-omni-search-group.h \
search/ide-omni-search-row.h \
search/ide-pattern-spec.h \
search/ide-search-context.h \
search/ide-search-engine.h \
search/ide-search-provider.h \
search/ide-search-reducer.h \
search/ide-search-result.h \
snippets/ide-source-snippet-chunk.h \
snippets/ide-source-snippet-context.h \
snippets/ide-source-snippet.h \
snippets/ide-source-snippets-manager.h \
snippets/ide-source-snippets.h \
sourceview/ide-completion-item.h \
sourceview/ide-completion-provider.h \
sourceview/ide-completion-results.h \
sourceview/ide-indenter.h \
sourceview/ide-language.h \
sourceview/ide-source-map.h \
sourceview/ide-source-style-scheme.h \
sourceview/ide-source-view-mode.h \
sourceview/ide-source-view.h \
symbols/ide-symbol-node.h \
symbols/ide-symbol-resolver.h \
symbols/ide-symbol-tree.h \
symbols/ide-symbol.h \
symbols/ide-tags-builder.h \
template/ide-project-template.h \
template/ide-template-base.h \
template/ide-template-provider.h \
threading/ide-thread-pool.h \
tree/ide-tree-builder.h \
tree/ide-tree-node.h \
tree/ide-tree-types.h \
tree/ide-tree.h \
util/ide-cairo.h \
util/ide-dnd.h \
util/ide-file-manager.h \
util/ide-gtk.h \
util/ide-line-reader.h \
util/ide-list-inline.h \
util/ide-pango.h \
util/ide-posix.h \
util/ide-progress.h \
util/ide-rgba.h \
util/ide-settings.h \
util/ide-uri.h \
vcs/ide-vcs-config.h \
vcs/ide-vcs-initializer.h \
vcs/ide-vcs-uri.h \
vcs/ide-vcs.h \
workbench/ide-layout-grid.h \
workbench/ide-layout-pane.h \
workbench/ide-layout-stack-split.h \
workbench/ide-layout-stack.h \
workbench/ide-layout-view.h \
workbench/ide-layout.h \
workbench/ide-perspective.h \
workbench/ide-workbench-addin.h \
workbench/ide-workbench-header-bar.h \
workbench/ide-workbench.h \
workers/ide-subprocess-launcher.h \
workers/ide-worker.h \
$(NULL)
libide_1_0_la_public_sources = \
directory/ide-directory-build-system.c \
directory/ide-directory-genesis-addin.c \
directory/ide-directory-plugin.c \
directory/ide-directory-vcs.c \
doap/ide-doap-person.c \
doap/ide-doap.c \
editor/ide-editor-perspective.c \
editor/ide-editor-view-addin.c \
editor/ide-editor-view.c \
genesis/ide-genesis-addin.c \
genesis/ide-genesis-perspective.c \
ide-application-addin.c \
ide-application-tool.c \
ide-application.c \
ide-back-forward-item.c \
ide-back-forward-list-load.c \
ide-back-forward-list-save.c \
ide-back-forward-list.c \
ide-buffer-change-monitor.c \
ide-buffer-manager.c \
ide-buffer.c \
ide-build-result-addin.c \
ide-build-result.c \
ide-build-system.c \
ide-builder.c \
ide-completion-item.c \
ide-completion-provider.c \
ide-completion-results.c \
ide-configuration-manager.c \
ide-configuration.c \
ide-context.c \
ide-debugger.c \
ide-deployer.c \
ide-device-manager.c \
ide-device-provider.c \
ide-device.c \
ide-diagnostic-provider.c \
ide-diagnostic.c \
ide-diagnostician.c \
ide-diagnostics.c \
ide-environment-editor-row.c \
ide-environment-editor.c \
ide-environment-variable.c \
ide-environment.c \
ide-executable.c \
ide-executer.c \
ide-extension-adapter.c \
ide-extension-set-adapter.c \
ide-file-settings.c \
ide-file-settings.defs \
ide-file.c \
ide-fixit.c \
ide-highlight-engine.c \
ide-highlight-index.c \
ide-highlighter.c \
ide-indenter.c \
ide-language.c \
ide-layout-grid.c \
ide-layout-pane.c \
ide-layout-stack.c \
ide-layout-view.c \
ide-layout.c \
ide-log.c \
ide-object.c \
ide-pattern-spec.c \
ide-perspective.c \
ide-preferences-addin.c \
ide-preferences.c \
ide-process.c \
ide-progress.c \
ide-project-file.c \
ide-project-files.c \
ide-project-info.c \
ide-project-item.c \
ide-project-miner.c \
ide-project.c \
ide-recent-projects.c \
ide-refactory.c \
ide-runtime-manager.c \
ide-runtime-provider.c \
ide-runtime.c \
ide-script-manager.c \
ide-script.c \
ide-search-context.c \
ide-search-engine.c \
ide-search-provider.c \
ide-search-result.c \
ide-service.c \
ide-settings.c \
ide-source-location.c \
ide-source-map.c \
ide-source-range.c \
ide-source-snippet-chunk.c \
ide-source-snippet-context.c \
ide-source-snippet.c \
ide-source-snippets-manager.c \
ide-source-snippets.c \
ide-source-style-scheme.c \
ide-source-view-mode.c \
ide-source-view.c \
ide-subprocess-launcher.c \
ide-symbol-node.c \
ide-symbol-resolver.c \
ide-symbol-tree.c \
ide-symbol.c \
ide-tags-builder.c \
ide-target.c \
ide-test-case.c \
ide-test-suite.c \
ide-thread-pool.c \
ide-tree-builder.c \
ide-tree-node.c \
ide-tree.c \
ide-unsaved-file.c \
ide-unsaved-files.c \
ide-uri.c \
ide-vcs-config.c \
ide-vcs-initializer.c \
ide-vcs-uri.c \
ide-vcs.c \
ide-workbench-addin.c \
ide-workbench-header-bar.c \
ide-workbench-open.c \
ide-workbench.c \
ide-worker.c \
ide.c \
local/ide-local-device.c \
preferences/ide-preferences-entry.c \
libide_1_0_la_public_sources = \
application/ide-application-addin.c \
application/ide-application-tool.c \
application/ide-application.c \
buffers/ide-buffer-change-monitor.c \
buffers/ide-buffer-manager.c \
buffers/ide-buffer.c \
buffers/ide-unsaved-file.c \
buffers/ide-unsaved-files.c \
buildsystem/ide-build-result-addin.c \
buildsystem/ide-build-result.c \
buildsystem/ide-build-system.c \
buildsystem/ide-builder.c \
buildsystem/ide-configuration-manager.c \
buildsystem/ide-configuration.c \
buildsystem/ide-environment-variable.c \
buildsystem/ide-environment.c \
devices/ide-device-manager.c \
devices/ide-device-provider.c \
devices/ide-device.c \
diagnostics/ide-diagnostic-provider.c \
diagnostics/ide-diagnostic.c \
diagnostics/ide-diagnostician.c \
diagnostics/ide-diagnostics.c \
diagnostics/ide-fixit.c \
diagnostics/ide-source-location.c \
diagnostics/ide-source-range.c \
directory/ide-directory-build-system.c \
directory/ide-directory-genesis-addin.c \
directory/ide-directory-plugin.c \
directory/ide-directory-vcs.c \
doap/ide-doap-person.c \
doap/ide-doap.c \
editor/ide-editor-perspective.c \
editor/ide-editor-view-addin.c \
editor/ide-editor-view.c \
files/ide-file-settings.c \
files/ide-file-settings.defs \
files/ide-file.c \
genesis/ide-genesis-addin.c \
genesis/ide-genesis-perspective.c \
highlighting/ide-highlight-engine.c \
highlighting/ide-highlight-index.c \
highlighting/ide-highlighter.c \
history/ide-back-forward-item.c \
history/ide-back-forward-list-load.c \
history/ide-back-forward-list-save.c \
history/ide-back-forward-list.c \
ide-context.c \
ide-object.c \
ide-service.c \
ide.c \
local/ide-local-device.c \
logging/ide-log.c \
plugins/ide-extension-adapter.c \
plugins/ide-extension-set-adapter.c \
preferences/ide-preferences-addin.c \
preferences/ide-preferences-entry.c \
preferences/ide-preferences-file-chooser-button.c \
preferences/ide-preferences-flow-box.c \
preferences/ide-preferences-font-button.c \
preferences/ide-preferences-group.c \
preferences/ide-preferences-page.c \
preferences/ide-preferences-spin-button.c \
preferences/ide-preferences-switch.c \
search/ide-omni-search-display.c \
search/ide-omni-search-entry.c \
search/ide-omni-search-group.c \
search/ide-omni-search-row.c \
template/ide-project-template.c \
template/ide-template-base.c \
template/ide-template-provider.c \
util/ide-cairo.c \
util/ide-dnd.c \
util/ide-file-manager.c \
util/ide-gtk.c \
util/ide-line-reader.c \
util/ide-pango.c \
util/ide-posix.c \
util/ide-rgba.c \
preferences/ide-preferences-flow-box.c \
preferences/ide-preferences-font-button.c \
preferences/ide-preferences-group.c \
preferences/ide-preferences-page.c \
preferences/ide-preferences-spin-button.c \
preferences/ide-preferences-switch.c \
preferences/ide-preferences.c \
projects/ide-project-file.c \
projects/ide-project-files.c \
projects/ide-project-info.c \
projects/ide-project-item.c \
projects/ide-project-miner.c \
projects/ide-project.c \
projects/ide-recent-projects.c \
runtimes/ide-runtime-manager.c \
runtimes/ide-runtime-provider.c \
runtimes/ide-runtime.c \
scripting/ide-script-manager.c \
scripting/ide-script.c \
search/ide-omni-search-display.c \
search/ide-omni-search-entry.c \
search/ide-omni-search-group.c \
search/ide-omni-search-row.c \
search/ide-pattern-spec.c \
search/ide-search-context.c \
search/ide-search-engine.c \
search/ide-search-provider.c \
search/ide-search-result.c \
snippets/ide-source-snippet-chunk.c \
snippets/ide-source-snippet-context.c \
snippets/ide-source-snippet.c \
snippets/ide-source-snippets-manager.c \
snippets/ide-source-snippets.c \
sourceview/ide-completion-item.c \
sourceview/ide-completion-provider.c \
sourceview/ide-completion-results.c \
sourceview/ide-indenter.c \
sourceview/ide-language.c \
sourceview/ide-source-map.c \
sourceview/ide-source-style-scheme.c \
sourceview/ide-source-view-mode.c \
sourceview/ide-source-view.c \
symbols/ide-symbol-node.c \
symbols/ide-symbol-resolver.c \
symbols/ide-symbol-tree.c \
symbols/ide-symbol.c \
symbols/ide-tags-builder.c \
template/ide-project-template.c \
template/ide-template-base.c \
template/ide-template-provider.c \
threading/ide-thread-pool.c \
tree/ide-tree-builder.c \
tree/ide-tree-node.c \
tree/ide-tree.c \
util/ide-cairo.c \
util/ide-dnd.c \
util/ide-file-manager.c \
util/ide-gtk.c \
util/ide-line-reader.c \
util/ide-pango.c \
util/ide-posix.c \
util/ide-progress.c \
util/ide-rgba.c \
util/ide-settings.c \
util/ide-uri.c \
vcs/ide-vcs-config.c \
vcs/ide-vcs-initializer.c \
vcs/ide-vcs-uri.c \
vcs/ide-vcs.c \
workbench/ide-layout-grid.c \
workbench/ide-layout-pane.c \
workbench/ide-layout-stack.c \
workbench/ide-layout-view.c \
workbench/ide-layout.c \
workbench/ide-perspective.c \
workbench/ide-workbench-addin.c \
workbench/ide-workbench-header-bar.c \
workbench/ide-workbench-open.c \
workbench/ide-workbench.c \
workers/ide-subprocess-launcher.c \
workers/ide-worker.c \
$(NULL)
libide_1_0_la_SOURCES = \
$(libide_1_0_la_public_headers) \
$(libide_1_0_la_public_sources) \
editor/ide-editor-frame-actions.c \
editor/ide-editor-frame-actions.h \
editor/ide-editor-frame.c \
editor/ide-editor-frame.h \
editor/ide-editor-frame-private.h \
editor/ide-editor-map-bin.c \