mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 03:47:35 +00:00
Meta: Add gn build rules for Ladybird
This commit is contained in:
parent
85c8cd5205
commit
16b83cd8fb
11 changed files with 381 additions and 0 deletions
24
Meta/gn/secondary/Ladybird/compile_qt_resource_file.gni
Normal file
24
Meta/gn/secondary/Ladybird/compile_qt_resource_file.gni
Normal file
|
@ -0,0 +1,24 @@
|
|||
import("qt_install_prefix.gni")
|
||||
|
||||
template("compile_qt_resource_file") {
|
||||
action_foreach(target_name) {
|
||||
forward_variables_from(invoker, [ "sources" ])
|
||||
|
||||
script = "//Meta/gn/secondary/Ladybird/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}}",
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue