diff --git a/Meta/gn/secondary/BUILD.gn b/Meta/gn/secondary/BUILD.gn index d51afb08c3..138e26abcd 100644 --- a/Meta/gn/secondary/BUILD.gn +++ b/Meta/gn/secondary/BUILD.gn @@ -1,7 +1,10 @@ import("//Meta/gn/build/toolchain/compiler.gni") group("default") { - deps = [ "//Tests" ] + deps = [ + "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler", + "//Tests", + ] testonly = true } diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/BUILD.gn new file mode 100644 index 0000000000..0c78060bdb --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/BUILD.gn @@ -0,0 +1,6 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +lagom_tool("IPCCompiler") { + sources = [ "main.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibLocale/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibLocale/BUILD.gn new file mode 100644 index 0000000000..86920251d1 --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibLocale/BUILD.gn @@ -0,0 +1,29 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +lagom_tool("GenerateDateTimeFormatData") { + sources = [ "GenerateDateTimeFormatData.cpp" ] + deps = [ + "//Userland/Libraries/LibMain", + "//Userland/Libraries/LibTimeZone", + ] +} + +lagom_tool("GenerateLocaleData") { + sources = [ "GenerateLocaleData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} + +lagom_tool("GenerateNumberFormatData") { + sources = [ "GenerateNumberFormatData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} + +lagom_tool("GeneratePluralRulesData") { + sources = [ "GeneratePluralRulesData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} + +lagom_tool("GenerateRelativeTimeFormatData") { + sources = [ "GenerateRelativeTimeFormatData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/BUILD.gn new file mode 100644 index 0000000000..cc402d3352 --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibTimeZone/BUILD.gn @@ -0,0 +1,6 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +lagom_tool("GenerateTimeZoneData") { + sources = [ "GenerateTimeZoneData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibUnicode/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibUnicode/BUILD.gn new file mode 100644 index 0000000000..6812ba9565 --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibUnicode/BUILD.gn @@ -0,0 +1,11 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +lagom_tool("GenerateUnicodeData") { + sources = [ "GenerateUnicodeData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} + +lagom_tool("GenerateEmojiData") { + sources = [ "GenerateEmojiData.cpp" ] + deps = [ "//Userland/Libraries/LibMain" ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BUILD.gn new file mode 100644 index 0000000000..7599479550 --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BUILD.gn @@ -0,0 +1,62 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +source_set("headers") { + sources = [ "GeneratorUtil.h" ] +} + +lagom_tool("GenerateAriaRoles") { + sources = [ "GenerateAriaRoles.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateCSSEnums") { + sources = [ "GenerateCSSEnums.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateCSSMediaFeatureID") { + sources = [ "GenerateCSSMediaFeatureID.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateCSSPropertyID") { + sources = [ "GenerateCSSPropertyID.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateCSSTransformFunctions") { + sources = [ "GenerateCSSTransformFunctions.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateCSSValueID") { + sources = [ "GenerateCSSValueID.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibMain", + ] +} + +lagom_tool("GenerateWindowOrWorkerInterfaces") { + sources = [ "GenerateWindowOrWorkerInterfaces.cpp" ] + deps = [ + ":headers", + "//Userland/Libraries/LibIDL", + "//Userland/Libraries/LibMain", + ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/BUILD.gn b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/BUILD.gn new file mode 100644 index 0000000000..edc71d76b1 --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/BUILD.gn @@ -0,0 +1,13 @@ +import("//Meta/Lagom/Tools/lagom_tool.gni") + +lagom_tool("BindingsGenerator") { + sources = [ + "IDLGenerators.cpp", + "Namespaces.h", + "main.cpp", + ] + deps = [ + "//Userland/Libraries/LibIDL", + "//Userland/Libraries/LibMain", + ] +} diff --git a/Meta/gn/secondary/Meta/Lagom/Tools/lagom_tool.gni b/Meta/gn/secondary/Meta/Lagom/Tools/lagom_tool.gni new file mode 100644 index 0000000000..a4846346fe --- /dev/null +++ b/Meta/gn/secondary/Meta/Lagom/Tools/lagom_tool.gni @@ -0,0 +1,16 @@ +template("lagom_tool") { + assert(current_toolchain == host_toolchain, + "Must only depend on Lagom tools from the host_toolchain") + executable(target_name) { + forward_variables_from(invoker, "*") + include_dirs = [ + "//", + "$root_gen_dir", + "//Userland/Libraries", + ] + deps += [ + "//Userland/Libraries/LibCore", + "//Userland/Libraries/LibFileSystem", + ] + } +} diff --git a/Meta/gn/secondary/Userland/Libraries/LibFileSystem/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibFileSystem/BUILD.gn new file mode 100644 index 0000000000..d696e16153 --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibFileSystem/BUILD.gn @@ -0,0 +1,14 @@ +shared_library("LibFileSystem") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ + "FileSystem.cpp", + "FileSystem.h", + "TempFile.cpp", + "TempFile.h", + ] + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + ] + output_name = "filesystem" +} diff --git a/Meta/gn/secondary/Userland/Libraries/LibIPC/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibIPC/BUILD.gn new file mode 100644 index 0000000000..aea82b259d --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibIPC/BUILD.gn @@ -0,0 +1,26 @@ +shared_library("LibIPC") { + output_name = "ipc" + include_dirs = [ "//Userland/Libraries" ] + sources = [ + "Concepts.h", + "Connection.cpp", + "Connection.h", + "ConnectionFromClient.h", + "ConnectionToServer.h", + "Decoder.cpp", + "Decoder.h", + "Dictionary.h", + "Encoder.cpp", + "Encoder.h", + "File.h", + "Forward.h", + "Message.h", + "MultiServer.h", + "SingleServer.h", + "Stub.h", + ] + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + ] +} diff --git a/Meta/gn/secondary/Userland/Libraries/LibMain/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibMain/BUILD.gn new file mode 100644 index 0000000000..d84df4cdd6 --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibMain/BUILD.gn @@ -0,0 +1,9 @@ +static_library("LibMain") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ + "Main.cpp", + "Main.h", + ] + deps = [ "//AK" ] + output_name = "main" +} diff --git a/Meta/gn/secondary/Userland/Libraries/LibTimeZone/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibTimeZone/BUILD.gn new file mode 100644 index 0000000000..f14e966cfb --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibTimeZone/BUILD.gn @@ -0,0 +1,22 @@ +declare_args() { + # If true, Download tzdata from data.iana.org and use it in LibTimeZone + # Data will be downloaded to $cache_path/TZDB + enable_timezone_database_download = false +} + +source_set("LibTimeZone") { + output_name = "timezone" + include_dirs = [ "//Userland/Libraries" ] + sources = [ + "Forward.h", + "TimeZone.cpp", + "TimeZone.h", + ] + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + ] + if (enable_timezone_database_download) { + deps += [ ":timezone_data" ] + } +}