[gnome-builder] code-index: Adding plugin files
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: Adding plugin files
- Date: Fri, 1 Sep 2017 22:23:50 +0000 (UTC)
commit 35f35a6956688bf5e6142a93da235ff7a3d678dc
Author: Anoop Chandu <anoopchandu96 gmail com>
Date: Thu Aug 24 00:50:42 2017 +0530
code-index: Adding plugin files
https://bugzilla.gnome.org/show_bug.cgi?id=786700
meson_options.txt | 1 +
plugins/code-index/code-index-plugin.c | 40 ++++++++++++++++++++++++++++++++
plugins/code-index/code-index.plugin | 9 +++++++
plugins/code-index/meson.build | 39 +++++++++++++++++++++++++++++++
plugins/meson.build | 1 +
5 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index 38ac26c..8176964 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -29,6 +29,7 @@ option('with_cargo', type: 'boolean')
option('with_clang', type: 'boolean')
option('with_cmake', type: 'boolean')
option('with_color_picker', type: 'boolean')
+option('with_code_index', type: 'boolean')
option('with_command_bar', type: 'boolean')
option('with_comment_code', type: 'boolean')
option('with_create_project', type: 'boolean')
diff --git a/plugins/code-index/code-index-plugin.c b/plugins/code-index/code-index-plugin.c
new file mode 100644
index 0000000..8a7cc54
--- /dev/null
+++ b/plugins/code-index/code-index-plugin.c
@@ -0,0 +1,40 @@
+/* code-index-plugin.c
+ *
+ * Copyright (C) 2017 Anoop Chandu <anoopchandu96 gmail com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <libpeas/peas.h>
+#include <ide.h>
+
+#include "ide-code-index-service.h"
+#include "ide-code-index-search-provider.h"
+#include "ide-code-index-symbol-resolver.h"
+
+void
+peas_register_types (PeasObjectModule *module)
+{
+ peas_object_module_register_extension_type (module,
+ IDE_TYPE_SERVICE,
+ IDE_TYPE_CODE_INDEX_SERVICE);
+
+ peas_object_module_register_extension_type (module,
+ IDE_TYPE_SEARCH_PROVIDER,
+ IDE_TYPE_CODE_INDEX_SEARCH_PROVIDER);
+
+ peas_object_module_register_extension_type (module,
+ IDE_TYPE_SYMBOL_RESOLVER,
+ IDE_TYPE_CODE_INDEX_SYMBOL_RESOLVER);
+}
diff --git a/plugins/code-index/code-index.plugin b/plugins/code-index/code-index.plugin
new file mode 100644
index 0000000..c98b83a
--- /dev/null
+++ b/plugins/code-index/code-index.plugin
@@ -0,0 +1,9 @@
+[Plugin]
+Module=code-index-plugin
+Name=Code Index
+Description=Manages Code Index and does Global Search and Jump to Definition using Code Index.
+Authors=Anoop Chandu <anoopchandu96 gmail com>
+Copyright=Copyright © 2017 Anoop Chandu
+Builtin=true
+X-Symbol-Resolver-Languages=c,chdr,cpp
+X-Symbol-Resolver-Languages-Priority=200
diff --git a/plugins/code-index/meson.build b/plugins/code-index/meson.build
new file mode 100644
index 0000000..372b29f
--- /dev/null
+++ b/plugins/code-index/meson.build
@@ -0,0 +1,39 @@
+if get_option('with_code_index')
+
+code_index_sources = [
+ 'code-index-plugin.c',
+ 'ide-code-index-builder.c',
+ 'ide-code-index-builder.h',
+ 'ide-code-index-index.c',
+ 'ide-code-index-index.h',
+ 'ide-code-index-search-provider.c',
+ 'ide-code-index-search-provider.h',
+ 'ide-code-index-search-result.c',
+ 'ide-code-index-search-result.h',
+ 'ide-code-index-service.c',
+ 'ide-code-index-service.h',
+ 'ide-code-index-symbol-resolver.c',
+ 'ide-code-index-symbol-resolver.h',
+ 'ide-persistent-map-builder.c',
+ 'ide-persistent-map-builder.h',
+ 'ide-persistent-map.c',
+ 'ide-persistent-map.h',
+]
+
+shared_module('code-index-plugin', code_index_sources,
+ dependencies: plugin_deps,
+ link_args: plugin_link_args,
+ link_depends: plugin_link_deps,
+ install: true,
+ install_dir: plugindir,
+)
+
+configure_file(
+ input: 'code-index.plugin',
+ output: 'code-index.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
+endif
diff --git a/plugins/meson.build b/plugins/meson.build
index c16c521..e8a3ec2 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -17,6 +17,7 @@ subdir('c-pack')
subdir('cargo')
subdir('clang')
subdir('cmake')
+subdir('code-index')
subdir('color-picker')
subdir('command-bar')
subdir('comment-code')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]