summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cogl/cogl-1.0.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/cogl/cogl-1.0.inc')
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0.inc88
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
new file mode 100644
index 0000000000..b763dd5ba8
--- /dev/null
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -0,0 +1,88 @@
1SUMMARY = "Modern 3D graphics API with associated utility APIs"
2HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl"
3LICENSE = "MIT"
4
5inherit clutter
6
7DEPENDS = "glib-2.0 gdk-pixbuf"
8PACKAGES =+ "${PN}-examples \
9 libcogl libcogl-dev \
10 libcogl-gles2 libcogl-gles2-dev \
11 libcogl-pango libcogl-pango-dev \
12 libcogl-path libcogl-path-dev"
13AUTOTOOLS_AUXDIR = "${S}/build"
14
15# Extra DEPENDS for PACKAGECONFIG
16EDEPENDS_GL = "virtual/libgl libdrm"
17EDEPENDS_GLES2 = "virtual/libgles2"
18EDEPENDS_KMS = "libdrm virtual/egl"
19EDEPENDS_EGL = "virtual/egl"
20EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr"
21EDEPENDS_WAYLAND = "virtual/mesa wayland"
22
23# Extra RDEPENDS for PACKAGECONFIG
24# This has to be explictly listed, because cogl dlopens the backends
25ERDEPENDS_GL = "libgl"
26ERDEPENDS_GLES2 = "libgles2"
27
28# GLESv1 is rarely tested, so disable it
29EXTRA_OECONF += "--disable-introspection \
30 --enable-examples-install \
31 --enable-debug \
32 --disable-gles1 \
33 --disable-cairo \
34 "
35
36# OpenGL/GLX
37PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}"
38
39# GLESv2
40PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}"
41
42# EGL backends
43PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}"
44PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform"
45PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}"
46PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}"
47
48# Wayland (server-side)
49PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}"
50
51# Support rendering text directly with Pango
52PACKAGECONFIG[cogl-pango] = "--enable-cogl-pango,--disable-cogl-pango,pango"
53
54# Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by
55# default.
56PACKAGECONFIG ??= "cogl-pango gles2 \
57 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
58 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}"
59
60FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
61FILES_libcogl = "${libdir}/libcogl${SOLIBS}"
62FILES_libcogl-dev = "${includedir}/cogl/cogl \
63 ${libdir}/libcogl${SOLIBSDEV} \
64 ${libdir}/libcogl.la \
65 ${libdir}/pkgconfig/cogl-1.0.pc \
66 ${libdir}/pkgconfig/cogl-2.0-experimental.pc \
67 ${libdir}/pkgconfig/cogl-gl-1.0.pc"
68FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}"
69FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \
70 ${libdir}/libcogl-gles2${SOLIBSDEV} \
71 ${libdir}/libcogl-gles2.la \
72 ${libdir}/pkgconfig/cogl-gles2-experimental.pc"
73FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}"
74FILES_libcogl-pango-dev = "${includedir}/cogl/cogl-pango \
75 ${libdir}/libcogl-pango${SOLIBSDEV} \
76 ${libdir}/libcogl-pango.la \
77 ${libdir}/pkgconfig/cogl-pango-1.0.pc"
78
79FILES_libcogl-path = "${libdir}/libcogl-path${SOLIBS}"
80FILES_libcogl-path-dev = "${includedir}/cogl/cogl-path \
81 ${libdir}/libcogl-path${SOLIBSDEV} \
82 ${libdir}/libcogl-path.la \
83 ${libdir}/pkgconfig/cogl-path-1.0.pc"
84
85# For backwards compatibility after Debian-renaming
86RPROVIDES_libcogl = "cogl-1.0"
87RCONFLICTS_libcogl = "cogl-1.0"
88RREPLACES_libcogl = "cogl-1.0"