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

Meta: Add gn build rules for LibGL and its dependencies

This commit is contained in:
Andrew Kaster 2023-05-05 12:50:24 -06:00 committed by Andrew Kaster
parent bf02069a89
commit 13a5606cdc
6 changed files with 203 additions and 0 deletions

View file

@ -0,0 +1,21 @@
shared_library("LibGPU") {
output_name = "gpu"
include_dirs = [ "//Userland/Libraries" ]
sources = [
"Driver.cpp",
"Image.cpp",
]
deps = [
"//AK",
"//Userland/Libraries/LibCore",
]
# FIXME: express this dependency properly to avoid cycles
# we want to make sure that LibSoftGPU is built when LibGPU is needed
#data_deps = [ "//Userland/Libraries/LibSoftGPU" ]
if (current_os == "serenity") {
#data_deps += [ "//Userland/Libraries/LibVirtGPU" ]
} else if (current_os == "linux") {
libs = [ "dl" ]
}
}