diff options
Diffstat (limited to 'recipes-graphics/mesa/mesa-demos/Add-OpenVG-demos-to-support-wayland.patch')
-rw-r--r-- | recipes-graphics/mesa/mesa-demos/Add-OpenVG-demos-to-support-wayland.patch | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa-demos/Add-OpenVG-demos-to-support-wayland.patch b/recipes-graphics/mesa/mesa-demos/Add-OpenVG-demos-to-support-wayland.patch new file mode 100644 index 00000000..19bcca98 --- /dev/null +++ b/recipes-graphics/mesa/mesa-demos/Add-OpenVG-demos-to-support-wayland.patch | |||
@@ -0,0 +1,84 @@ | |||
1 | From 8aba54422d9a77383c150f9f70240b18b6e1918e Mon Sep 17 00:00:00 2001 | ||
2 | From: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
3 | Date: Thu, 9 Apr 2015 15:47:21 -0500 | ||
4 | Subject: [PATCH] Add OpenVG demos to support wayland. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com> | ||
9 | --- | ||
10 | src/egl/Makefile.am | 6 +++--- | ||
11 | src/egl/openvg/Makefile.am | 33 +++++++++++++++++++++++++++++---- | ||
12 | 2 files changed, 32 insertions(+), 7 deletions(-) | ||
13 | |||
14 | Index: mesa-demos-8.2.0/src/egl/Makefile.am | ||
15 | =================================================================== | ||
16 | --- mesa-demos-8.2.0.orig/src/egl/Makefile.am 2016-05-09 11:45:51.479100180 -0500 | ||
17 | +++ mesa-demos-8.2.0/src/egl/Makefile.am 2016-05-09 11:45:51.475100160 -0500 | ||
18 | @@ -26,10 +26,10 @@ | ||
19 | eglut \ | ||
20 | opengles1 \ | ||
21 | opengles2 \ | ||
22 | - oes_vg | ||
23 | + oes_vg \ | ||
24 | + openvg | ||
25 | |||
26 | if HAVE_GLU | ||
27 | SUBDIRS += \ | ||
28 | - opengl \ | ||
29 | - openvg | ||
30 | + opengl | ||
31 | endif | ||
32 | Index: mesa-demos-8.2.0/src/egl/openvg/Makefile.am | ||
33 | =================================================================== | ||
34 | --- mesa-demos-8.2.0.orig/src/egl/openvg/Makefile.am 2016-05-09 11:45:51.479100180 -0500 | ||
35 | +++ mesa-demos-8.2.0/src/egl/openvg/Makefile.am 2016-05-09 12:39:30.000000000 -0500 | ||
36 | @@ -47,13 +47,26 @@ | ||
37 | endif | ||
38 | endif | ||
39 | |||
40 | +if HAVE_WAYLAND | ||
41 | +EGL_WL_DEMOS = \ | ||
42 | + lion_wayland \ | ||
43 | + sp_wayland | ||
44 | + | ||
45 | +if HAVE_FREETYPE2 | ||
46 | +EGL_WL_DEMOS += \ | ||
47 | + vgtext_wayland | ||
48 | +endif | ||
49 | +endif | ||
50 | + | ||
51 | if HAVE_EGL | ||
52 | if HAVE_VG | ||
53 | bin_PROGRAMS = \ | ||
54 | - $(EGL_X11_DEMOS) | ||
55 | + $(EGL_X11_DEMOS) \ | ||
56 | + $(EGL_WL_DEMOS) | ||
57 | endif | ||
58 | endif | ||
59 | |||
60 | +if HAVE_X11 | ||
61 | lion_x11_SOURCES = lion.c lion-render.c lion-render.h | ||
62 | sp_x11_SOURCES = sp.c | ||
63 | |||
64 | @@ -63,6 +76,20 @@ | ||
65 | text_SOURCES = text.c | ||
66 | text_CFLAGS = $(AM_CFLAGS) @FREETYPE2_CFLAGS@ | ||
67 | text_LDADD = @FREETYPE2_LIBS@ ../eglut/libeglut_x11.la | ||
68 | +endif | ||
69 | + | ||
70 | +if HAVE_WAYLAND | ||
71 | +lion_wayland_SOURCES = lion.c lion-render.c lion-render.h | ||
72 | +lion_wayland_LDADD = ../eglut/libeglut_wayland.la | ||
73 | + | ||
74 | +sp_wayland_SOURCES = sp.c | ||
75 | +sp_wayland_LDADD = ../eglut/libeglut_wayland.la | ||
76 | + | ||
77 | +vgtext_wayland_SOURCES = text.c | ||
78 | +vgtext_wayland_CFLAGS = $(AM_CFLAGS) @FREETYPE2_CFLAGS@ | ||
79 | +vgtext_wayland_LDADD = @FREETYPE2_LIBS@ ../eglut/libeglut_wayland.la | ||
80 | + | ||
81 | +endif | ||
82 | |||
83 | SUBDIRS = \ | ||
84 | trivial | ||