Add safety checks through magic checking, HW composer helper window

As well as test for (JB 4.2.2) HW composer

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Make a handy little function for dumping a buffer to file.

Also extern "C"'ed libhybris api

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Add EGL 'extension' for directly posting native buffers to Wayland window

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Require external android header set, remove local copy. This is needed because of differences in Android ABI on different devices

Also remove rpm/ directory

With utils/extract-headers.sh from a Android source tree + version, you
can make a libhybris compatible Android header set you can then point to
with --with-android-headers=/usr/include/android-mine

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>

Conflicts:
	hybris/egl/platforms/common/eglplatformcommon.cpp
Add environment variable to dump all queued buffers

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Add pkg-config files for hardware and sync libraries.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Add also the path where the eglplatformcommon files are located to cflags.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Require android-headers with the hybris-egl-platform.pc file.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Add pkg-config file for hwcomposer.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Add method for dumping wayland buffers and improved dump buffer filenames

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Assert only one window to be created in fbdev

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
wayland: Handle scenario where all buffers have been fronted, don't stall

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Make libhybris more quiet, only noisy when tracing/debugging

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Only build libsync on Android 4.2.0 and above

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
ICS linker is broken currently, use JB one

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Make libhybris build with ICS headers

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #81 from stskeeps/for_upstream1

Changes for upstream: EGL extension for Wayland window, safety checks, external android header set patch