mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Meta: Port changes to gn build
This commit includes gn changes for the following commits:625aac2367
8451c4d91c
8fcf42f684
9ba4c33940
1d6c2cb287
8e5b2907f6
d68433653a
This commit is contained in:
parent
863fad0e32
commit
041d5bff91
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/ADKaster
Commit: 041d5bff91
Pull-request: https://github.com/SerenityOS/serenity/pull/20209
6 changed files with 76 additions and 0 deletions
|
@ -267,6 +267,7 @@ write_cmake_config("ak_debug_gen") {
|
||||||
"FILE_CONTENT_DEBUG=",
|
"FILE_CONTENT_DEBUG=",
|
||||||
"FILE_WATCHER_DEBUG=",
|
"FILE_WATCHER_DEBUG=",
|
||||||
"FILL_PATH_DEBUG=",
|
"FILL_PATH_DEBUG=",
|
||||||
|
"FLAC_ENCODER_DEBUG=",
|
||||||
"GEMINI_DEBUG=",
|
"GEMINI_DEBUG=",
|
||||||
"GENERATE_DEBUG=",
|
"GENERATE_DEBUG=",
|
||||||
"GHASH_PROCESS_DEBUG=",
|
"GHASH_PROCESS_DEBUG=",
|
||||||
|
@ -286,6 +287,7 @@ write_cmake_config("ak_debug_gen") {
|
||||||
"ILBM_DEBUG=",
|
"ILBM_DEBUG=",
|
||||||
"IMAGE_DECODER_DEBUG=",
|
"IMAGE_DECODER_DEBUG=",
|
||||||
"IMAGE_LOADER_DEBUG=",
|
"IMAGE_LOADER_DEBUG=",
|
||||||
|
"IMAP_PARSER_DEBUG=",
|
||||||
"ITEM_RECTS_DEBUG=",
|
"ITEM_RECTS_DEBUG=",
|
||||||
"JOB_DEBUG=",
|
"JOB_DEBUG=",
|
||||||
"JPEG_DEBUG=",
|
"JPEG_DEBUG=",
|
||||||
|
|
|
@ -12,6 +12,7 @@ group("ladybird") {
|
||||||
|
|
||||||
moc_qt_objects("generate_moc") {
|
moc_qt_objects("generate_moc") {
|
||||||
sources = [
|
sources = [
|
||||||
|
"Qt/AutoComplete.h",
|
||||||
"Qt/BrowserWindow.h",
|
"Qt/BrowserWindow.h",
|
||||||
"Qt/ConsoleWidget.h",
|
"Qt/ConsoleWidget.h",
|
||||||
"Qt/EventLoopImplementationQtEventTarget.h",
|
"Qt/EventLoopImplementationQtEventTarget.h",
|
||||||
|
@ -71,6 +72,7 @@ executable("ladybird_executable") {
|
||||||
"//Userland/Libraries/LibJS",
|
"//Userland/Libraries/LibJS",
|
||||||
"//Userland/Libraries/LibMain",
|
"//Userland/Libraries/LibMain",
|
||||||
"//Userland/Libraries/LibProtocol",
|
"//Userland/Libraries/LibProtocol",
|
||||||
|
"//Userland/Libraries/LibPublicSuffix",
|
||||||
"//Userland/Libraries/LibSQL",
|
"//Userland/Libraries/LibSQL",
|
||||||
"//Userland/Libraries/LibWeb",
|
"//Userland/Libraries/LibWeb",
|
||||||
"//Userland/Libraries/LibWebView",
|
"//Userland/Libraries/LibWebView",
|
||||||
|
@ -80,6 +82,7 @@ executable("ladybird_executable") {
|
||||||
"//Userland/Applications/Browser/Database.cpp",
|
"//Userland/Applications/Browser/Database.cpp",
|
||||||
"//Userland/Applications/Browser/History.cpp",
|
"//Userland/Applications/Browser/History.cpp",
|
||||||
"HelperProcess.cpp",
|
"HelperProcess.cpp",
|
||||||
|
"Qt/AutoComplete.cpp",
|
||||||
"Qt/BrowserWindow.cpp",
|
"Qt/BrowserWindow.cpp",
|
||||||
"Qt/ConsoleWidget.cpp",
|
"Qt/ConsoleWidget.cpp",
|
||||||
"Qt/EventLoopImplementationQt.cpp",
|
"Qt/EventLoopImplementationQt.cpp",
|
||||||
|
@ -181,6 +184,7 @@ if (current_os == "mac") {
|
||||||
"//Userland/Libraries/LibLine",
|
"//Userland/Libraries/LibLine",
|
||||||
"//Userland/Libraries/LibMarkdown",
|
"//Userland/Libraries/LibMarkdown",
|
||||||
"//Userland/Libraries/LibProtocol",
|
"//Userland/Libraries/LibProtocol",
|
||||||
|
"//Userland/Libraries/LibPublicSuffix",
|
||||||
"//Userland/Libraries/LibRegex",
|
"//Userland/Libraries/LibRegex",
|
||||||
"//Userland/Libraries/LibSQL",
|
"//Userland/Libraries/LibSQL",
|
||||||
"//Userland/Libraries/LibSoftGPU",
|
"//Userland/Libraries/LibSoftGPU",
|
||||||
|
@ -215,6 +219,7 @@ if (current_os == "mac") {
|
||||||
"$root_out_dir/lib/liblagom-line.dylib",
|
"$root_out_dir/lib/liblagom-line.dylib",
|
||||||
"$root_out_dir/lib/liblagom-markdown.dylib",
|
"$root_out_dir/lib/liblagom-markdown.dylib",
|
||||||
"$root_out_dir/lib/liblagom-protocol.dylib",
|
"$root_out_dir/lib/liblagom-protocol.dylib",
|
||||||
|
"$root_out_dir/lib/liblagom-publicsuffix.dylib",
|
||||||
"$root_out_dir/lib/liblagom-regex.dylib",
|
"$root_out_dir/lib/liblagom-regex.dylib",
|
||||||
"$root_out_dir/lib/liblagom-softgpu.dylib",
|
"$root_out_dir/lib/liblagom-softgpu.dylib",
|
||||||
"$root_out_dir/lib/liblagom-sql.dylib",
|
"$root_out_dir/lib/liblagom-sql.dylib",
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
import("//Meta/Lagom/Tools/lagom_tool.gni")
|
||||||
|
|
||||||
|
lagom_tool("GeneratePublicSuffixData") {
|
||||||
|
sources = [ "GeneratePublicSuffixData.cpp" ]
|
||||||
|
deps = [ "//Userland/Libraries/LibMain" ]
|
||||||
|
}
|
|
@ -29,6 +29,7 @@ shared_library("LibGfx") {
|
||||||
"Font/ScaledFont.cpp",
|
"Font/ScaledFont.cpp",
|
||||||
"Font/Typeface.cpp",
|
"Font/Typeface.cpp",
|
||||||
"Font/WOFF/Font.cpp",
|
"Font/WOFF/Font.cpp",
|
||||||
|
"Font/WOFF2/Font.cpp",
|
||||||
"GradientPainting.cpp",
|
"GradientPainting.cpp",
|
||||||
"ICC/BinaryWriter.cpp",
|
"ICC/BinaryWriter.cpp",
|
||||||
"ICC/Profile.cpp",
|
"ICC/Profile.cpp",
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
import("//Meta/gn/build/compiled_action.gni")
|
||||||
|
import("//Meta/gn/build/download_cache.gni")
|
||||||
|
import("//Meta/gn/build/download_file.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/LibPublicSuffix: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),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
shared_library("LibPublicSuffix") {
|
||||||
|
output_name = "publicsuffix"
|
||||||
|
include_dirs = [
|
||||||
|
"//Userland/Libraries",
|
||||||
|
"$target_gen_dir/..",
|
||||||
|
]
|
||||||
|
sources = [ "URL.cpp" ]
|
||||||
|
deps = [
|
||||||
|
"//AK",
|
||||||
|
"//Userland/Libraries/LibCore",
|
||||||
|
]
|
||||||
|
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_DOWNLOAD=1" ]
|
||||||
|
} else {
|
||||||
|
defines = [ "ENABLE_PUBLIC_SUFFIX_DOWNLOAD=0" ]
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,10 +7,13 @@ source_set("Parser") {
|
||||||
"Declaration.cpp",
|
"Declaration.cpp",
|
||||||
"DeclarationOrAtRule.cpp",
|
"DeclarationOrAtRule.cpp",
|
||||||
"Function.cpp",
|
"Function.cpp",
|
||||||
|
"GradientParsing.cpp",
|
||||||
"Helpers.cpp",
|
"Helpers.cpp",
|
||||||
|
"MediaParsing.cpp",
|
||||||
"Parser.cpp",
|
"Parser.cpp",
|
||||||
"ParsingContext.cpp",
|
"ParsingContext.cpp",
|
||||||
"Rule.cpp",
|
"Rule.cpp",
|
||||||
|
"SelectorParsing.cpp",
|
||||||
"Token.cpp",
|
"Token.cpp",
|
||||||
"Tokenizer.cpp",
|
"Tokenizer.cpp",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue