gplugin/gplugin

90d067db1688
Parents b584814d5f13
Children 4680cb938042
Add option in meson to install helper application

Added two new options in meson that allow choosing whether the helper applications (gplugin-gtk-viewer and gplugin-query) are going to be installed or not

Testing Done:
Compiled a few times switching the two new options between true and false and verifying that the behavior was correct.

Bugs closed: GPLUGIN-129

Reviewed at https://reviews.imfreedom.org/r/159/
--- a/gplugin-gtk-viewer/meson.build Tue Sep 22 00:42:26 2020 -0500
+++ b/gplugin-gtk-viewer/meson.build Mon Oct 12 22:21:22 2020 -0500
@@ -11,7 +11,7 @@
'gplugin-gtk-viewer-window.c',
'gplugin-gtk-viewer-window.h',
dependencies : [gplugin_dep, gplugin_gtk_dep],
- install : true
+ install : get_option('install-gplugin-gtk-viewer')
)
if get_option('help2man')
@@ -22,7 +22,7 @@
'--output', '@OUTPUT@',
gplugin_gtk_viewer],
output : 'gplugin-gtk-viewer.1',
- install : true,
+ install : get_option('install-gplugin-gtk-viewer'),
install_dir : get_option('mandir') / 'man1')
endif
--- a/gplugin-query/meson.build Tue Sep 22 00:42:26 2020 -0500
+++ b/gplugin-query/meson.build Mon Oct 12 22:21:22 2020 -0500
@@ -1,7 +1,7 @@
gplugin_query = executable('gplugin-query',
'gplugin-query.c',
dependencies : [gplugin_dep, GLIB, GOBJECT],
- install : true)
+ install : get_option('install-gplugin-query'))
if get_option('help2man')
custom_target('gplugin-query.1',
@@ -11,7 +11,7 @@
'--output', '@OUTPUT@',
gplugin_query],
output : 'gplugin-query.1',
- install : true,
+ install : get_option('install-gplugin-query'),
install_dir : get_option('mandir') / 'man1')
endif
--- a/meson_options.txt Tue Sep 22 00:42:26 2020 -0500
+++ b/meson_options.txt Mon Oct 12 22:21:22 2020 -0500
@@ -23,6 +23,18 @@
)
option(
+ 'install-gplugin-gtk-viewer',
+ type : 'boolean', value : true,
+ description : 'Whether or not to install the gtk viewer application'
+)
+
+option(
+ 'install-gplugin-query',
+ type : 'boolean', value : true,
+ description : 'Whether or not to install the query application'
+)
+
+option(
'lua',
type : 'boolean', value : true,
description : 'Whether or not to build the Lua plugin loader'