1 2 3 4 5 6
project('sub', 'c') meson.add_devenv({'TEST_B': '1'}) libfoo = shared_library('foo', 'foo.c') meson.override_dependency('foo', declare_dependency(link_with: libfoo))