mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
parent
a48fc971c6
commit
ac15c1cc01
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/ac15c1cc01
@ -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") {
|
||||
output_name = "textcodec"
|
||||
include_dirs = [ "//Userland/Libraries" ]
|
||||
include_dirs = [
|
||||
"//Userland/Libraries",
|
||||
"$target_gen_dir/..",
|
||||
]
|
||||
deps = [
|
||||
":generate_encoding_indexes",
|
||||
"//AK",
|
||||
"//Userland/Libraries/LibUnicode",
|
||||
]
|
||||
sources = [ "Decoder.cpp" ]
|
||||
sources += get_target_outputs(":generate_encoding_indexes")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user