diff options
Diffstat (limited to 'meson/test cases/rewrite/1 basic')
-rw-r--r-- | meson/test cases/rewrite/1 basic/addSrc.json | 94 | ||||
-rw-r--r-- | meson/test cases/rewrite/1 basic/addTgt.json | 9 | ||||
-rw-r--r-- | meson/test cases/rewrite/1 basic/info.json | 57 | ||||
-rw-r--r-- | meson/test cases/rewrite/1 basic/meson.build | 19 | ||||
-rw-r--r-- | meson/test cases/rewrite/1 basic/rmSrc.json | 88 | ||||
-rw-r--r-- | meson/test cases/rewrite/1 basic/rmTgt.json | 17 |
6 files changed, 284 insertions, 0 deletions
diff --git a/meson/test cases/rewrite/1 basic/addSrc.json b/meson/test cases/rewrite/1 basic/addSrc.json new file mode 100644 index 000000000..b8bc43916 --- /dev/null +++ b/meson/test cases/rewrite/1 basic/addSrc.json @@ -0,0 +1,94 @@ +[ + { + "type": "target", + "target": "trivialprog1", + "operation": "src_add", + "sources": ["a2.cpp", "a1.cpp", "a2.cpp"] + }, + { + "type": "target", + "target": "trivialprog2", + "operation": "src_add", + "sources": ["a7.cpp"] + }, + { + "type": "target", + "target": "trivialprog3", + "operation": "src_add", + "sources": ["a5.cpp"] + }, + { + "type": "target", + "target": "trivialprog4", + "operation": "src_add", + "sources": ["a5.cpp"] + }, + { + "type": "target", + "target": "trivialprog5", + "operation": "src_add", + "sources": ["a3.cpp"] + }, + { + "type": "target", + "target": "trivialprog6", + "operation": "src_add", + "sources": ["a4.cpp"] + }, + { + "type": "target", + "target": "trivialprog9", + "operation": "src_add", + "sources": ["a6.cpp", "a1.cpp"] + }, + { + "type": "target", + "target": "trivialprog0", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog1", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog2", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog3", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog4", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog5", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog6", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog7", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog8", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog9", + "operation": "info" + } +] diff --git a/meson/test cases/rewrite/1 basic/addTgt.json b/meson/test cases/rewrite/1 basic/addTgt.json new file mode 100644 index 000000000..2f4e7e256 --- /dev/null +++ b/meson/test cases/rewrite/1 basic/addTgt.json @@ -0,0 +1,9 @@ +[ + { + "type": "target", + "target": "trivialprog10", + "operation": "target_add", + "sources": ["new1.cpp", "new2.cpp"], + "target_type": "shared_library" + } +] diff --git a/meson/test cases/rewrite/1 basic/info.json b/meson/test cases/rewrite/1 basic/info.json new file mode 100644 index 000000000..0f1a3bd8c --- /dev/null +++ b/meson/test cases/rewrite/1 basic/info.json @@ -0,0 +1,57 @@ +[ + { + "type": "target", + "target": "trivialprog0", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog1", + "operation": "info" + }, + { + "type": "target", + "target": "exe2", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog3", + "operation": "info" + }, + { + "type": "target", + "target": "exe4", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog5", + "operation": "info" + }, + { + "type": "target", + "target": "exe6", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog7", + "operation": "info" + }, + { + "type": "target", + "target": "exe8", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog9", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog10", + "operation": "info" + } +] diff --git a/meson/test cases/rewrite/1 basic/meson.build b/meson/test cases/rewrite/1 basic/meson.build new file mode 100644 index 000000000..0f87c4520 --- /dev/null +++ b/meson/test cases/rewrite/1 basic/meson.build @@ -0,0 +1,19 @@ +project('rewritetest', 'cpp') + +src1 = ['main.cpp', 'fileA.cpp'] +src2 = files(['fileB.cpp', 'fileC.cpp']) +src3 = src1 +src4 = [src3] + +# Magic comment + +exe0 = executable('trivialprog0', src1 + src2) +exe1 = executable('trivialprog1', src1) +exe2 = executable('trivialprog2', [src2]) +exe3 = executable('trivialprog3', ['main.cpp', 'fileA.cpp']) +exe4 = executable('trivialprog4', ['main.cpp', ['fileA.cpp']]) +exe5 = executable('trivialprog5', [src2, 'main.cpp']) +exe6 = executable('trivialprog6', 'main.cpp', 'fileA.cpp') +exe7 = executable('trivialprog7', 'fileB.cpp', src1, 'fileC.cpp') +exe8 = executable('trivialprog8', src3) +executable('trivialprog9', src4) diff --git a/meson/test cases/rewrite/1 basic/rmSrc.json b/meson/test cases/rewrite/1 basic/rmSrc.json new file mode 100644 index 000000000..2e7447c68 --- /dev/null +++ b/meson/test cases/rewrite/1 basic/rmSrc.json @@ -0,0 +1,88 @@ +[ + { + "type": "target", + "target": "trivialprog1", + "operation": "src_rm", + "sources": ["fileA.cpp"] + }, + { + "type": "target", + "target": "trivialprog3", + "operation": "src_rm", + "sources": ["fileA.cpp"] + }, + { + "type": "target", + "target": "trivialprog4", + "operation": "src_rm", + "sources": ["fileA.cpp"] + }, + { + "type": "target", + "target": "trivialprog5", + "operation": "src_rm", + "sources": ["fileB.cpp"] + }, + { + "type": "target", + "target": "trivialprog6", + "operation": "src_rm", + "sources": ["fileA.cpp"] + }, + { + "type": "target", + "target": "trivialprog7", + "operation": "src_rm", + "sources": ["fileB.cpp"] + }, + { + "type": "target", + "target": "trivialprog0", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog1", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog2", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog3", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog4", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog5", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog6", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog7", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog8", + "operation": "info" + }, + { + "type": "target", + "target": "trivialprog9", + "operation": "info" + } +] diff --git a/meson/test cases/rewrite/1 basic/rmTgt.json b/meson/test cases/rewrite/1 basic/rmTgt.json new file mode 100644 index 000000000..dbaf02535 --- /dev/null +++ b/meson/test cases/rewrite/1 basic/rmTgt.json @@ -0,0 +1,17 @@ +[ + { + "type": "target", + "target": "exe0", + "operation": "target_rm" + }, + { + "type": "target", + "target": "trivialprog1", + "operation": "target_rm" + }, + { + "type": "target", + "target": "trivialprog9", + "operation": "target_rm" + } +] |