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 --- test cases/rewrite/2 subdirs/addSrc.json | 13 +++++++++++++ test cases/rewrite/2 subdirs/addTgt.json | 10 ++++++++++ test cases/rewrite/2 subdirs/info.json | 12 ++++++++++++ test cases/rewrite/2 subdirs/meson.build | 4 ++++ test cases/rewrite/2 subdirs/rmTgt.json | 7 +++++++ test cases/rewrite/2 subdirs/sub1/meson.build | 1 + test cases/rewrite/2 subdirs/sub2/meson.build | 1 + 7 files changed, 48 insertions(+) create mode 100644 test cases/rewrite/2 subdirs/addSrc.json create mode 100644 test cases/rewrite/2 subdirs/addTgt.json create mode 100644 test cases/rewrite/2 subdirs/info.json create mode 100644 test cases/rewrite/2 subdirs/meson.build create mode 100644 test cases/rewrite/2 subdirs/rmTgt.json create mode 100644 test cases/rewrite/2 subdirs/sub1/meson.build create mode 100644 test cases/rewrite/2 subdirs/sub2/meson.build (limited to 'test cases/rewrite/2 subdirs') diff --git a/test cases/rewrite/2 subdirs/addSrc.json b/test cases/rewrite/2 subdirs/addSrc.json new file mode 100644 index 0000000..1a5c13e --- /dev/null +++ b/test cases/rewrite/2 subdirs/addSrc.json @@ -0,0 +1,13 @@ +[ + { + "type": "target", + "target": "something", + "operation": "src_add", + "sources": ["third.c"] + }, + { + "type": "target", + "target": "something", + "operation": "info" + } +] diff --git a/test cases/rewrite/2 subdirs/addTgt.json b/test cases/rewrite/2 subdirs/addTgt.json new file mode 100644 index 0000000..2e1e8bc --- /dev/null +++ b/test cases/rewrite/2 subdirs/addTgt.json @@ -0,0 +1,10 @@ +[ + { + "type": "target", + "target": "newLib", + "operation": "target_add", + "sources": ["new1.cpp", "new2.cpp"], + "target_type": "shared_library", + "subdir": "sub2" + } +] diff --git a/test cases/rewrite/2 subdirs/info.json b/test cases/rewrite/2 subdirs/info.json new file mode 100644 index 0000000..dba2cd6 --- /dev/null +++ b/test cases/rewrite/2 subdirs/info.json @@ -0,0 +1,12 @@ +[ + { + "type": "target", + "target": "something", + "operation": "info" + }, + { + "type": "target", + "target": "newLib", + "operation": "info" + } +] diff --git a/test cases/rewrite/2 subdirs/meson.build b/test cases/rewrite/2 subdirs/meson.build new file mode 100644 index 0000000..c7f3fec --- /dev/null +++ b/test cases/rewrite/2 subdirs/meson.build @@ -0,0 +1,4 @@ +project('subdir rewrite', 'c') + +subdir('sub1') +subdir('sub2') diff --git a/test cases/rewrite/2 subdirs/rmTgt.json b/test cases/rewrite/2 subdirs/rmTgt.json new file mode 100644 index 0000000..9b112f9 --- /dev/null +++ b/test cases/rewrite/2 subdirs/rmTgt.json @@ -0,0 +1,7 @@ +[ + { + "type": "target", + "target": "something", + "operation": "target_rm" + } +] diff --git a/test cases/rewrite/2 subdirs/sub1/meson.build b/test cases/rewrite/2 subdirs/sub1/meson.build new file mode 100644 index 0000000..ca42205 --- /dev/null +++ b/test cases/rewrite/2 subdirs/sub1/meson.build @@ -0,0 +1 @@ +srcs = ['first.c', 'second.c'] diff --git a/test cases/rewrite/2 subdirs/sub2/meson.build b/test cases/rewrite/2 subdirs/sub2/meson.build new file mode 100644 index 0000000..44b4075 --- /dev/null +++ b/test cases/rewrite/2 subdirs/sub2/meson.build @@ -0,0 +1 @@ +executable('something', srcs) -- cgit v1.2.3