Commit 59de8710 authored by Christian Hergert's avatar Christian Hergert

build: move completion into new subdir

As we start landing the new completion engine, it will be nice to have
the ability to keep it separate from the sourceview subdir as it will grow
in size a bit.
parent 931418fb
Pipeline #10412 failed with stage
in 12 minutes and 5 seconds
......@@ -33,6 +33,7 @@
#include "buffers/ide-buffer.h"
#include "buffers/ide-buffer-private.h"
#include "buffers/ide-unsaved-files.h"
#include "completion/ide-completion-words.h"
#include "diagnostics/ide-diagnostics-manager.h"
#include "diagnostics/ide-source-location.h"
#include "diagnostics/ide-source-range.h"
......@@ -40,7 +41,6 @@
#include "files/ide-file.h"
#include "projects/ide-project-edit.h"
#include "projects/ide-project-edit-private.h"
#include "sourceview/ide-completion-words.h"
#include "vcs/ide-vcs.h"
#include "threading/ide-task.h"
#include "util/ide-doc-seq.h"
......
......@@ -22,7 +22,7 @@
#include <string.h>
#include "sourceview/ide-completion-item.h"
#include "completion/ide-completion-item.h"
G_DEFINE_ABSTRACT_TYPE (IdeCompletionItem, ide_completion_item, G_TYPE_OBJECT)
......
......@@ -22,7 +22,7 @@
#include "ide-context.h"
#include "sourceview/ide-completion-provider.h"
#include "completion/ide-completion-provider.h"
#include "sourceview/ide-text-iter.h"
G_DEFINE_INTERFACE (IdeCompletionProvider, ide_completion_provider, GTK_SOURCE_TYPE_COMPLETION_PROVIDER)
......
......@@ -25,7 +25,7 @@
#include "ide-debug.h"
#include "sourceview/ide-completion-results.h"
#include "completion/ide-completion-results.h"
#include "util/ide-list-inline.h"
typedef struct
......
......@@ -22,7 +22,7 @@
#include "ide-version-macros.h"
#include "sourceview/ide-completion-item.h"
#include "completion/ide-completion-item.h"
G_BEGIN_DECLS
......
......@@ -20,8 +20,8 @@
#include "config.h"
#include "sourceview/ide-completion-provider.h"
#include "sourceview/ide-completion-words.h"
#include "completion/ide-completion-provider.h"
#include "completion/ide-completion-words.h"
struct _IdeCompletionWords
{
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "sourceview/ide-word-completion-item.h"
#include "completion/ide-word-completion-item.h"
typedef struct
{
......
......@@ -20,7 +20,7 @@
#include <gtksourceview/gtksource.h>
#include "sourceview/ide-completion-item.h"
#include "completion/ide-completion-item.h"
G_BEGIN_DECLS
......
......@@ -26,10 +26,10 @@
#include "ide-debug.h"
#include "sourceview/ide-word-completion-provider.h"
#include "sourceview/ide-word-completion-item.h"
#include "sourceview/ide-word-completion-results.h"
#include "sourceview/ide-completion-provider.h"
#include "completion/ide-completion-provider.h"
#include "completion/ide-word-completion-provider.h"
#include "completion/ide-word-completion-item.h"
#include "completion/ide-word-completion-results.h"
typedef struct
{
......
......@@ -20,8 +20,8 @@
#include "config.h"
#include "sourceview/ide-word-completion-results.h"
#include "sourceview/ide-word-completion-item.h"
#include "completion/ide-word-completion-results.h"
#include "completion/ide-word-completion-item.h"
struct _IdeWordCompletionResults
{
......
......@@ -20,7 +20,7 @@
#include <gtksourceview/gtksource.h>
#include "sourceview/ide-completion-results.h"
#include "completion/ide-completion-results.h"
G_BEGIN_DECLS
......
completion_headers = [
'ide-completion-item.h',
'ide-completion-provider.h',
'ide-completion-results.h',
]
completion_sources = [
'ide-completion-item.c',
'ide-completion-provider.c',
'ide-completion-results.c',
]
completion_private_sources = [
'ide-completion-words.c',
'ide-completion-words.h',
'ide-word-completion-item.c',
'ide-word-completion-item.h',
'ide-word-completion-provider.c',
'ide-word-completion-provider.h',
'ide-word-completion-results.c',
'ide-word-completion-results.h',
]
libide_public_headers += files(completion_headers)
libide_public_sources += files(completion_sources)
libide_private_sources += files(completion_private_sources)
install_headers(completion_headers, subdir: join_paths(libide_header_subdir, 'completion'))
......@@ -62,6 +62,9 @@ G_BEGIN_DECLS
#include "buildsystem/ide-environment-variable.h"
#include "buildsystem/ide-environment.h"
#include "buildsystem/ide-simple-build-target.h"
#include "completion/ide-completion-item.h"
#include "completion/ide-completion-provider.h"
#include "completion/ide-completion-results.h"
#include "config/ide-configuration.h"
#include "config/ide-configuration-manager.h"
#include "config/ide-configuration-provider.h"
......@@ -155,9 +158,6 @@ G_BEGIN_DECLS
#include "snippets/ide-source-snippet.h"
#include "snippets/ide-source-snippets-manager.h"
#include "snippets/ide-source-snippets.h"
#include "sourceview/ide-completion-item.h"
#include "sourceview/ide-completion-provider.h"
#include "sourceview/ide-completion-results.h"
#include "sourceview/ide-indenter.h"
#include "sourceview/ide-language.h"
#include "sourceview/ide-source-map.h"
......
......@@ -22,8 +22,8 @@
#include "ide-object.h"
#include "completion/ide-completion-provider.h"
#include "langserv/ide-langserv-client.h"
#include "sourceview/ide-completion-provider.h"
G_BEGIN_DECLS
......
......@@ -55,6 +55,7 @@ subdir('buildconfig')
subdir('buildui')
subdir('buildsystem')
subdir('buffers')
subdir('completion')
subdir('config')
subdir('debugger')
subdir('devices')
......
......@@ -19,9 +19,9 @@
#include <glib/gi18n.h>
#include <gtksourceview/gtksource.h>
#include "completion/ide-completion-provider.h"
#include "snippets/ide-source-snippet-completion-item.h"
#include "snippets/ide-source-snippet-completion-provider.h"
#include "sourceview/ide-completion-provider.h"
struct _IdeSourceSnippetCompletionProvider
{
......
......@@ -33,6 +33,8 @@
#include "buffers/ide-buffer-manager.h"
#include "buffers/ide-buffer.h"
#include "buffers/ide-buffer-private.h"
#include "completion/ide-completion-provider.h"
#include "completion/ide-word-completion-provider.h"
#include "diagnostics/ide-diagnostic.h"
#include "diagnostics/ide-fixit.h"
#include "diagnostics/ide-source-location.h"
......@@ -48,7 +50,6 @@
#include "snippets/ide-source-snippet-private.h"
#include "snippets/ide-source-snippet.h"
#include "snippets/ide-source-snippets-manager.h"
#include "sourceview/ide-completion-provider.h"
#include "sourceview/ide-cursor.h"
#include "sourceview/ide-indenter.h"
#include "sourceview/ide-omni-gutter-renderer.h"
......@@ -60,7 +61,6 @@
#include "sourceview/ide-source-view-private.h"
#include "sourceview/ide-source-view.h"
#include "sourceview/ide-text-util.h"
#include "sourceview/ide-word-completion-provider.h"
#include "symbols/ide-symbol.h"
#include "symbols/ide-symbol-resolver.h"
#include "util/ide-gtk.h"
......
sourceview_headers = [
'ide-completion-item.h',
'ide-completion-provider.h',
'ide-completion-results.h',
'ide-indenter.h',
'ide-language.h',
'ide-source-iter.h',
......@@ -12,9 +9,6 @@ sourceview_headers = [
]
sourceview_sources = [
'ide-completion-item.c',
'ide-completion-provider.c',
'ide-completion-results.c',
'ide-indenter.c',
'ide-language.c',
'ide-source-iter.c',
......@@ -25,8 +19,6 @@ sourceview_sources = [
]
sourceview_private_sources = [
'ide-completion-words.c',
'ide-completion-words.h',
'ide-cursor.c',
'ide-cursor.h',
'ide-omni-gutter-renderer.c',
......@@ -40,12 +32,6 @@ sourceview_private_sources = [
'ide-source-view-movements.c',
'ide-source-view-shortcuts.c',
'ide-text-util.c',
'ide-word-completion-item.c',
'ide-word-completion-item.h',
'ide-word-completion-provider.c',
'ide-word-completion-provider.h',
'ide-word-completion-results.c',
'ide-word-completion-results.h',
]
sourceview_enums = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment