aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/12 promote/subprojects/s2
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/12 promote/subprojects/s2
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/12 promote/subprojects/s2')
-rw-r--r--meson/test cases/unit/12 promote/subprojects/s2/meson.build6
-rw-r--r--meson/test cases/unit/12 promote/subprojects/s2/s2.c6
-rw-r--r--meson/test cases/unit/12 promote/subprojects/s2/subprojects/athing.wrap1
-rw-r--r--meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/meson.build4
-rw-r--r--meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/scommon_ok.c3
5 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/unit/12 promote/subprojects/s2/meson.build b/meson/test cases/unit/12 promote/subprojects/s2/meson.build
new file mode 100644
index 000000000..32bcf8f39
--- /dev/null
+++ b/meson/test cases/unit/12 promote/subprojects/s2/meson.build
@@ -0,0 +1,6 @@
+project('s2', 'c')
+
+sc = subproject('scommon')
+
+executable('s2', 's2.c', link_with : sc.get_variable('clib'))
+
diff --git a/meson/test cases/unit/12 promote/subprojects/s2/s2.c b/meson/test cases/unit/12 promote/subprojects/s2/s2.c
new file mode 100644
index 000000000..2a6d1e63d
--- /dev/null
+++ b/meson/test cases/unit/12 promote/subprojects/s2/s2.c
@@ -0,0 +1,6 @@
+int func();
+
+
+int main(int argc, char **argv) {
+ return func() != 42;
+}
diff --git a/meson/test cases/unit/12 promote/subprojects/s2/subprojects/athing.wrap b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/athing.wrap
new file mode 100644
index 000000000..11b217878
--- /dev/null
+++ b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/athing.wrap
@@ -0,0 +1 @@
+[wrap-file]
diff --git a/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/meson.build b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/meson.build
new file mode 100644
index 000000000..e0d8c7ddc
--- /dev/null
+++ b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/meson.build
@@ -0,0 +1,4 @@
+project('scommon', 'c')
+
+clib = static_library('scommon', 'scommon_ok.c')
+
diff --git a/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/scommon_ok.c b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/scommon_ok.c
new file mode 100644
index 000000000..652f4eb13
--- /dev/null
+++ b/meson/test cases/unit/12 promote/subprojects/s2/subprojects/scommon/scommon_ok.c
@@ -0,0 +1,3 @@
+int func() {
+ return 42;
+}