Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cairo to version 1.18.0 #1086

Merged
merged 3 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions gvsbuild/patches/cairo/0001-fix-alloca-unresolved.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Subject: [PATCH] Fix alloca unresolved
---
Index: src/cairo-colr-glyph-render.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/cairo-colr-glyph-render.c b/src/cairo-colr-glyph-render.c
--- a/src/cairo-colr-glyph-render.c (revision 459d19ef1520d39078038ecaa840efca0194e053)
+++ b/src/cairo-colr-glyph-render.c (date 1696094155649)
@@ -43,6 +43,10 @@
#include <stdio.h>
#include <string.h>

+#ifdef _MSC_VER
+#include <malloc.h>
danyeaw marked this conversation as resolved.
Show resolved Hide resolved
+#endif
+
#if HAVE_FT_COLR_V1

#include <ft2build.h>
6 changes: 4 additions & 2 deletions gvsbuild/projects/cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def __init__(self):
Meson.__init__(
self,
"cairo",
version="1.17.8",
version="1.18.0",
lastversion_even=True,
archive_url="https://gitlab.freedesktop.org/cairo/cairo/-/archive/{version}/cairo-{version}.tar.gz",
hash="b4ed6d33037171d4c6594345b42d81796f335a6995fdf5638db0d306c17a0d3e",
hash="39a78afdc33a435c0f2ab53a5ec2a693c3c9b6d2ec9783ceecb2b94d54d942b0",
dependencies=["fontconfig", "freetype", "glib", "pixman", "libpng"],
patches=["0001-fix-alloca-unresolved.patch"],
)

def build(self):
Expand Down
2 changes: 1 addition & 1 deletion gvsbuild/projects/harfbuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self):
version="8.2.1",
archive_url="https://github.com/harfbuzz/harfbuzz/releases/download/{version}/harfbuzz-{version}.tar.xz",
hash="0fec78f98c9c8faf228957a201c8846f809452c20f8445eb092a1ba6f22dbea5",
dependencies=["meson", "cmake", "freetype", "pkgconf", "glib"],
dependencies=["meson", "cmake", "freetype", "cairo", "pkgconf", "glib"],
)

if Project.opts.enable_gi:
Expand Down