Supports mv_prj feature to disable cairo_gl_backend. 78/316078/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20241216.010814 accepted/tizen/unified/x/20241218.032838 accepted/tizen/unified/x/asan/20241224.004609
authorWonsik Jung <sidein@samsung.com>
Tue, 10 Dec 2024 05:02:04 +0000 (14:02 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 10 Dec 2024 05:02:04 +0000 (14:02 +0900)
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

index 58309dbc0afb6c170084d55243699419fdff2665..2229363e5555986f113135f329de85eb2a4190bd 100644 (file)
@@ -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 \