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
|
libhelloworld_name = 'helloworld'
libhelloworld_c = [
'peasdemo-hello-world-configurable.c',
'peasdemo-hello-world-plugin.c',
]
libhelloworld_plugin_data = [
'helloworld.plugin',
]
libhelloworld_c_args = [
'-DHAVE_CONFIG_H',
]
libhelloworld_lib = shared_library(
libhelloworld_name,
libhelloworld_c,
include_directories: rootdir,
dependencies: [gtk_dep, libpeas_gtk_dep],
c_args: project_c_args + libhelloworld_c_args,
install_dir: join_paths(peas_demo_plugins_dir, 'helloworld'),
install: true,
)
custom_target(
'lib@0@-data'.format(libhelloworld_name),
input: libhelloworld_plugin_data,
output: libhelloworld_plugin_data,
command: [copyfile_script, '@INPUT@', '@OUTDIR@'],
build_by_default: true,
install_dir: join_paths(peas_demo_plugins_dir, 'helloworld'),
install: true,
)
|