summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/gdi/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/gdi/SConscript')
-rw-r--r--src/gallium/winsys/gdi/SConscript39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gallium/winsys/gdi/SConscript b/src/gallium/winsys/gdi/SConscript
new file mode 100644
index 00000000000..f9c1a346689
--- /dev/null
+++ b/src/gallium/winsys/gdi/SConscript
@@ -0,0 +1,39 @@
+#######################################################################
+# SConscript for gdi winsys
+
+Import('*')
+
+if env['platform'] == 'windows':
+
+ env = env.Clone()
+
+ env.Append(CPPPATH = [
+ '#src/gallium/state_trackers/wgl',
+ ])
+
+ env.Append(CPPDEFINES = [
+ '__GL_EXPORTS',
+ 'BUILD_GL32',
+ '_GNU_H_WINDOWS32_DEFINES',
+ ])
+
+ env.Append(LIBS = [
+ 'gdi32',
+ 'user32',
+ 'kernel32',
+ ])
+
+ sources = [
+ '#src/gallium/state_trackers/wgl/opengl32.def',
+ 'gdi_softpipe_winsys.c',
+ ]
+
+ drivers = [
+ softpipe,
+ ]
+
+ env.SharedLibrary(
+ target ='opengl32',
+ source = sources,
+ LIBS = wgl + glapi + mesa + drivers + auxiliaries + env['LIBS'],
+ )