1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
plugin_name = 'pacrunner-duktape'
if get_option(plugin_name)
duktape_dep = dependency('duktape')
plugin_src = [
'@0@.c'.format(plugin_name),
]
plugin_data = [
'@0@.plugin'.format(plugin_name),
]
plugin_lib = shared_module(
plugin_name,
plugin_src,
include_directories: px_backend_inc,
c_args: px_backend_c_args,
dependencies: [px_backend_dep, duktape_dep, ws2_32_dep],
install_dir: join_paths(px_plugins_dir, plugin_name),
install: true,
name_suffix: module_suffix,
)
# Starting with Meson 0.64 this can be replaced with fs.copyfile
custom_target(
'@0@-data'.format(plugin_name),
input: plugin_data,
output: plugin_data,
command: ['cp', '@INPUT@', '@OUTDIR@'],
build_by_default: true,
install_dir: join_paths(px_plugins_dir, plugin_name),
install: true,
)
endif
|