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

Meta: Port recent changes to the GN build

9836a9ad0e
bc9cdd4394
28723d8be1
f4a5c136c3
This commit is contained in:
Timothy Flynn 2023-11-27 09:25:06 -05:00 committed by Andreas Kling
parent 707added91
commit 2891633877
3 changed files with 27 additions and 3 deletions

View file

@ -20,6 +20,7 @@ shared_library("LibAccelGfx") {
"Forward.h",
"GL.cpp",
"GL.h",
"GlyphAtlas.cpp",
"Painter.cpp",
"Painter.h",
"Program.cpp",

View file

@ -30,8 +30,6 @@ shared_library("LibCrypto") {
"Cipher/ChaCha20.cpp",
"Curves/Curve25519.cpp",
"Curves/Ed25519.cpp",
"Curves/SECP256r1.cpp",
"Curves/SECP384r1.cpp",
"Curves/X25519.cpp",
"Curves/X448.cpp",
"Hash/BLAKE2b.cpp",

View file

@ -1,9 +1,30 @@
action("generate_tiff_sources") {
script = "//Userland/Libraries/LibGfx/TIFFGenerator.py"
args = [
"-o",
rebase_path("$target_gen_dir/ImageFormats", root_build_dir),
]
outputs = [
"$target_gen_dir/ImageFormats/TIFFMetadata.h",
"$target_gen_dir/ImageFormats/TIFFTagHandler.cpp",
]
# FIXME: install header into $prefix/include/LibGfx/ImageFormats on serenity
}
config("tiff_headers") {
include_dirs = [ "$target_gen_dir/.." ]
}
shared_library("LibGfx") {
output_name = "gfx"
include_dirs = [
"//Userland/Libraries",
"//Userland",
]
public_configs = [ ":tiff_headers" ]
sources = [
"AffineTransform.cpp",
"AntiAliasingPainter.cpp",
@ -61,11 +82,11 @@ shared_library("LibGfx") {
"ImageFormats/QOIWriter.cpp",
"ImageFormats/TGALoader.cpp",
"ImageFormats/TIFFLoader.cpp",
"ImageFormats/TIFFTagHandler.cpp",
"ImageFormats/TinyVGLoader.cpp",
"ImageFormats/WebPLoader.cpp",
"ImageFormats/WebPLoaderLossless.cpp",
"ImageFormats/WebPLoaderLossy.cpp",
"ImmutableBitmap.cpp",
"Painter.cpp",
"Palette.cpp",
"Path.cpp",
@ -81,7 +102,11 @@ shared_library("LibGfx") {
"VectorGraphic.cpp",
"WindowTheme.cpp",
]
sources += get_target_outputs(":generate_tiff_sources")
deps = [
":generate_tiff_sources",
"//AK",
"//Userland/Libraries/LibCompress",
"//Userland/Libraries/LibCore",