aboutsummaryrefslogtreecommitdiffstats
path: root/meson/manual tests/5 rpm
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/manual tests/5 rpm
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/manual tests/5 rpm')
-rw-r--r--meson/manual tests/5 rpm/lib.c6
-rw-r--r--meson/manual tests/5 rpm/lib.h1
-rw-r--r--meson/manual tests/5 rpm/main.c8
-rw-r--r--meson/manual tests/5 rpm/meson.build14
4 files changed, 29 insertions, 0 deletions
diff --git a/meson/manual tests/5 rpm/lib.c b/meson/manual tests/5 rpm/lib.c
new file mode 100644
index 000000000..efc230aab
--- /dev/null
+++ b/meson/manual tests/5 rpm/lib.c
@@ -0,0 +1,6 @@
+#include"lib.h"
+
+char *meson_print(void)
+{
+ return "Hello, world!";
+}
diff --git a/meson/manual tests/5 rpm/lib.h b/meson/manual tests/5 rpm/lib.h
new file mode 100644
index 000000000..08fc9611c
--- /dev/null
+++ b/meson/manual tests/5 rpm/lib.h
@@ -0,0 +1 @@
+char *meson_print(void);
diff --git a/meson/manual tests/5 rpm/main.c b/meson/manual tests/5 rpm/main.c
new file mode 100644
index 000000000..8b1d193ee
--- /dev/null
+++ b/meson/manual tests/5 rpm/main.c
@@ -0,0 +1,8 @@
+#include<lib.h>
+#include<stdio.h>
+int main(void)
+{
+ char *t = meson_print();
+ printf("%s", t);
+ return 0;
+}
diff --git a/meson/manual tests/5 rpm/meson.build b/meson/manual tests/5 rpm/meson.build
new file mode 100644
index 000000000..131da3930
--- /dev/null
+++ b/meson/manual tests/5 rpm/meson.build
@@ -0,0 +1,14 @@
+project('test spec', 'c')
+
+rpm = import('rpm')
+dependency('zlib')
+find_program('nonexistprog', required : false)
+
+lib = shared_library('mesontest_shared', ['lib.c', 'lib.h'],
+ version : '0.1', soversion : '0',
+ install : true)
+executable('mesontest-bin', 'main.c',
+ link_with : lib,
+ install : true)
+
+rpm.generate_spec_template()