print '#include <string.h>'
print '#include <dlfcn.h>'
print
- print '#include "trace_writer.hpp"'
+ print '#include "trace_writer_local.hpp"'
print
print '// To validate our prototypes'
print '#define GL_GLEXT_PROTOTYPES'
print ' return procPtr;'
print '}'
print
- print r'''
-
-/*
- * Lookup a EGL or GLES symbol
- */
-void * __libegl_sym(const char *symbol, bool pub)
-{
- void *proc;
-
- /*
- * Public symbols are EGL core functions and those defined in dekstop GL
- * ABI. Troubles come from the latter.
- */
- if (pub) {
- proc = dlsym(RTLD_NEXT, symbol);
- if (!proc && symbol[0] == 'g' && symbol[1] == 'l')
- proc = (void *) __eglGetProcAddress(symbol);
- }
- else {
- proc = (void *) __eglGetProcAddress(symbol);
- if (!proc && symbol[0] == 'g' && symbol[1] == 'l')
- proc = dlsym(RTLD_NEXT, symbol);
- }
-
- return proc;
-}
-'''