mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
10298f1e9a
This script was already used by both Ladybird and the Kernel, so move it into Meta/gn/build instead.
24 lines
664 B
Text
24 lines
664 B
Text
import("qt_install_prefix.gni")
|
|
|
|
template("compile_qt_resource_file") {
|
|
action_foreach(target_name) {
|
|
forward_variables_from(invoker, [ "sources" ])
|
|
|
|
script = "//Meta/gn/build/invoke_process_with_args.py"
|
|
|
|
outputs = [ "$target_gen_dir/rcc_{{source_name_part}}.cpp" ]
|
|
depfile = "$target_gen_dir/rcc_{{source_name_part}}.cpp.d"
|
|
args = [
|
|
qt_install_libexec + "rcc",
|
|
"-g",
|
|
"cpp",
|
|
"-d",
|
|
rebase_path(target_gen_dir, root_build_dir) +
|
|
"/rcc_{{source_name_part}}.cpp.d",
|
|
"-o",
|
|
rebase_path(target_gen_dir, root_build_dir) +
|
|
"/rcc_{{source_name_part}}.cpp",
|
|
"{{source}}",
|
|
]
|
|
}
|
|
}
|