From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/manual tests/10 svn wrap/meson.build | 10 ++++++++++ meson/manual tests/10 svn wrap/prog.c | 6 ++++++ .../manual tests/10 svn wrap/subprojects/samplesubproject.wrap | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 meson/manual tests/10 svn wrap/meson.build create mode 100644 meson/manual tests/10 svn wrap/prog.c create mode 100644 meson/manual tests/10 svn wrap/subprojects/samplesubproject.wrap (limited to 'meson/manual tests/10 svn wrap') diff --git a/meson/manual tests/10 svn wrap/meson.build b/meson/manual tests/10 svn wrap/meson.build new file mode 100644 index 000000000..23ef1f10d --- /dev/null +++ b/meson/manual tests/10 svn wrap/meson.build @@ -0,0 +1,10 @@ +project('Subversion outchecker', 'c') + +sp = subproject('samplesubproject') + +exe = executable('gitprog', 'prog.c', +include_directories : sp.get_variable('subproj_inc'), +link_with : sp.get_variable('subproj_lib'), +) + +test('maintest', exe) diff --git a/meson/manual tests/10 svn wrap/prog.c b/meson/manual tests/10 svn wrap/prog.c new file mode 100644 index 000000000..6e2c4d861 --- /dev/null +++ b/meson/manual tests/10 svn wrap/prog.c @@ -0,0 +1,6 @@ +#include"subproj.h" + +int main(void) { + subproj_function(); + return 0; +} diff --git a/meson/manual tests/10 svn wrap/subprojects/samplesubproject.wrap b/meson/manual tests/10 svn wrap/subprojects/samplesubproject.wrap new file mode 100644 index 000000000..c8a687e3c --- /dev/null +++ b/meson/manual tests/10 svn wrap/subprojects/samplesubproject.wrap @@ -0,0 +1,4 @@ +[wrap-svn] +directory=samplesubproject +url=https://svn.code.sf.net/p/mesonsubproject/code/trunk +revision=head -- cgit 1.2.3-korg