diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/42 rpath order | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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) |