add vimline with style

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
more detailed usage message

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
rpm complains when headers have executable bit set

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
add makefile for android headers

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
no need for check_header_exists

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
dynamically add hooks from glibc

The hook table contains
a. functions that need parameter conversion
   (like parameters of type FILE*, or pthread_mutex_t*)
b. some of the pthread_ functions we know to work from glibc.
   The pthread functions that we don't have in the hook table,
   when called by client code, will cause a crash.

If a symbol is not found in the hook table, it's searched
in libc.so.6. If it's not found there, then we fallback to bionic.

So far, this patch covers bionic{libc,libdl} and a part of libthread_db.
Still to be covered is libm, libstdc++ and linker.

For debugging purposes, one can use HYBRIS_FROM_BIONIC to
force a symbol to be used from Bionic.

So far, I only need longjmp and setjmp from bionic{libc}, everything else
being called from (e)glibc.

Tested on nexus 4 as:
  HYBRIS_EGLPLATFORM=hwcomposer \
  ./ARMHF/bin/test_hwcomposer

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #198 from groleo/extract-headers-2

Extract headers, continuation
Merge pull request #200 from jekstrand/master

Fix up eglSwapBuffers and add eglSwapBuffersWithDamageEXT
Merge pull request #199 from groleo/dyn-hooks

dynamically add hooks from glibc
Only wait and close fenceFds if there's factually one

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

Only wait and close fenceFds if there's factually one
Implement eglSetSwapInterval in the wayland platform

This commit re-instates the use of the frame callback to properly implement
both setSwapInterval(0) and setSwapInterval(1).