diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-19 13:31:40 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-04 09:44:32 -0800 |
commit | 8d2940024bd16919bf7772334dd0048604abecfb (patch) | |
tree | ea1e632bf53aa68b7328cf4dcb120a1e51969553 /test cases | |
parent | 5ef824b2f3649bde1239d4b23c2bd20ecea795cf (diff) | |
download | meson-8d2940024bd16919bf7772334dd0048604abecfb.zip meson-8d2940024bd16919bf7772334dd0048604abecfb.tar.gz meson-8d2940024bd16919bf7772334dd0048604abecfb.tar.bz2 |
allow passing generated objects in the "objects" keyword argument
Generated objects can already be passed in the "objects" keyword argument
as long as you go through an extract_objects() indirection. Allow the
same even directly, since that is more intuitive than having to add them
to "sources".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/15 prebuilt object/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/unit/15 prebuilt object/meson.build b/test cases/unit/15 prebuilt object/meson.build index b542d1c..81aa2ae 100644 --- a/test cases/unit/15 prebuilt object/meson.build +++ b/test cases/unit/15 prebuilt object/meson.build @@ -35,6 +35,12 @@ e += executable('exe5', 'main.c', ct[0]) sl2 = static_library('lib6', sources: ct) e += executable('exe6', sources: 'main.c', objects: sl2.extract_all_objects(recursive: true)) +e += executable('exe7', sources: 'main.c', objects: ct) +e += executable('exe8', sources: 'main.c', objects: ct[0]) + +sl3 = static_library('lib9', objects: ct) +e += executable('exe9', sources: 'main.c', objects: sl2.extract_all_objects(recursive: true)) + foreach i : e test(i.name(), i) endforeach |