Add test for libnfc_nxp.

The NFC test application checks whether the NFC stack can be
successfully initialised and deinitialised.

Moves toplevel tests SUBDIRS to the end to ensure the libraries have
been built prior to building tests.
Fix Jolla copyright.
Merge pull request #108 from amccarthy/nfc-test

Add test for libnfc_nxp.
Merge pull request #109 from amccarthy/copyright

Fix Jolla copyright.
EGL Platform null: Don't do named struct assignments

When hooking up the ws functions to struct ws_module, do not use named
struct assignments. This way, additions and removals to/from struct
ws_module generate warnings instead of being silenced.

Signed-off-by: Thomas Perl <thomas.perl@jollamobile.com>
EGL: Add support for ws_DestroyWindow

Some EGL platform like fbdev need to know when a window surface is
destroyed, so that it can carry out clean ups in its internal state.

egl/ws.*: Add ws_module::DestroyWindow and ws_DestroyWindow
egl/helper.*: Add simple surface->window mapping using std::map
egl/egl.c: Maintain mapping and call ws_DestroyWindow
egl/platforms/*: Add DestroyWindow implementations

The DestroyWindow implementation for hwcomposer, null and wayland might
need some additional work - I've added TODO comments where I wasn't sure
if deleting what okay at that point.

ws_DestroyWindow will be called after the real EGLDestroySurface has
returned, but before our wrapper EGLDestroySurface function returns.

Signed-off-by: Thomas Perl <thomas.perl@jollamobile.com>
Only build NFC if libnfc-nxp headers are available.
Merge pull request #113 from amccarthy/nfc-conditional-build

Only build NFC if libnfc-nxp headers are available.
properties: separate properties in another library

So it can be used without necessarily depending on libhybris.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
properties: add support to get/set property via the property service

The property service is running inside the android init daemon and
creates a socket in /dev/socket/property_service which we can use
for setting properties (getting is done via an extra android patch
to add 'get' and 'list' support in the property service).

Additional patches for the Android init system can be found at
http://people.canonical.com/~rsalveti/properties/

Based on a similar patch by Simon Busch <morphis@gravedo.de>.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Add configure option to change default used EGL platform

Signed-off-by: Simon Busch <morphis@gravedo.de>
Merge pull request #110 from morphis/morphis/default-egl-platform

Add configure option to change default used EGL platform
Merge pull request #114 from rsalveti/property-system

Implement get/set property via property service
eglCreateImageKHR: sgx doesn't ignore unknown attribs as it should

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #117 from groleo/upstream

eglCreateImageKHR: sgx doesn't ignore unknown attribs as it should
Merge pull request #111 from thp/egl_ws_destroywindow

EGL: Add support for ws_DestroyWindow
Implement EGL_HYBRIS_native_buffer

This is an EGL extension that lets applications allocate/lock/release GPU buffers; for zero-copy textures on some systems; or fast render targets needed for browsers.

Copy hybris_nativebufferext.h into your application and eglGetProcAddress()
for eglHybrisCreateNativeBuffer, eglHybrisLockNativeBuffer,
eglHybrisUnlockNativeBuffer, eglHybrisReleaseNativeBuffer.

More implementation to come on Wayland side, sharing buffers.

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

Implement EGL_HYBRIS_native_buffer
properties.c: better handling for name and value sizes

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Add HYBRIS_LD_LIBRARY_PATH ability to JB linker

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