diff options
Diffstat (limited to 'meson/test cases/common/88 dep fallback/subprojects/boblib/meson.build')
-rw-r--r-- | meson/test cases/common/88 dep fallback/subprojects/boblib/meson.build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/common/88 dep fallback/subprojects/boblib/meson.build b/meson/test cases/common/88 dep fallback/subprojects/boblib/meson.build new file mode 100644 index 000000000..0a72a828d --- /dev/null +++ b/meson/test cases/common/88 dep fallback/subprojects/boblib/meson.build @@ -0,0 +1,18 @@ +project('bob', 'c') + +gensrc_py = find_program('genbob.py') +genbob_h = custom_target('genbob.h', + output : 'genbob.h', + command : [gensrc_py, '@OUTPUT@']) +genbob_c = custom_target('genbob.c', + output : 'genbob.c', + command : [gensrc_py, '@OUTPUT@']) + +boblib = library('bob', ['bob.c', genbob_c]) +bobinc = include_directories('.') + +bob_dep = declare_dependency(link_with : boblib, + sources : [genbob_h], + include_directories : bobinc) + +notfound_dep = dependency('', required: false) |