M gtkshell/meson.build => gtkshell/meson.build +1 -0
@@ 7,4 7,5 @@ gtkshell_exe = executable('kn-gtk',
webkitgtk_dep,
libkn_dep,
],
+ install: get_option('install_extras'),
)
M meson_options.txt => meson_options.txt +5 -0
@@ 20,3 20,8 @@ option('documentation',
value: 'auto',
description: 'Build reference documentation (needs HotDoc)'
)
+option('install_extras',
+ type: 'boolean',
+ value: false,
+ description: 'Install built extras (JSC shell, GTK shell, WebExtension)'
+)
M shell/meson.build => shell/meson.build +1 -0
@@ 10,4 10,5 @@ shell_exe = executable('kn-jsc',
libkn_dep,
javascriptcore_dep,
],
+ install: get_option('install_extras'),
)
M wkext/meson.build => wkext/meson.build +5 -0
@@ 1,3 1,6 @@
+wkext_install_dir = join_paths(get_option('libexecdir'),
+ 'kiln-@0@-@1@'.format(opt_webkit_port, api_version))
+
wkext_module = shared_module('kiln-webkit-' + opt_webkit_port,
'extension.c',
c_args: [
@@ 8,4 11,6 @@ wkext_module = shared_module('kiln-webkit-' + opt_webkit_port,
libkn_dep,
webkit_extension_dep,
],
+ install: get_option('install_extras'),
+ install_dir: wkext_install_dir,
)