| 1 |
project('dependency variable resource') |
| 2 |
|
| 3 |
files_dep = declare_dependency( |
| 4 |
variables: [ |
| 5 |
'pkgdatadir=@0@/subdir'.format(meson.current_source_dir()), |
| 6 |
'pkgdatadir2=@0@/subdir2'.format(meson.current_source_dir()), |
| 7 |
'pkgdatadir3=@0@'.format(meson.current_source_dir()), |
| 8 |
] |
| 9 |
) |
| 10 |
|
| 11 |
install_data('subdir/foo.c', install_dir: get_option('datadir') / 'subdir') |
| 12 |
install_subdir('subdir2', install_dir: get_option('datadir')) |
| 13 |
install_data('foo.c', install_dir: get_option('datadir')) |
| 14 |
|
| 15 |
import('pkgconfig').generate( |
| 16 |
name: 'depvar_resource', |
| 17 |
description: 'Get a resource file from pkgconfig or a subproject', |
| 18 |
version: '0.1', |
| 19 |
variables: [ |
| 20 |
'pkgdatadir=${datadir}/subdir', |
| 21 |
'pkgdatadir2=${datadir}/subdir2', |
| 22 |
], |
| 23 |
uninstalled_variables: [ |
| 24 |
'pkgdatadir=@0@/subdir'.format(meson.current_source_dir()), |
| 25 |
'pkgdatadir2=@0@/subdir2'.format(meson.current_source_dir()), |
| 26 |
'pkgdatadir3=@0@'.format(meson.current_source_dir()), |
| 27 |
], |
| 28 |
dataonly: true, |
| 29 |
) |