mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00

This script was already used by both Ladybird and the Kernel, so move it into Meta/gn/build instead.
18 lines
457 B
Text
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",
|
|
]
|
|
}
|
|
}
|