[gnome-builder] plugins: copy the .plugin to builddir for tests
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins: copy the .plugin to builddir for tests
- Date: Tue, 20 Jun 2017 01:00:16 +0000 (UTC)
commit f05b191e4f3389c95073a577902ef8baed44e8bb
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 19 17:59:41 2017 -0700
plugins: copy the .plugin to builddir for tests
We need these somewhere predictable for tests, and we never quite got this
right with autotools. However, we can just use configure_file() to copy the
data across in the case of Meson, then install it to the same place that
install_data() would.
plugins/autotools-templates/meson.build | 9 ++++++++-
plugins/autotools/meson.build | 8 +++++++-
plugins/beautifier/meson.build | 9 ++++++++-
plugins/c-pack/meson.build | 8 +++++++-
plugins/cargo/meson.build | 10 +++++++++-
plugins/clang/meson.build | 8 +++++++-
plugins/cmake/meson.build | 9 ++++++++-
plugins/color-picker/meson.build | 9 ++++++++-
plugins/command-bar/meson.build | 8 +++++++-
plugins/comment-code/meson.build | 8 +++++++-
plugins/create-project/meson.build | 8 +++++++-
plugins/ctags/meson.build | 10 ++++++++--
plugins/devhelp/meson.build | 8 +++++++-
plugins/eslint/meson.build | 9 ++++++++-
plugins/file-search/meson.build | 8 +++++++-
plugins/flatpak/meson.build | 8 +++++++-
plugins/fpaste/meson.build | 9 ++++++++-
plugins/gcc/meson.build | 8 +++++++-
plugins/gettext/meson.build | 8 +++++++-
plugins/git/meson.build | 8 +++++++-
plugins/gnome-code-assistance/meson.build | 8 +++++++-
plugins/html-completion/meson.build | 8 +++++++-
plugins/html-preview/meson.build | 9 ++++++++-
plugins/jedi/meson.build | 10 +++++++++-
plugins/jhbuild/meson.build | 10 +++++++++-
plugins/make/meson.build | 9 ++++++++-
plugins/meson-templates/meson.build | 9 ++++++++-
plugins/meson/meson.build | 9 ++++++++-
plugins/mingw/meson.build | 8 +++++++-
plugins/mono/meson.build | 9 ++++++++-
plugins/notification/meson.build | 8 +++++++-
plugins/phpize/meson.build | 9 ++++++++-
plugins/project-tree/meson.build | 8 +++++++-
plugins/python-gi-imports-completion/meson.build | 13 +++++++++----
plugins/python-pack/meson.build | 8 +++++++-
plugins/quick-highlight/meson.build | 8 +++++++-
plugins/retab/meson.build | 9 ++++++++-
plugins/rust-langserv/meson.build | 9 ++++++++-
plugins/rustup/meson.build | 8 +++++++-
plugins/support/meson.build | 8 +++++++-
plugins/symbol-tree/meson.build | 8 +++++++-
plugins/sysmon/meson.build | 8 +++++++-
plugins/sysprof/meson.build | 8 +++++++-
plugins/terminal/meson.build | 8 +++++++-
plugins/todo/meson.build | 9 ++++++++-
plugins/vala-pack/meson.build | 8 +++++++-
plugins/valgrind/meson.build | 9 ++++++++-
plugins/xml-pack/meson.build | 8 +++++++-
48 files changed, 361 insertions(+), 52 deletions(-)
---
diff --git a/plugins/autotools-templates/meson.build b/plugins/autotools-templates/meson.build
index 7b93608..8d94170 100644
--- a/plugins/autotools-templates/meson.build
+++ b/plugins/autotools-templates/meson.build
@@ -3,8 +3,15 @@ if get_option('with_autotools_templates')
autotools_template_datadir = join_paths(plugindatadir, 'autotools_templates')
autotools_template_dir = join_paths(plugindir, 'autotools_templates')
-install_data('autotools-templates.plugin', install_dir: plugindir)
install_data('autotools_templates/__init__.py', install_dir: autotools_template_dir)
install_subdir('autotools_templates/resources', install_dir: autotools_template_datadir)
+configure_file(
+ input: 'autotools-templates.plugin',
+ output: 'autotools-templates.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/autotools/meson.build b/plugins/autotools/meson.build
index 3c3eb2d..52049b1 100644
--- a/plugins/autotools/meson.build
+++ b/plugins/autotools/meson.build
@@ -38,6 +38,12 @@ shared_module('autotools-plugin', autotools_sources,
install_dir: plugindir,
)
-install_data('autotools.plugin', install_dir: plugindir)
+configure_file(
+ input: 'autotools.plugin',
+ output: 'autotools.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/beautifier/meson.build b/plugins/beautifier/meson.build
index a514093..9de245b 100644
--- a/plugins/beautifier/meson.build
+++ b/plugins/beautifier/meson.build
@@ -29,7 +29,14 @@ shared_module('beautifier_plugin', beautifier_sources,
install_dir: plugindir,
)
-install_data('beautifier.plugin', install_dir: plugindir)
install_subdir('data', install_dir: beautifier_datadir)
+configure_file(
+ input: 'beautifier.plugin',
+ output: 'beautifier.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/c-pack/meson.build b/plugins/c-pack/meson.build
index 5192953..e34980b 100644
--- a/plugins/c-pack/meson.build
+++ b/plugins/c-pack/meson.build
@@ -18,6 +18,12 @@ shared_module('c-pack-plugin', c_pack_sources,
install_dir: plugindir,
)
-install_data('c-pack.plugin', install_dir: plugindir)
+configure_file(
+ input: 'c-pack.plugin',
+ output: 'c-pack.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/cargo/meson.build b/plugins/cargo/meson.build
index b901443..f9c1d25 100644
--- a/plugins/cargo/meson.build
+++ b/plugins/cargo/meson.build
@@ -1,5 +1,13 @@
if get_option('with_cargo')
-install_data(['cargo.plugin', 'cargo_plugin.py'], install_dir: plugindir)
+install_data('cargo_plugin.py', install_dir: plugindir)
+
+configure_file(
+ input: 'cargo.plugin',
+ output: 'cargo.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/clang/meson.build b/plugins/clang/meson.build
index f24c76f..40697b3 100644
--- a/plugins/clang/meson.build
+++ b/plugins/clang/meson.build
@@ -66,6 +66,12 @@ shared_module('clang-plugin', clang_sources,
install_dir: plugindir,
)
-install_data('clang.plugin', install_dir: plugindir)
+configure_file(
+ input: 'clang.plugin',
+ output: 'clang.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/cmake/meson.build b/plugins/cmake/meson.build
index 6d0da21..0ae9b70 100644
--- a/plugins/cmake/meson.build
+++ b/plugins/cmake/meson.build
@@ -1,6 +1,13 @@
if get_option('with_cmake')
-install_data('cmake.plugin', install_dir: plugindir)
install_data('cmake_plugin/__init__.py', install_dir: join_paths(plugindir, 'cmake_plugin'))
+configure_file(
+ input: 'cmake.plugin',
+ output: 'cmake.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/color-picker/meson.build b/plugins/color-picker/meson.build
index 7c35c2c..24ff045 100644
--- a/plugins/color-picker/meson.build
+++ b/plugins/color-picker/meson.build
@@ -39,9 +39,16 @@ shared_module('color-picker-plugin', color_picker_sources,
install_dir: plugindir,
)
-install_data('color-picker.plugin', install_dir: plugindir)
install_data('gsettings/org.gnome.builder.plugins.color_picker_plugin.gschema.xml',
install_dir: schema_dir,
)
+configure_file(
+ input: 'color-picker.plugin',
+ output: 'color-picker.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/command-bar/meson.build b/plugins/command-bar/meson.build
index 080f7ec..1ce10b7 100644
--- a/plugins/command-bar/meson.build
+++ b/plugins/command-bar/meson.build
@@ -44,6 +44,12 @@ shared_module('command-bar', command_bar_sources,
install_dir: plugindir,
)
-install_data('command-bar.plugin', install_dir: plugindir)
+configure_file(
+ input: 'command-bar.plugin',
+ output: 'command-bar.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/comment-code/meson.build b/plugins/comment-code/meson.build
index 39597d0..17f8f40 100644
--- a/plugins/comment-code/meson.build
+++ b/plugins/comment-code/meson.build
@@ -21,6 +21,12 @@ shared_module('comment-code-plugin', comment_code_sources,
install_dir: plugindir,
)
-install_data('comment-code.plugin', install_dir: plugindir)
+configure_file(
+ input: 'comment-code.plugin',
+ output: 'comment-code.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/create-project/meson.build b/plugins/create-project/meson.build
index c5c5863..685805c 100644
--- a/plugins/create-project/meson.build
+++ b/plugins/create-project/meson.build
@@ -27,6 +27,12 @@ shared_module('create-project-plugin', create_project_sources,
install_dir: plugindir,
)
-install_data('create-project.plugin', install_dir: plugindir)
+configure_file(
+ input: 'create-project.plugin',
+ output: 'create-project.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/ctags/meson.build b/plugins/ctags/meson.build
index 776820a..f2d9a62 100644
--- a/plugins/ctags/meson.build
+++ b/plugins/ctags/meson.build
@@ -14,7 +14,7 @@ ctags_sources = [
'ide-ctags-index.h',
'ide-ctags-service.c',
'ide-ctags-service.h',
- 'ide-ctags-symbol-node.c',
+ 'ide-ctags-symbol-node.c',
'ide-ctags-symbol-resolver.c',
'ide-ctags-symbol-resolver.h',
'ide-ctags-symbol-tree.c',
@@ -31,6 +31,12 @@ shared_module('ctags-plugin', ctags_sources,
install_dir: plugindir,
)
-install_data('ctags.plugin', install_dir: plugindir)
+configure_file(
+ input: 'ctags.plugin',
+ output: 'ctags.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/devhelp/meson.build b/plugins/devhelp/meson.build
index 9f10d76..26c752b 100644
--- a/plugins/devhelp/meson.build
+++ b/plugins/devhelp/meson.build
@@ -35,6 +35,12 @@ shared_module('devhelp-plugin', devhelp_sources,
install_dir: plugindir,
)
-install_data('devhelp.plugin', install_dir: plugindir)
+configure_file(
+ input: 'devhelp.plugin',
+ output: 'devhelp.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/eslint/meson.build b/plugins/eslint/meson.build
index d175839..c2b227c 100644
--- a/plugins/eslint/meson.build
+++ b/plugins/eslint/meson.build
@@ -1,10 +1,17 @@
if get_option('with_eslint')
eslint_dir = join_paths(plugindir, 'eslint_plugin')
-install_data('eslint.plugin', install_dir: plugindir)
install_data('eslint_plugin/__init__.py', install_dir: eslint_dir)
install_data('org.gnome.builder.plugins.eslint.gschema.xml',
install_dir: schema_dir)
+configure_file(
+ input: 'eslint.plugin',
+ output: 'eslint.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/file-search/meson.build b/plugins/file-search/meson.build
index 047d91d..24e1ec3 100644
--- a/plugins/file-search/meson.build
+++ b/plugins/file-search/meson.build
@@ -17,6 +17,12 @@ shared_module('file-search', file_search_sources,
install_dir: plugindir,
)
-install_data('file-search.plugin', install_dir: plugindir)
+configure_file(
+ input: 'file-search.plugin',
+ output: 'file-search.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/flatpak/meson.build b/plugins/flatpak/meson.build
index 226bccc..b43c60c 100644
--- a/plugins/flatpak/meson.build
+++ b/plugins/flatpak/meson.build
@@ -61,6 +61,12 @@ shared_module('flatpak-plugin', flatpak_sources,
install_dir: plugindir,
)
-install_data('flatpak.plugin', install_dir: plugindir)
+configure_file(
+ input: 'flatpak.plugin',
+ output: 'flatpak.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/fpaste/meson.build b/plugins/fpaste/meson.build
index 6d9a3be..13534a2 100644
--- a/plugins/fpaste/meson.build
+++ b/plugins/fpaste/meson.build
@@ -3,8 +3,15 @@ if get_option('with_fpaste')
fpaste_datadir = join_paths(plugindatadir, 'fpaste_plugin')
fpaste_dir = join_paths(plugindir, 'fpaste_plugin')
-install_data('fpaste.plugin', install_dir: plugindir)
install_data('fpaste_plugin/__init__.py', install_dir: fpaste_dir)
install_subdir('fpaste_plugin/gtk', install_dir: fpaste_datadir)
+configure_file(
+ input: 'fpaste.plugin',
+ output: 'fpaste.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/gcc/meson.build b/plugins/gcc/meson.build
index 1e75261..8d6f930 100644
--- a/plugins/gcc/meson.build
+++ b/plugins/gcc/meson.build
@@ -14,6 +14,12 @@ shared_module('gcc-plugin', gcc_sources,
install_dir: plugindir,
)
-install_data('gcc.plugin', install_dir: plugindir)
+configure_file(
+ input: 'gcc.plugin',
+ output: 'gcc.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/gettext/meson.build b/plugins/gettext/meson.build
index e817363..841f522 100644
--- a/plugins/gettext/meson.build
+++ b/plugins/gettext/meson.build
@@ -14,6 +14,12 @@ shared_module('gettext-plugin', gettext_sources,
install_dir: plugindir,
)
-install_data('gettext.plugin', install_dir: plugindir)
+configure_file(
+ input: 'gettext.plugin',
+ output: 'gettext.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/git/meson.build b/plugins/git/meson.build
index 2ed3f90..6fe4d68 100644
--- a/plugins/git/meson.build
+++ b/plugins/git/meson.build
@@ -37,6 +37,12 @@ shared_module('git-plugin', git_sources,
install_dir: plugindir,
)
-install_data('git.plugin', install_dir: plugindir)
+configure_file(
+ input: 'git.plugin',
+ output: 'git.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/gnome-code-assistance/meson.build b/plugins/gnome-code-assistance/meson.build
index 600d132..44d4ba6 100644
--- a/plugins/gnome-code-assistance/meson.build
+++ b/plugins/gnome-code-assistance/meson.build
@@ -24,7 +24,13 @@ shared_module('gnome-code-assistance-plugin', gnome_code_assistance_sources,
install_dir: plugindir,
)
-install_data('gnome-code-assistance.plugin', install_dir: plugindir)
+configure_file(
+ input: 'gnome-code-assistance.plugin',
+ output: 'gnome-code-assistance.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
install_data('org.gnome.builder.gnome-code-assistance.gschema.xml',
install_dir: schema_dir)
diff --git a/plugins/html-completion/meson.build b/plugins/html-completion/meson.build
index d54c7d8..f40dbe0 100644
--- a/plugins/html-completion/meson.build
+++ b/plugins/html-completion/meson.build
@@ -13,6 +13,12 @@ shared_module('html-completion-plugin', html_completion_sources,
install_dir: plugindir,
)
-install_data('html-completion.plugin', install_dir: plugindir)
+configure_file(
+ input: 'html-completion.plugin',
+ output: 'html-completion.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/html-preview/meson.build b/plugins/html-preview/meson.build
index b3444c3..b58dc8e 100644
--- a/plugins/html-preview/meson.build
+++ b/plugins/html-preview/meson.build
@@ -3,7 +3,6 @@ if get_option('with_html_preview')
html_preview_datadir = join_paths(plugindatadir, 'html_preview_plugin')
html_preview_dir = join_paths(plugindir, 'html_preview_plugin')
-install_data('html-preview.plugin', install_dir: plugindir)
install_data('html_preview_plugin/__init__.py', install_dir: html_preview_dir)
install_data([
'html_preview_plugin/markdown-view.js',
@@ -12,4 +11,12 @@ install_data([
], install_dir: html_preview_datadir)
install_subdir('html_preview_plugin/gtk', install_dir: html_preview_datadir)
+configure_file(
+ input: 'html-preview.plugin',
+ output: 'html-preview.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/jedi/meson.build b/plugins/jedi/meson.build
index 6729699..bfe1a62 100644
--- a/plugins/jedi/meson.build
+++ b/plugins/jedi/meson.build
@@ -1,5 +1,13 @@
if get_option('with_jedi')
-install_data(['jedi.plugin', 'jedi_plugin.py'], install_dir: plugindir)
+install_data('jedi_plugin.py', install_dir: plugindir)
+
+configure_file(
+ input: 'jedi.plugin',
+ output: 'jedi.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/jhbuild/meson.build b/plugins/jhbuild/meson.build
index 400e3e0..ac948fe 100644
--- a/plugins/jhbuild/meson.build
+++ b/plugins/jhbuild/meson.build
@@ -1,5 +1,13 @@
if get_option('with_jhbuild')
-install_data(['jhbuild.plugin', 'jhbuild_plugin.py'], install_dir: plugindir)
+install_data('jhbuild_plugin.py', install_dir: plugindir)
+
+configure_file(
+ input: 'jhbuild.plugin',
+ output: 'jhbuild.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/make/meson.build b/plugins/make/meson.build
index b755959..2bf34d1 100644
--- a/plugins/make/meson.build
+++ b/plugins/make/meson.build
@@ -1,6 +1,13 @@
if get_option('with_make')
-install_data('make.plugin', install_dir: plugindir)
install_data('make_plugin/__init__.py', install_dir: join_paths(plugindir, 'make_plugin'))
+configure_file(
+ input: 'make.plugin',
+ output: 'make.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/meson-templates/meson.build b/plugins/meson-templates/meson.build
index 4c4139f..ba1c780 100644
--- a/plugins/meson-templates/meson.build
+++ b/plugins/meson-templates/meson.build
@@ -3,8 +3,15 @@ if get_option('with_meson_templates')
meson_template_datadir = join_paths(plugindatadir, 'meson_templates')
meson_template_dir = join_paths(plugindir, 'meson_templates')
-install_data('meson-templates.plugin', install_dir: plugindir)
install_data('meson_templates/__init__.py', install_dir: meson_template_dir)
install_subdir('meson_templates/resources', install_dir: meson_template_datadir)
+configure_file(
+ input: 'meson-templates.plugin',
+ output: 'meson-templates.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/meson/meson.build b/plugins/meson/meson.build
index 55aa62e..dfd90a7 100644
--- a/plugins/meson/meson.build
+++ b/plugins/meson/meson.build
@@ -1,6 +1,13 @@
if get_option('with_meson')
-install_data('meson.plugin', install_dir: plugindir)
install_data('meson_plugin/__init__.py', install_dir: join_paths(plugindir, 'meson_plugin'))
+configure_file(
+ input: 'meson.plugin',
+ output: 'meson.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/mingw/meson.build b/plugins/mingw/meson.build
index 582fed4..7821666 100644
--- a/plugins/mingw/meson.build
+++ b/plugins/mingw/meson.build
@@ -16,6 +16,12 @@ shared_module('mingw-plugin', mingw_sources,
install_dir: plugindir,
)
-install_data('mingw.plugin', install_dir: plugindir)
+configure_file(
+ input: 'mingw.plugin',
+ output: 'mingw.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/mono/meson.build b/plugins/mono/meson.build
index bd52554..bad0072 100644
--- a/plugins/mono/meson.build
+++ b/plugins/mono/meson.build
@@ -1,6 +1,13 @@
if get_option('with_mono')
-install_data('mono.plugin', install_dir: plugindir)
install_data('mono_plugin.py', install_dir: plugindir)
+configure_file(
+ input: 'mono.plugin',
+ output: 'mono.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/notification/meson.build b/plugins/notification/meson.build
index 7e75b87..5445df5 100644
--- a/plugins/notification/meson.build
+++ b/plugins/notification/meson.build
@@ -14,6 +14,12 @@ shared_module('notification-plugin', notification_sources,
install_dir: plugindir,
)
-install_data('notification.plugin', install_dir: plugindir)
+configure_file(
+ input: 'notification.plugin',
+ output: 'notification.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/phpize/meson.build b/plugins/phpize/meson.build
index a75e07a..d1ff850 100644
--- a/plugins/phpize/meson.build
+++ b/plugins/phpize/meson.build
@@ -1,6 +1,13 @@
if get_option('with_phpize')
-install_data('phpize.plugin', install_dir: plugindir)
install_data('phpize_plugin.py', install_dir: plugindir)
+configure_file(
+ input: 'phpize.plugin',
+ output: 'phpize.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/project-tree/meson.build b/plugins/project-tree/meson.build
index ef1ec4e..2962607 100644
--- a/plugins/project-tree/meson.build
+++ b/plugins/project-tree/meson.build
@@ -48,6 +48,12 @@ shared_module('project-tree-plugin', project_tree_sources,
install_dir: plugindir,
)
-install_data('project-tree.plugin', install_dir: plugindir)
+configure_file(
+ input: 'project-tree.plugin',
+ output: 'project-tree.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/python-gi-imports-completion/meson.build
b/plugins/python-gi-imports-completion/meson.build
index 25b7e08..496138e 100644
--- a/plugins/python-gi-imports-completion/meson.build
+++ b/plugins/python-gi-imports-completion/meson.build
@@ -1,8 +1,13 @@
if get_option('with_python_gi_imports_completion')
-install_data([
- 'python-gi-imports-completion.plugin',
- 'python_gi_imports_completion.py'
-], install_dir: plugindir)
+install_data('python_gi_imports_completion.py', install_dir: plugindir)
+
+configure_file(
+ input: 'python-gi-imports-completion.plugin',
+ output: 'python-gi-imports-completion.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/python-pack/meson.build b/plugins/python-pack/meson.build
index c63083f..6e728e2 100644
--- a/plugins/python-pack/meson.build
+++ b/plugins/python-pack/meson.build
@@ -16,6 +16,12 @@ shared_module('python-pack-plugin', python_pack_sources,
install_dir: plugindir,
)
-install_data('python-pack.plugin', install_dir: plugindir)
+configure_file(
+ input: 'python-pack.plugin',
+ output: 'python-pack.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/quick-highlight/meson.build b/plugins/quick-highlight/meson.build
index 22187ff..c8e7b32 100644
--- a/plugins/quick-highlight/meson.build
+++ b/plugins/quick-highlight/meson.build
@@ -16,6 +16,12 @@ shared_module('quick-highlight-plugin', quick_highlight_sources,
install_dir: plugindir,
)
-install_data('quick-highlight.plugin', install_dir: plugindir)
+configure_file(
+ input: 'quick-highlight.plugin',
+ output: 'quick-highlight.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/retab/meson.build b/plugins/retab/meson.build
index 09f0bf9..9701e52 100644
--- a/plugins/retab/meson.build
+++ b/plugins/retab/meson.build
@@ -20,6 +20,13 @@ shared_module('retab-plugin', retab_sources,
install: true,
install_dir: plugindir,
)
-install_data('retab.plugin', install_dir: plugindir)
+
+configure_file(
+ input: 'retab.plugin',
+ output: 'retab.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/rust-langserv/meson.build b/plugins/rust-langserv/meson.build
index 8e5eff9..cb3cb76 100644
--- a/plugins/rust-langserv/meson.build
+++ b/plugins/rust-langserv/meson.build
@@ -1,6 +1,13 @@
if get_option('with_rust_langserv')
-install_data('rust-langserv.plugin', install_dir: plugindir)
install_data('rust_langserv_plugin.py', install_dir: plugindir)
+configure_file(
+ input: 'rust-langserv.plugin',
+ output: 'rust-langserv.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/rustup/meson.build b/plugins/rustup/meson.build
index c5da7a1..f647926 100644
--- a/plugins/rustup/meson.build
+++ b/plugins/rustup/meson.build
@@ -1,9 +1,15 @@
if get_option('with_rustup')
rustup_dir = join_paths(plugindir, 'rustup_plugin')
-install_data('rustup.plugin', install_dir: plugindir)
install_data('rustup_plugin/__init__.py', install_dir: rustup_dir)
install_subdir('rustup_plugin/resources', install_dir: rustup_dir)
+configure_file(
+ input: 'rustup.plugin',
+ output: 'rustup.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/support/meson.build b/plugins/support/meson.build
index 41a5b47..4a931cf 100644
--- a/plugins/support/meson.build
+++ b/plugins/support/meson.build
@@ -23,6 +23,12 @@ shared_module('support-plugin', support_sources,
install_dir: plugindir,
)
-install_data('support.plugin', install_dir: plugindir)
+configure_file(
+ input: 'support.plugin',
+ output: 'support.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/symbol-tree/meson.build b/plugins/symbol-tree/meson.build
index 3bffeb8..2d43ced 100644
--- a/plugins/symbol-tree/meson.build
+++ b/plugins/symbol-tree/meson.build
@@ -25,6 +25,12 @@ shared_module('symbol-tree', symbol_tree_sources,
install_dir: plugindir,
)
-install_data('symbol-tree.plugin', install_dir: plugindir)
+configure_file(
+ input: 'symbol-tree.plugin',
+ output: 'symbol-tree.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/sysmon/meson.build b/plugins/sysmon/meson.build
index 895763c..a7664d7 100644
--- a/plugins/sysmon/meson.build
+++ b/plugins/sysmon/meson.build
@@ -23,6 +23,12 @@ shared_module('sysmon', sysmon_sources,
install_dir: plugindir,
)
-install_data('sysmon.plugin', install_dir: plugindir)
+configure_file(
+ input: 'sysmon.plugin',
+ output: 'sysmon.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/sysprof/meson.build b/plugins/sysprof/meson.build
index 6e3ca20..3a6803e 100644
--- a/plugins/sysprof/meson.build
+++ b/plugins/sysprof/meson.build
@@ -28,6 +28,12 @@ shared_module('sysprof-plugin', sysprof_sources,
install_dir: plugindir,
)
-install_data('sysprof.plugin', install_dir: plugindir)
+configure_file(
+ input: 'sysprof.plugin',
+ output: 'sysprof.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/terminal/meson.build b/plugins/terminal/meson.build
index 9288c1e..a59dc7b 100644
--- a/plugins/terminal/meson.build
+++ b/plugins/terminal/meson.build
@@ -41,6 +41,12 @@ shared_module('terminal', terminal_sources,
install_dir: plugindir,
)
-install_data('terminal.plugin', install_dir: plugindir)
+configure_file(
+ input: 'terminal.plugin',
+ output: 'terminal.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/todo/meson.build b/plugins/todo/meson.build
index 5e3ae89..7bb146e 100644
--- a/plugins/todo/meson.build
+++ b/plugins/todo/meson.build
@@ -1,6 +1,13 @@
if get_option('with_todo')
-install_data('todo.plugin', install_dir: plugindir)
install_subdir('todo_plugin', install_dir: plugindir)
+configure_file(
+ input: 'todo.plugin',
+ output: 'todo.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/vala-pack/meson.build b/plugins/vala-pack/meson.build
index 97b91f6..855592a 100644
--- a/plugins/vala-pack/meson.build
+++ b/plugins/vala-pack/meson.build
@@ -105,6 +105,12 @@ shared_module('vala-pack-plugin', vala_pack_sources,
install_dir: plugindir,
)
-install_data('vala-pack.plugin', install_dir: plugindir)
+configure_file(
+ input: 'vala-pack.plugin',
+ output: 'vala-pack.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
diff --git a/plugins/valgrind/meson.build b/plugins/valgrind/meson.build
index 8443853..a2e106c 100644
--- a/plugins/valgrind/meson.build
+++ b/plugins/valgrind/meson.build
@@ -1,6 +1,13 @@
if get_option('with_valgrind')
-install_data('valgrind.plugin', install_dir: plugindir)
install_data('valgrind_plugin/__init__.py', install_dir: join_paths(plugindir, 'valgrind_plugin'))
+configure_file(
+ input: 'valgrind.plugin',
+ output: 'valgrind.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
+
endif
diff --git a/plugins/xml-pack/meson.build b/plugins/xml-pack/meson.build
index 7e9939c..854c3ee 100644
--- a/plugins/xml-pack/meson.build
+++ b/plugins/xml-pack/meson.build
@@ -46,6 +46,12 @@ shared_module('xml-pack-plugin', xml_pack_sources,
install_dir: plugindir,
)
-install_data('xml-pack.plugin', install_dir: plugindir)
+configure_file(
+ input: 'xml-pack.plugin',
+ output: 'xml-pack.plugin',
+ configuration: configuration_data(),
+ install: true,
+ install_dir: plugindir,
+)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]