diff --git a/test cases/common/27 library versions/meson.build b/test cases/common/27 library versions/meson.build index 3b2c6e9ea..2e2bef769 100644 --- a/test cases/common/27 library versions/meson.build +++ b/test cases/common/27 library versions/meson.build @@ -5,3 +5,5 @@ shared_library('somelib', 'lib.c', name_suffix : 'suffix', install_dir : 'lib', install : true) + +subdir('subdir') diff --git a/test cases/common/27 library versions/subdir/meson.build b/test cases/common/27 library versions/subdir/meson.build new file mode 100644 index 000000000..b51033d27 --- /dev/null +++ b/test cases/common/27 library versions/subdir/meson.build @@ -0,0 +1,8 @@ +# Test that using files generated with configure_file as sources works. +# We do this inside a subdir so that the path isn't accidentally correct +# because there is no structure in the build dir. +genlib = configure_file(input : '../lib.c', + output : 'genlib.c', + configuration : configuration_data()) +shared_library('genlib', genlib, + install : false)