1project('link_depends_indexed_custom_target', 'c') 2 3if meson.backend().startswith('vs') 4 # FIXME: Broken on the VS backends 5 error('MESON_SKIP_TEST see https://github.com/mesonbuild/meson/issues/1799') 6endif 7 8cmd = find_program('make_file.py') 9 10dep_files = custom_target('gen_dep', 11 command: [cmd, '@OUTPUT@'], 12 output: ['dep_file1', 'dep_file2']) 13 14exe = executable('foo', 'foo.c', 15 link_depends: dep_files[1], 16 c_args: ['-DDEPFILE="' + dep_files[0].full_path()+ '"']) 17 18# check that dep_file1 exists, which means that link_depends target ran 19test('runtest', exe) 20