mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
Meta: Add missing files and libraries to LibCore in gn build
This commit is contained in:
parent
8aac8f25ba
commit
a1e2437b21
Notes:
github-actions[bot]
2024-09-27 16:16:42 +00:00
Author: https://github.com/ADKaster
Commit: a1e2437b21
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1515
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/trflynn89
1 changed files with 53 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import("//Meta/gn/build/libs/vulkan/enable.gni")
|
||||||
|
|
||||||
# These are the minimal set of sources needed to build the code generators. We separate them to allow
|
# These are the minimal set of sources needed to build the code generators. We separate them to allow
|
||||||
# LibCore to depend on generated sources.
|
# LibCore to depend on generated sources.
|
||||||
shared_library("minimal") {
|
shared_library("minimal") {
|
||||||
|
@ -149,6 +151,51 @@ source_set("filewatcher") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source_set("timezonewatcher") {
|
||||||
|
include_dirs = [ "//Userland/Libraries" ]
|
||||||
|
sources = [ "TimeZoneWatcher.h" ]
|
||||||
|
deps = [ "//AK" ]
|
||||||
|
frameworks = []
|
||||||
|
if (current_os == "linux") {
|
||||||
|
sources += [ "TimeZoneWatcherLinux.cpp" ]
|
||||||
|
} else if (current_os == "mac") {
|
||||||
|
sources += [ "TimeZoneWatcherMacOS.mm" ]
|
||||||
|
frameworks += [
|
||||||
|
"CoreFoundation.framework",
|
||||||
|
"CoreServices.framework",
|
||||||
|
"Foundation.framework",
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
sources += [ "TimeZoneWatcherUnimplemented.cpp" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
source_set("metal") {
|
||||||
|
if (current_os == "mac") {
|
||||||
|
include_dirs = [ "//Userland/Libraries" ]
|
||||||
|
deps = [ "//AK" ]
|
||||||
|
sources = [
|
||||||
|
"IOSurface.cpp",
|
||||||
|
"MetalContext.mm",
|
||||||
|
]
|
||||||
|
frameworks = [
|
||||||
|
"IOSurface.framework",
|
||||||
|
"Metal.framework",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
source_set("vulkan") {
|
||||||
|
if (enable_vulkan) {
|
||||||
|
include_dirs = [ "//Userland/Libraries" ]
|
||||||
|
deps = [
|
||||||
|
"//AK",
|
||||||
|
"//Meta/gn/build/libs/vulkan",
|
||||||
|
]
|
||||||
|
sources = [ "VulkanContext.cpp" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
shared_library("LibCore") {
|
shared_library("LibCore") {
|
||||||
libs = []
|
libs = []
|
||||||
|
|
||||||
|
@ -158,12 +205,18 @@ shared_library("LibCore") {
|
||||||
if (current_os == "linux") {
|
if (current_os == "linux") {
|
||||||
libs += [ "rt" ]
|
libs += [ "rt" ]
|
||||||
}
|
}
|
||||||
|
if (current_os == "android") {
|
||||||
|
libs += [ "log" ]
|
||||||
|
}
|
||||||
|
|
||||||
output_name = "core"
|
output_name = "core"
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
":filewatcher",
|
":filewatcher",
|
||||||
|
":metal",
|
||||||
":sources",
|
":sources",
|
||||||
|
":timezonewatcher",
|
||||||
|
":vulkan",
|
||||||
"//Meta/gn/build/libs/crypt",
|
"//Meta/gn/build/libs/crypt",
|
||||||
"//Meta/gn/build/libs/pthread",
|
"//Meta/gn/build/libs/pthread",
|
||||||
"//Userland/Libraries/LibURL",
|
"//Userland/Libraries/LibURL",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue