]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Fix handling of various special keys on Windows
[libs/gui.git] / Build
diff --git a/Build b/Build
index a5baddd1fd409ae884cef557d21cff7f791b59f0..a0f437caa8cd37f3e534672896902defdde577a2 100644 (file)
--- a/Build
+++ b/Build
@@ -1,18 +1,15 @@
-/* $Id$ */
-
-package "mspgbase"
+package "mspgui"
 {
        version "1.1";
        description "Base graphics and input library";
 
        require "mspcore";
-       require "mspstrings";
        require "sigc++-2.0";
-       if "arch!=win32"
+       if_arch "!windows"
        {
                require "xlib";
        };
-       if "arch=win32"
+       if_arch "windows"
        {
                build_info
                {
@@ -21,59 +18,78 @@ package "mspgbase"
        };
 
        feature "devil" "Include DevIL support for loading image files";
-       if "with_devil"
+       if_feature "devil"
        {
-               require "devil";
+               require "IL";
        };
 
-       feature "libpng" "Include libpng support for loading PNG files (also requires libmspio)"
+       feature "libpng" "Include libpng support for loading PNG files"
        {
                default "yes";
        };
-       if "with_libpng"
+       if_feature "libpng"
        {
                require "libpng";
-               require "mspio";
        };
 
        feature "opengl" "Include support for OpenGL contexts"
        {
                default "yes";
        };
-       if "with_opengl"
+       if_feature "opengl"
        {
                require "opengl";
        };
 
-       feature "xf86vidmode" "Include support for video mode switching with xf86vidmode (not win32)";
-       if "with_xf86vidmode and arch!=win32"
+       if_arch "!windows"
        {
-               build_info
+               feature "xf86vidmode" "Include support for video mode switching with xf86vidmode";
+               if_feature "xf86vidmode"
                {
-                       library "Xxf86vm";
+                       build_info
+                       {
+                               library "Xxf86vm";
+                       };
                };
        };
 
-       headers "msp/gbase"
-       {
-               source "source/gbase";
-               install true;
-       };
-
-       headers "msp/input"
+       library "mspgui"
        {
+               source "source/graphics";
                source "source/input";
+               if_arch "windows"
+               {
+                       overlay "windows";
+                       if_feature "opengl"
+                       {
+                               overlay "wgl";
+                       };
+               };
+               if_arch "!windows"
+               {
+                       overlay "x11";
+                       if_feature "opengl"
+                       {
+                               overlay "glx";
+                       };
+               };
                install true;
+               install_map
+               {
+                       map "source" "include/msp";
+               };
        };
 
-       library "mspgbase"
+       program "ev"
        {
-               source "source/gbase";
-               source "source/input";
-               install true;
+               source "examples/ev.cpp";
+               build_info
+               {
+                       library "mspgui";
+               };
        };
 
-       tarball "@src"
+       source_tarball
        {
                source "License.txt";
                source "Changelog.txt";