diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/manual tests/3 git wrap | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/manual tests/3 git wrap')
-rw-r--r-- | meson/manual tests/3 git wrap/meson.build | 10 | ||||
-rw-r--r-- | meson/manual tests/3 git wrap/prog.c | 6 | ||||
-rw-r--r-- | meson/manual tests/3 git wrap/subprojects/samplesubproject.wrap | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/meson/manual tests/3 git wrap/meson.build b/meson/manual tests/3 git wrap/meson.build new file mode 100644 index 000000000..7fd5083ee --- /dev/null +++ b/meson/manual tests/3 git wrap/meson.build @@ -0,0 +1,10 @@ +project('git outcheckker', '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/3 git wrap/prog.c b/meson/manual tests/3 git wrap/prog.c new file mode 100644 index 000000000..6e2c4d861 --- /dev/null +++ b/meson/manual tests/3 git wrap/prog.c @@ -0,0 +1,6 @@ +#include"subproj.h" + +int main(void) { + subproj_function(); + return 0; +} diff --git a/meson/manual tests/3 git wrap/subprojects/samplesubproject.wrap b/meson/manual tests/3 git wrap/subprojects/samplesubproject.wrap new file mode 100644 index 000000000..f52190b8f --- /dev/null +++ b/meson/manual tests/3 git wrap/subprojects/samplesubproject.wrap @@ -0,0 +1,4 @@ +[wrap-git] +directory=samplesubproject +url=https://github.com/jpakkane/samplesubproject.git +revision=head |