~aperezdc/kiln

f83212a24d7a7c074c57444f0235ad5c0815c5ec — Adrian Perez de Castro 3 years ago 4931f6a
Allow extras installation: shells, WebExtension

Add a new "install_extras" Meson build option which will enable
installing extras chosen to be built. This covers the JSC shell,
the GTK shell, and the WebExtension.
4 files changed, 12 insertions(+), 0 deletions(-)

M gtkshell/meson.build
M meson_options.txt
M shell/meson.build
M wkext/meson.build
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,
)