| 1 |
libhelloworld_name = 'helloworld' |
| 2 |
|
| 3 |
libhelloworld_c = [ |
| 4 |
'peasdemo-hello-world-configurable.c', |
| 5 |
'peasdemo-hello-world-plugin.c', |
| 6 |
] |
| 7 |
|
| 8 |
libhelloworld_plugin_data = [ |
| 9 |
'helloworld.plugin', |
| 10 |
] |
| 11 |
|
| 12 |
libhelloworld_c_args = [ |
| 13 |
'-DHAVE_CONFIG_H', |
| 14 |
] |
| 15 |
|
| 16 |
libhelloworld_lib = shared_library( |
| 17 |
libhelloworld_name, |
| 18 |
libhelloworld_c, |
| 19 |
include_directories: rootdir, |
| 20 |
dependencies: [gtk_dep, libpeas_gtk_dep], |
| 21 |
c_args: project_c_args + libhelloworld_c_args, |
| 22 |
install_dir: join_paths(peas_demo_plugins_dir, 'helloworld'), |
| 23 |
install: true, |
| 24 |
) |
| 25 |
|
| 26 |
custom_target( |
| 27 |
'lib@0@-data'.format(libhelloworld_name), |
| 28 |
input: libhelloworld_plugin_data, |
| 29 |
output: libhelloworld_plugin_data, |
| 30 |
command: [copyfile_script, '@INPUT@', '@OUTDIR@'], |
| 31 |
build_by_default: true, |
| 32 |
install_dir: join_paths(peas_demo_plugins_dir, 'helloworld'), |
| 33 |
install: true, |
| 34 |
) |