mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 06:22:17 +00:00
parent
a48fc971c6
commit
ac15c1cc01
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/trflynn89
Commit: ac15c1cc01
2 changed files with 33 additions and 1 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
import("//Meta/Lagom/Tools/lagom_tool.gni")
|
||||||
|
|
||||||
|
lagom_tool("GenerateEncodingIndexes") {
|
||||||
|
sources = [ "GenerateEncodingIndexes.cpp" ]
|
||||||
|
deps = [ "//Userland/Libraries/LibMain" ]
|
||||||
|
}
|
|
@ -1,9 +1,35 @@
|
||||||
|
import("//Meta/gn/build/compiled_action.gni")
|
||||||
|
|
||||||
|
compiled_action("generate_encoding_indexes") {
|
||||||
|
tool =
|
||||||
|
"//Meta/Lagom/Tools/CodeGenerators/LibTextCodec:GenerateEncodingIndexes"
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"$target_gen_dir/LookupTables.h",
|
||||||
|
"$target_gen_dir/LookupTables.cpp",
|
||||||
|
]
|
||||||
|
|
||||||
|
args = [
|
||||||
|
"-h",
|
||||||
|
rebase_path(outputs[0], root_build_dir),
|
||||||
|
"-c",
|
||||||
|
rebase_path(outputs[1], root_build_dir),
|
||||||
|
"-j",
|
||||||
|
rebase_path("//Userland/Libraries/LibTextCodec/indexes.json"),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
shared_library("LibTextCodec") {
|
shared_library("LibTextCodec") {
|
||||||
output_name = "textcodec"
|
output_name = "textcodec"
|
||||||
include_dirs = [ "//Userland/Libraries" ]
|
include_dirs = [
|
||||||
|
"//Userland/Libraries",
|
||||||
|
"$target_gen_dir/..",
|
||||||
|
]
|
||||||
deps = [
|
deps = [
|
||||||
|
":generate_encoding_indexes",
|
||||||
"//AK",
|
"//AK",
|
||||||
"//Userland/Libraries/LibUnicode",
|
"//Userland/Libraries/LibUnicode",
|
||||||
]
|
]
|
||||||
sources = [ "Decoder.cpp" ]
|
sources = [ "Decoder.cpp" ]
|
||||||
|
sources += get_target_outputs(":generate_encoding_indexes")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue