Blender Git Loki

Git Commits -> Revision 58568d1

Revision 58568d1 by Sergey Sharybin (HMD_viewport)
March 25, 2016, 09:31 (GMT)
HMD: Add support of lazil loading udev library

This way we can statically link against hidapi libraries but dont'
require static linking against udev or even having specific ABI
version of this library installed on the client machine.

For now the following libraries will try to be loaded:
libudev.so, libudev.so.0, libudev.so.1 and libudev.so.2

Not future proof since it might be version 3 of udev releases
eventually, good enough for the beginning. We can simply do a
for-loop to query like 100 of ABIs.

Udev wrangler is a bit different from other wranglers we've got,
it has wrapper functions around dlopen-ed symbols, so you can't
check directly if function was loaded or not, but this is the
only way to make external libraries working fine with wrangler
without need of re-compiling the library.

Commit Details:

Full Hash: 58568d1bd3824bf7b847ab55952759426afc23f6
Parent Commit: b811750
Lines Changed: +1766, -8

7 Added Paths:

/extern/udew/auto/libudev.h (+205, -0) (View)
/extern/udew/auto/udew_gen.sh (+245, -0) (View)
/extern/udew/CMakeLists.txt (+38, -0) (View)
/extern/udew/include/udew.h (+389, -0) (View)
/extern/udew/LICENSE (+174, -0)
/extern/udew/README (+14, -0)
/extern/udew/src/udew.c (+656, -0) (View)

6 Modified Paths:

/build_files/buildbot/config/blender_linux.cmake (+2, -2) (Diff)
/build_files/cmake/macros.cmake (+5, -2) (Diff)
/CMakeLists.txt (+4, -0) (Diff)
/extern/CMakeLists.txt (+4, -0) (Diff)
/intern/ghost/CMakeLists.txt (+10, -4) (Diff)
/intern/ghost/intern/GHOST_OpenHMDManager.cpp (+20, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021