]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Make xf86vidmode support optional
[libs/gui.git] / Build
diff --git a/Build b/Build
index 7447df7716604235e67eb5bfbed26c16410b5e40..591c30d58bfa8cc88fb7bd90e42458e01a104d2f 100644 (file)
--- a/Build
+++ b/Build
@@ -14,10 +14,6 @@ package "mspgbase"
        if "arch!=win32"
        {
                require "xlib";
-               build_info
-               {
-                       library "Xxf86vm";
-               };
        };
        if "arch=win32"
        {
@@ -46,6 +42,15 @@ package "mspgbase"
                require "opengl";
        };
 
+       feature "xf86vidmode" "Include support for video mode switching with xf86vidmode (not win32)";
+       if "with_xf86vidmode and arch!=win32"
+       {
+               build_info
+               {
+                       library "Xxf86vm";
+               };
+       };
+
        headers "gbase"
        {
                source "source/gbase";