1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

Meta: Add CodeGenerators and library dependencies for them to gn build

This commit is contained in:
Andrew Kaster 2023-05-05 12:25:53 -06:00 committed by Andrew Kaster
parent cbda1a6c73
commit 05f56e09b5
12 changed files with 218 additions and 1 deletions

View file

@ -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"
}

View file

@ -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",
]
}

View file

@ -0,0 +1,9 @@
static_library("LibMain") {
include_dirs = [ "//Userland/Libraries" ]
sources = [
"Main.cpp",
"Main.h",
]
deps = [ "//AK" ]
output_name = "main"
}

View file

@ -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" ]
}
}