mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:27:45 +00:00
Meta: Support GPU painting in the GN build
This commit is contained in:
parent
8fc5c8b7df
commit
8504d8f588
4 changed files with 12 additions and 1 deletions
|
@ -7,12 +7,16 @@ shared_library("LibAccelGfx") {
|
|||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibGfx",
|
||||
]
|
||||
|
||||
if (current_os == "linux") {
|
||||
libs = [
|
||||
"GL",
|
||||
"EGL",
|
||||
]
|
||||
} else if (current_os == "mac") {
|
||||
frameworks = [ "OpenGL.framework" ]
|
||||
}
|
||||
|
||||
sources = [
|
||||
"Canvas.h",
|
||||
"Context.cpp",
|
||||
|
|
|
@ -40,7 +40,8 @@ source_set("Painting") {
|
|||
"VideoPaintable.cpp",
|
||||
"ViewportPaintable.cpp",
|
||||
]
|
||||
if (current_os == "linux") {
|
||||
|
||||
if (current_os == "linux" || current_os == "mac") {
|
||||
sources += [ "PaintingCommandExecutorGPU.cpp" ]
|
||||
public_deps = [ "//Userland/Libraries/LibAccelGfx" ]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue