Adds initial Emscripten support to Cogl

Desktop / GNOME / COGL - Robert Bragg [linux.intel.com] - 29 May 2013 13:10 UTC

This enables basic Emscripten support in Cogl via the SDL winsys. Assuming you have setup an emscripten toolchain you can configure Cogl like this:

emconfigure ./configure --enable-debug --enable-emscripten

Building the examples will build .html files that can be loaded directly by a WebGL enabled browser.

Note: at this point the emscripten support has just barely been smoke tested so it's expected that as we continue to build on this we will learn about more things we need to change in Cogl to full support this environment.

a3bc2e7 Adds initial Emscripten support to Cogl
cogl/Makefile.am | 1 +
cogl/cogl-debug.c | 2 +-
cogl/cogl-i18n-private.h | 35 +++++
cogl/cogl-profile.c | 2 +-
cogl/cogl.c | 4 +-
cogl/winsys/cogl-winsys-egl.c | 3 +-
cogl/winsys/cogl-winsys-glx.c | 3 +-
cogl/winsys/cogl-winsys-sdl.c | 22 ++-
configure.ac | 272 +++++++++++++++++++++++++-------------
examples/Makefile.am | 20 +++
examples/cogl-emscripten-hello.c | 135 +++++++++++++++++++
examples/cogl-info.c | 4 +
tests/conform/Makefile.am | 12 +-
13 files changed, 410 insertions(+), 105 deletions(-)

Upstream: developer.gnome.org


  • Share