egl: Add egl.def for win32 build.
authorChia-I Wu <olv@lunarg.com>
Fri, 20 Aug 2010 04:41:46 +0000 (12:41 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 20 Aug 2010 11:22:50 +0000 (19:22 +0800)
Without the .def file, function names are decorated and cannot be
queried by GetProcAddress easily.

src/egl/main/SConscript
src/egl/main/egl.def [new file with mode: 0644]

index 1e4d4f39de119a991c7537548249e130c04ee7a7..06846475baf6ddf082c9158854def68230359c18 100644 (file)
@@ -42,7 +42,7 @@ if env['platform'] != 'winddk':
 
        egl = env.SharedLibrary(
                target = 'libEGL',
-               source = egl_sources,
+               source = egl_sources + ['egl.def'],
        )
 
        env.InstallSharedLibrary(egl, version=(1, 4, 0))
diff --git a/src/egl/main/egl.def b/src/egl/main/egl.def
new file mode 100644 (file)
index 0000000..0cfe920
--- /dev/null
@@ -0,0 +1,35 @@
+EXPORTS
+   eglBindAPI
+   eglBindTexImage
+   eglChooseConfig
+   eglCopyBuffers
+   eglCreateContext
+   eglCreatePbufferFromClientBuffer
+   eglCreatePbufferSurface
+   eglCreatePixmapSurface
+   eglCreateWindowSurface
+   eglDestroyContext
+   eglDestroySurface
+   eglGetConfigAttrib
+   eglGetConfigs
+   eglGetCurrentContext
+   eglGetCurrentDisplay
+   eglGetCurrentSurface
+   eglGetDisplay
+   eglGetError
+   eglGetProcAddress
+   eglInitialize
+   eglMakeCurrent
+   eglQueryAPI
+   eglQueryContext
+   eglQueryString
+   eglQuerySurface
+   eglReleaseTexImage
+   eglReleaseThread
+   eglSurfaceAttrib
+   eglSwapBuffers
+   eglSwapInterval
+   eglTerminate
+   eglWaitClient
+   eglWaitGL
+   eglWaitNative