mesa: Ensure gl* symbols are marked as dllexport on windows.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 6 Jan 2009 16:20:12 +0000 (16:20 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Jan 2009 12:05:05 +0000 (12:05 +0000)
src/mesa/SConscript

index dd0468fb93c355233a20558d2cac4f18a6c8ace1..01620ee61471c8e00af03ef36792dbd93840d300 100644 (file)
@@ -12,6 +12,12 @@ if env['platform'] != 'winddk':
                '#/src/mesa',
        ])
        
+       if env['platform'] == 'windows':
+               env.Append(CPPDEFINES = [
+                       '_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers
+                       'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers 
+               ])       
+
        #
        # Source files
        #