diff options
Diffstat (limited to 'meson/test cases/rewrite/2 subdirs')
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/addSrc.json | 13 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/addTgt.json | 10 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/info.json | 12 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/meson.build | 4 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/rmTgt.json | 7 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/sub1/meson.build | 1 | ||||
-rw-r--r-- | meson/test cases/rewrite/2 subdirs/sub2/meson.build | 1 |
7 files changed, 48 insertions, 0 deletions
diff --git a/meson/test cases/rewrite/2 subdirs/addSrc.json b/meson/test cases/rewrite/2 subdirs/addSrc.json new file mode 100644 index 000000000..1a5c13ee3 --- /dev/null +++ b/meson/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/meson/test cases/rewrite/2 subdirs/addTgt.json b/meson/test cases/rewrite/2 subdirs/addTgt.json new file mode 100644 index 000000000..2e1e8bc30 --- /dev/null +++ b/meson/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/meson/test cases/rewrite/2 subdirs/info.json b/meson/test cases/rewrite/2 subdirs/info.json new file mode 100644 index 000000000..dba2cd683 --- /dev/null +++ b/meson/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/meson/test cases/rewrite/2 subdirs/meson.build b/meson/test cases/rewrite/2 subdirs/meson.build new file mode 100644 index 000000000..c7f3fec89 --- /dev/null +++ b/meson/test cases/rewrite/2 subdirs/meson.build @@ -0,0 +1,4 @@ +project('subdir rewrite', 'c') + +subdir('sub1') +subdir('sub2') diff --git a/meson/test cases/rewrite/2 subdirs/rmTgt.json b/meson/test cases/rewrite/2 subdirs/rmTgt.json new file mode 100644 index 000000000..9b112f98b --- /dev/null +++ b/meson/test cases/rewrite/2 subdirs/rmTgt.json @@ -0,0 +1,7 @@ +[ + { + "type": "target", + "target": "something", + "operation": "target_rm" + } +] diff --git a/meson/test cases/rewrite/2 subdirs/sub1/meson.build b/meson/test cases/rewrite/2 subdirs/sub1/meson.build new file mode 100644 index 000000000..ca4220544 --- /dev/null +++ b/meson/test cases/rewrite/2 subdirs/sub1/meson.build @@ -0,0 +1 @@ +srcs = ['first.c', 'second.c'] diff --git a/meson/test cases/rewrite/2 subdirs/sub2/meson.build b/meson/test cases/rewrite/2 subdirs/sub2/meson.build new file mode 100644 index 000000000..44b4075ea --- /dev/null +++ b/meson/test cases/rewrite/2 subdirs/sub2/meson.build @@ -0,0 +1 @@ +executable('something', srcs) |