Commit 78ea5a00 authored by Christian Hergert's avatar Christian Hergert

html-completion: port to libide-sourceview

parent 9dac7be0
......@@ -18,13 +18,15 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <ide.h>
#include "config.h"
#include <libide-sourceview.h>
#include <libpeas/peas.h>
#include "ide-html-completion-provider.h"
void
ide_html_completion_register_types (PeasObjectModule *module)
_IDE_EXTERN void
_ide_html_completion_register_types (PeasObjectModule *module)
{
peas_object_module_register_extension_type (module,
IDE_TYPE_COMPLETION_PROVIDER,
......
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/builder/plugins">
<gresource prefix="/plugins/html-completion">
<file>html-completion.plugin</file>
</gresource>
</gresources>
[Plugin]
Module=html-completion-plugin
Name=HTML Auto-Completion
Description=Provides auto-completion when authoring HTML documents
Authors=Christian Hergert <christian@hergert.me>
Copyright=Copyright © 2015 Christian Hergert
Builtin=true
Copyright=Copyright © 2015 Christian Hergert
Description=Provides auto-completion when authoring HTML documents
Embedded=_ide_html_completion_register_types
Module=html-completion
Name=HTML Auto-Completion
X-Completion-Provider-Languages=asp,dtl,html,php,css
Embedded=ide_html_completion_register_types
......@@ -20,7 +20,7 @@
#pragma once
#include <ide.h>
#include <libide-sourceview.h>
#include "ide-html-proposals.h"
......
if get_option('with_html_completion')
if get_option('plugin_html_completion')
html_completion_resources = gnome.compile_resources(
'html-completion-resources',
'html-completion.gresource.xml',
c_name: 'gbp_html_completion',
)
html_completion_sources = [
plugins_sources += files([
'html-completion-plugin.c',
'ide-html-completion-provider.c',
'ide-html-proposal.c',
'ide-html-proposals.c',
]
])
plugin_html_completion_resources = gnome.compile_resources(
'gbp-html-completion-resources',
'html-completion.gresource.xml',
c_name: 'gbp_html_completion',
)
gnome_builder_plugins_sources += files(html_completion_sources)
gnome_builder_plugins_sources += html_completion_resources[0]
plugins_sources += plugin_html_completion_resources[0]
endif
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