loader: introduce the loader util lib
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Jan 2014 23:36:16 +0000 (23:36 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 18 Jan 2014 18:47:27 +0000 (18:47 +0000)
commit8c2e7fd8460750543367053b1be9368cc38e1d6a
tree9587b089f9e43b090a8104661a1c5e27f0769a08
parent1c5e2965a0de296240dd8f5af12482164416b7f1
loader: introduce the loader util lib

All the various window system integration layers duplicate roughly the
same code for figuring out device and driver name, pci-id's, etc.  Which
is sad.  So extract it out into a loader util lib.

v2 (Emil)
* Separate the introduction of libloader from the code de-duplication.
* Strip out non-pci devices support.
* Add scons + Android build system support.
* Add VISIBILITY_CFLAGS to avoid exporting the loader funcs.

v3 (Emil)
* PIPE_OS_ANDROID is undefined at this scope, use ANDROID
* Make sure we define _EGL_NO_DRM when building only swrast

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
22 files changed:
Android.mk
configure.ac
include/pci_ids/pci_id_driver_map.h
src/Makefile.am
src/SConscript
src/egl/drivers/dri2/Android.mk
src/egl/drivers/dri2/Makefile.am
src/gallium/auxiliary/pipe-loader/Makefile.am
src/gallium/state_trackers/egl/Makefile.am
src/gallium/state_trackers/egl/SConscript
src/gallium/targets/egl-static/Android.mk
src/gallium/targets/egl-static/Makefile.am
src/gallium/targets/egl-static/SConscript
src/gbm/Makefile.am
src/glx/Makefile.am
src/glx/SConscript
src/loader/Android.mk [new file with mode: 0644]
src/loader/Makefile.am [new file with mode: 0644]
src/loader/Makefile.sources [new file with mode: 0644]
src/loader/SConscript [new file with mode: 0644]
src/loader/loader.c [new file with mode: 0644]
src/loader/loader.h [new file with mode: 0644]