From 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:41:38 +0200 Subject: Adding upstream version 1.0.1. Signed-off-by: Daniel Baumann --- manual tests/5 rpm/lib.c | 6 ++++++ manual tests/5 rpm/lib.h | 1 + manual tests/5 rpm/main.c | 8 ++++++++ manual tests/5 rpm/meson.build | 14 ++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 manual tests/5 rpm/lib.c create mode 100644 manual tests/5 rpm/lib.h create mode 100644 manual tests/5 rpm/main.c create mode 100644 manual tests/5 rpm/meson.build (limited to 'manual tests/5 rpm') diff --git a/manual tests/5 rpm/lib.c b/manual tests/5 rpm/lib.c new file mode 100644 index 0000000..efc230a --- /dev/null +++ b/manual tests/5 rpm/lib.c @@ -0,0 +1,6 @@ +#include"lib.h" + +char *meson_print(void) +{ + return "Hello, world!"; +} diff --git a/manual tests/5 rpm/lib.h b/manual tests/5 rpm/lib.h new file mode 100644 index 0000000..08fc961 --- /dev/null +++ b/manual tests/5 rpm/lib.h @@ -0,0 +1 @@ +char *meson_print(void); diff --git a/manual tests/5 rpm/main.c b/manual tests/5 rpm/main.c new file mode 100644 index 0000000..8b1d193 --- /dev/null +++ b/manual tests/5 rpm/main.c @@ -0,0 +1,8 @@ +#include +#include +int main(void) +{ + char *t = meson_print(); + printf("%s", t); + return 0; +} diff --git a/manual tests/5 rpm/meson.build b/manual tests/5 rpm/meson.build new file mode 100644 index 0000000..131da39 --- /dev/null +++ b/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() -- cgit v1.2.3