1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/Meta/gn/secondary/Ladybird/moc_qt_objects.gni
Andrew Kaster 10298f1e9a Meta: Move invoke_process_with_args.py to common location
This script was already used by both Ladybird and the Kernel, so move it
into Meta/gn/build instead.
2023-10-23 15:25:24 -06:00

18 lines
457 B
Text

import("qt_install_prefix.gni")
template("moc_qt_objects") {
action_foreach(target_name) {
forward_variables_from(invoker, [ "sources" ])
script = "//Meta/gn/build/invoke_process_with_args.py"
outputs = [ "$target_gen_dir/moc_{{source_name_part}}.cpp" ]
args = [
qt_install_libexec + "moc",
"{{source}}",
"-o",
rebase_path(target_gen_dir, root_build_dir) +
"/moc_{{source_name_part}}.cpp",
]
}
}