mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
Meta: Port recent changes to gn BUILD
5c7e5cc738
a8f0fa5dd4
0d417cd604
5b87d26027
(and other friends from the JIT PR)f915aa70cd
This commit is contained in:
parent
d8ab9ed87c
commit
faa8ef98c9
12 changed files with 146 additions and 63 deletions
|
@ -1,6 +1,45 @@
|
|||
import("//Meta/gn/build/compiled_action.gni")
|
||||
import("//Meta/gn/build/download_cache.gni")
|
||||
import("//Meta/gn/build/download_file.gni")
|
||||
import("//Meta/gn/build/embed_as_string_view.gni")
|
||||
|
||||
declare_args() {
|
||||
# If true, Download public suffix list from GitHub.
|
||||
# Data will be downloaded to $cache_path/PublicSuffix and used by LibPublicSuffix
|
||||
enable_public_suffix_list_download = true
|
||||
}
|
||||
|
||||
public_suffix_cache = cache_path + "PublicSuffix/"
|
||||
|
||||
if (enable_public_suffix_list_download) {
|
||||
download_file("public_suffix_list_download") {
|
||||
version = "master"
|
||||
url = "https://raw.githubusercontent.com/publicsuffix/list/" + version +
|
||||
"/public_suffix_list.dat"
|
||||
output = "$public_suffix_cache/public_suffix_list.dat"
|
||||
version_file = public_suffix_cache + "version.txt"
|
||||
}
|
||||
|
||||
compiled_action("generate_public_suffix_list_sources") {
|
||||
tool =
|
||||
"//Meta/Lagom/Tools/CodeGenerators/LibWebView:GeneratePublicSuffixData"
|
||||
deps = [ ":public_suffix_list_download" ]
|
||||
outputs = [
|
||||
"$target_gen_dir/PublicSuffixData.h",
|
||||
"$target_gen_dir/PublicSuffixData.cpp",
|
||||
]
|
||||
args = [
|
||||
"-h",
|
||||
rebase_path(outputs[0], root_build_dir),
|
||||
"-c",
|
||||
rebase_path(outputs[1], root_build_dir),
|
||||
"-p",
|
||||
rebase_path("$public_suffix_cache/public_suffix_list.dat",
|
||||
root_build_dir),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
compiled_action("WebContentClientEndpoint") {
|
||||
tool = "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler"
|
||||
inputs = [ "//Userland/Services/WebContent/WebContentClient.ipc" ]
|
||||
|
@ -58,6 +97,7 @@ shared_library("LibWebView") {
|
|||
"//Userland/Libraries",
|
||||
"//Userland/Services",
|
||||
"//Userland/",
|
||||
"$target_gen_dir/..",
|
||||
]
|
||||
deps = [
|
||||
":WebContentClientEndpoint",
|
||||
|
@ -67,6 +107,7 @@ shared_library("LibWebView") {
|
|||
":generate_native_stylesheet_source",
|
||||
"//AK",
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibFileSystem",
|
||||
"//Userland/Libraries/LibGUI",
|
||||
"//Userland/Libraries/LibGfx",
|
||||
"//Userland/Libraries/LibIPC",
|
||||
|
@ -83,8 +124,10 @@ shared_library("LibWebView") {
|
|||
"Database.cpp",
|
||||
"History.cpp",
|
||||
"RequestServerAdapter.cpp",
|
||||
"SearchEngine.cpp",
|
||||
"SourceHighlighter.cpp",
|
||||
"StylePropertiesModel.cpp",
|
||||
"URL.cpp",
|
||||
"UserAgent.cpp",
|
||||
"ViewImplementation.cpp",
|
||||
"WebContentClient.cpp",
|
||||
|
@ -95,4 +138,11 @@ shared_library("LibWebView") {
|
|||
get_target_outputs(":WebDriverClientEndpoint") +
|
||||
get_target_outputs(":WebDriverServerEndpoint") +
|
||||
get_target_outputs(":generate_native_stylesheet_source")
|
||||
if (enable_public_suffix_list_download) {
|
||||
deps += [ ":generate_public_suffix_list_sources" ]
|
||||
sources += get_target_outputs(":generate_public_suffix_list_sources")
|
||||
defines = [ "ENABLE_PUBLIC_SUFFIX=1" ]
|
||||
} else {
|
||||
defines = [ "ENABLE_PUBLIC_SUFFIX=0" ]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue