Commit 35f35a69 authored by Anoop Chandu's avatar Anoop Chandu Committed by Christian Hergert

code-index: Adding plugin files

https://bugzilla.gnome.org/show_bug.cgi?id=786700
parent 67f3085f
......@@ -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')
......
/* 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);
}
[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
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
......@@ -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')
......
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