Files
meson/test cases/rewrite/6 extra_files/addExtraFiles.json
Celeste Wouters c5148d8c73 rewriter: create {add,rm}_extra_files commands
Add ability to mutate a target's `extra_files` list through the
rewriter.

The logic is copied from sources add/rm, but changes the `extra_files`
kwarg instead of the sources positional argument.
Has additional logic to handle creating the `extra_files` list if it
doesn't exist.
2021-12-15 21:21:29 +01:00

112 lines
2.1 KiB
JSON

[
{
"type": "target",
"target": "trivialprog1",
"operation": "extra_files_add",
"sources": ["a2.hpp", "a1.hpp", "a2.hpp"]
},
{
"type": "target",
"target": "trivialprog2",
"operation": "extra_files_add",
"sources": ["a7.hpp"]
},
{
"type": "target",
"target": "trivialprog3",
"operation": "extra_files_add",
"sources": ["a5.hpp"]
},
{
"type": "target",
"target": "trivialprog4",
"operation": "extra_files_add",
"sources": ["a5.hpp"]
},
{
"type": "target",
"target": "trivialprog5",
"operation": "extra_files_add",
"sources": ["a3.hpp"]
},
{
"type": "target",
"target": "trivialprog7",
"operation": "extra_files_add",
"sources": ["a6.hpp", "a1.hpp"]
},
{
"type": "target",
"target": "trivialprog8",
"operation": "extra_files_add",
"sources": ["a2.hpp", "a7.hpp"]
},
{
"type": "target",
"target": "trivialprog9",
"operation": "extra_files_add",
"sources": ["a9.hpp", "a8.hpp"]
},
{
"type": "target",
"target": "trivialprog10",
"operation": "extra_files_add",
"sources": ["a4.hpp", "a1.hpp"]
},
{
"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"
},
{
"type": "target",
"target": "trivialprog10",
"operation": "info"
}
]