From 7beb07a63a6ae09c3412767c4cea10adc59c92c7 Mon Sep 17 00:00:00 2001 From: Wonsik Jung Date: Tue, 10 Dec 2024 14:02:04 +0900 Subject: [PATCH] Supports mv_prj feature to disable cairo_gl_backend. In mv_project, it does not have the screen. So, cairo need not support drawing to window surface. It is for that. Change-Id: I4d117ff7bbff5af1fe117540b4f96f3cc40a7acf --- packaging/cairo.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/cairo.spec b/packaging/cairo.spec index 58309dbc0..2229363e5 100644 --- a/packaging/cairo.spec +++ b/packaging/cairo.spec @@ -23,11 +23,12 @@ BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(pixman-1) BuildRequires: which -BuildRequires: pkgconfig(ecore) -BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(ttrace) BuildRequires: gtk-doc +%if "%{mv_prj}" != "1" %if %{with cairo_gl_backend} +BuildRequires: pkgconfig(ecore) +BuildRequires: pkgconfig(evas) %if %{with x} && %{with desktop} BuildRequires: pkgconfig(gl) %endif @@ -36,6 +37,7 @@ BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(wayland-egl) %endif %endif +%endif %if %{with x} BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(x11) @@ -124,10 +126,12 @@ NOCONFIGURE=1 ./autogen.sh --with-pic \ --enable-fc \ --enable-ft \ +%if "%{mv_prj}" != "1" %if %{with cairo_gl_backend} --enable-egl=yes \ --enable-glesv2=yes \ --enable-evasgl=yes \ +%endif %endif --enable-ps=yes \ --enable-pdf=yes \ -- 2.34.1