diff options
Diffstat (limited to 'meson/test cases/unit/42 rpath order')
6 files changed, 24 insertions, 0 deletions
diff --git a/meson/test cases/unit/42 rpath order/meson.build b/meson/test cases/unit/42 rpath order/meson.build new file mode 100644 index 000000000..a722894e5 --- /dev/null +++ b/meson/test cases/unit/42 rpath order/meson.build @@ -0,0 +1,11 @@ +project('myexe', 'c') + +sub1 = subproject('sub1') +sub1_dep = sub1.get_variable('sub1_dep') + +sub2 = subproject('sub2') +sub2_dep = sub2.get_variable('sub2_dep') + +executable('myexe', + 'myexe.c', + dependencies: [sub1_dep, sub2_dep]) diff --git a/meson/test cases/unit/42 rpath order/myexe.c b/meson/test cases/unit/42 rpath order/myexe.c new file mode 100644 index 000000000..03b2213bb --- /dev/null +++ b/meson/test cases/unit/42 rpath order/myexe.c @@ -0,0 +1,3 @@ +int main(void) { + return 0; +} diff --git a/meson/test cases/unit/42 rpath order/subprojects/sub1/lib.c b/meson/test cases/unit/42 rpath order/subprojects/sub1/lib.c new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/unit/42 rpath order/subprojects/sub1/lib.c diff --git a/meson/test cases/unit/42 rpath order/subprojects/sub1/meson.build b/meson/test cases/unit/42 rpath order/subprojects/sub1/meson.build new file mode 100644 index 000000000..4dd5d0843 --- /dev/null +++ b/meson/test cases/unit/42 rpath order/subprojects/sub1/meson.build @@ -0,0 +1,5 @@ +project('sub1', 'c') + +sub1_lib = library('sub1', 'lib.c') + +sub1_dep = declare_dependency(link_with : sub1_lib) diff --git a/meson/test cases/unit/42 rpath order/subprojects/sub2/lib.c b/meson/test cases/unit/42 rpath order/subprojects/sub2/lib.c new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/meson/test cases/unit/42 rpath order/subprojects/sub2/lib.c diff --git a/meson/test cases/unit/42 rpath order/subprojects/sub2/meson.build b/meson/test cases/unit/42 rpath order/subprojects/sub2/meson.build new file mode 100644 index 000000000..bc3510db3 --- /dev/null +++ b/meson/test cases/unit/42 rpath order/subprojects/sub2/meson.build @@ -0,0 +1,5 @@ +project('sub2', 'c') + +sub2_lib = library('sub2', 'lib.c') + +sub2_dep = declare_dependency(link_with : sub2_lib) |