[gnome-builder/wip/chergert/langserv] build: add --enable-rust-langserv-plugin



commit 193395c80a44a64865813e6b631e405c82fefb5e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 24 15:10:04 2016 -0700

    build: add --enable-rust-langserv-plugin
    
    This hooks up the build system for the Rust Language Server plugin. This
    should allow making things work without `make run`.

 configure.ac                       |    2 ++
 plugins/Makefile.am                |    1 +
 plugins/rust-langserv/Makefile.am  |   12 ++++++++++++
 plugins/rust-langserv/configure.ac |   12 ++++++++++++
 4 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f9e9ced..6a75be7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -309,6 +309,7 @@ m4_include([plugins/project-tree/configure.ac])
 m4_include([plugins/python-gi-imports-completion/configure.ac])
 m4_include([plugins/python-pack/configure.ac])
 m4_include([plugins/quick-highlight/configure.ac])
+m4_include([plugins/rust-langserv/configure.ac])
 m4_include([plugins/support/configure.ac])
 m4_include([plugins/symbol-tree/configure.ac])
 m4_include([plugins/sysmon/configure.ac])
@@ -615,6 +616,7 @@ echo "  Python GObject Introspection ......... : ${enable_python_gi_imports_comp
 echo "  Python Jedi Autocompletion ........... : ${enable_jedi_plugin}"
 echo "  Python Language Pack ................. : ${enable_python_pack_plugin}"
 echo "  Quick Highlight ...................... : ${enable_quick_highlight_plugin}"
+echo "  Rust Language Server ................. : ${enable_rust_langserv_plugin}"
 echo "  Support .............................. : ${enable_support_plugin}"
 echo "  System Monitor ....................... : ${enable_sysmon_plugin}"
 echo "  Sysprof System Profiler .............. : ${enable_sysprof_plugin}"
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 21ed04b..4f633ab 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -28,6 +28,7 @@ SUBDIRS = \
        python-gi-imports-completion \
        python-pack \
        quick-highlight \
+       rust-langserv \
        support \
        symbol-tree \
        sysmon \
diff --git a/plugins/rust-langserv/Makefile.am b/plugins/rust-langserv/Makefile.am
new file mode 100644
index 0000000..33946f4
--- /dev/null
+++ b/plugins/rust-langserv/Makefile.am
@@ -0,0 +1,12 @@
+if ENABLE_RUST_LANGSERV_PLUGIN
+
+EXTRA_DIST = $(plugin_DATA)
+
+plugindir = $(libdir)/gnome-builder/plugins
+dist_plugin_DATA = \
+       rust-langserv.plugin \
+       rust_langserv_plugin.py
+
+endif
+
+-include $(top_srcdir)/git.mk
diff --git a/plugins/rust-langserv/configure.ac b/plugins/rust-langserv/configure.ac
new file mode 100644
index 0000000..650ad3c
--- /dev/null
+++ b/plugins/rust-langserv/configure.ac
@@ -0,0 +1,12 @@
+# --enable-rust-langserv-plugin=yes/no
+AC_ARG_ENABLE([rust-langserv-plugin],
+              [AS_HELP_STRING([--enable-rust-langserv-plugin=@<:@yes/no@:>@],
+                              [Build with support for Rust Language Server integration.])],
+              [enable_rust_langserv_plugin=$enableval],
+              [enable_rust_langserv_plugin=yes])
+
+# for if ENABLE_RUST_LANGSERV_PLUGIN in Makefile.am
+AM_CONDITIONAL(ENABLE_RUST_LANGSERV_PLUGIN, test x$enable_rust_langserv_plugin = xyes)
+
+# Ensure our makefile is generated by autoconf
+AC_CONFIG_FILES([plugins/rust-langserv/Makefile])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]