mirror of
https://github.com/mesonbuild/meson.git
synced 2026-06-30 19:57:45 +00:00
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.
94 lines
1.6 KiB
JSON
94 lines
1.6 KiB
JSON
[
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog1",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileA.hpp"]
|
|
},
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog3",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileA.hpp"]
|
|
},
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog4",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileA.hpp"]
|
|
},
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog5",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileB.hpp"]
|
|
},
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog6",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileA.hpp"]
|
|
},
|
|
{
|
|
"type": "target",
|
|
"target": "trivialprog7",
|
|
"operation": "extra_files_rm",
|
|
"sources": ["fileA.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"
|
|
}
|
|
]
|