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.
112 lines
2.1 KiB
JSON
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"
|
|
}
|
|
]
|