mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +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
|
@ -211,6 +211,7 @@ if (current_os == "mac") {
|
||||||
|
|
||||||
bundle_data("ladybird_bundle_libs") {
|
bundle_data("ladybird_bundle_libs") {
|
||||||
public_deps = [
|
public_deps = [
|
||||||
|
"//Userland/Libraries/LibAccelGfx",
|
||||||
"//Userland/Libraries/LibAudio",
|
"//Userland/Libraries/LibAudio",
|
||||||
"//Userland/Libraries/LibCompress",
|
"//Userland/Libraries/LibCompress",
|
||||||
"//Userland/Libraries/LibCore",
|
"//Userland/Libraries/LibCore",
|
||||||
|
@ -247,6 +248,7 @@ if (current_os == "mac") {
|
||||||
"//Userland/Libraries/LibXML",
|
"//Userland/Libraries/LibXML",
|
||||||
]
|
]
|
||||||
sources = [
|
sources = [
|
||||||
|
"$root_out_dir/lib/liblagom-accelgfx.dylib",
|
||||||
"$root_out_dir/lib/liblagom-audio.dylib",
|
"$root_out_dir/lib/liblagom-audio.dylib",
|
||||||
"$root_out_dir/lib/liblagom-compress.dylib",
|
"$root_out_dir/lib/liblagom-compress.dylib",
|
||||||
"$root_out_dir/lib/liblagom-core.dylib",
|
"$root_out_dir/lib/liblagom-core.dylib",
|
||||||
|
|
|
@ -70,4 +70,8 @@ executable("WebContent") {
|
||||||
"main.cpp",
|
"main.cpp",
|
||||||
]
|
]
|
||||||
sources += get_target_outputs(":generate_moc")
|
sources += get_target_outputs(":generate_moc")
|
||||||
|
|
||||||
|
if (current_os == "linux" || current_os == "mac") {
|
||||||
|
cflags_cc = [ "-DHAS_ACCELERATED_GRAPHICS" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,12 +7,16 @@ shared_library("LibAccelGfx") {
|
||||||
"//Userland/Libraries/LibCore",
|
"//Userland/Libraries/LibCore",
|
||||||
"//Userland/Libraries/LibGfx",
|
"//Userland/Libraries/LibGfx",
|
||||||
]
|
]
|
||||||
|
|
||||||
if (current_os == "linux") {
|
if (current_os == "linux") {
|
||||||
libs = [
|
libs = [
|
||||||
"GL",
|
"GL",
|
||||||
"EGL",
|
"EGL",
|
||||||
]
|
]
|
||||||
|
} else if (current_os == "mac") {
|
||||||
|
frameworks = [ "OpenGL.framework" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
"Canvas.h",
|
"Canvas.h",
|
||||||
"Context.cpp",
|
"Context.cpp",
|
||||||
|
|
|
@ -40,7 +40,8 @@ source_set("Painting") {
|
||||||
"VideoPaintable.cpp",
|
"VideoPaintable.cpp",
|
||||||
"ViewportPaintable.cpp",
|
"ViewportPaintable.cpp",
|
||||||
]
|
]
|
||||||
if (current_os == "linux") {
|
|
||||||
|
if (current_os == "linux" || current_os == "mac") {
|
||||||
sources += [ "PaintingCommandExecutorGPU.cpp" ]
|
sources += [ "PaintingCommandExecutorGPU.cpp" ]
|
||||||
public_deps = [ "//Userland/Libraries/LibAccelGfx" ]
|
public_deps = [ "//Userland/Libraries/LibAccelGfx" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue