]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Add an event handling example
[libs/gui.git] / Build
diff --git a/Build b/Build
index 338611954e8895141c2d05f90761d77c71302709..0f29bb238b49fc49a13b2f595b335fcb9d0fac00 100644 (file)
--- a/Build
+++ b/Build
@@ -1,36 +1,86 @@
-/* $Id$ */
-
-package "mspgbase"
+package "mspgui"
 {
-       description "Mikkosoft Productions graphics base library";
-       version "0.0";
+       version "1.1";
+       description "Base graphics and input library";
 
        require "mspcore";
-       require "mspstrings";
        require "sigc++-2.0";
-       // The OpenGL stuff is hackish, but only way to do it right now
        if "arch!=win32"
        {
                require "xlib";
+       };
+       if "arch=win32"
+       {
+               build_info
+               {
+                       library "gdi32";
+               };
+       };
+
+       feature "devil" "Include DevIL support for loading image files";
+       if "with_devil"
+       {
+               require "devil";
+       };
+
+       feature "libpng" "Include libpng support for loading PNG files"
+       {
+               default "yes";
+       };
+       if "with_libpng"
+       {
+               require "libpng";
+       };
+
+       feature "opengl" "Include support for OpenGL contexts"
+       {
+               default "yes";
+       };
+       if "with_opengl"
+       {
                require "opengl";
+       };
+
+       feature "xf86vidmode" "Include support for video mode switching with xf86vidmode (not win32)";
+       if "with_xf86vidmode and arch!=win32"
+       {
                build_info
                {
                        library "Xxf86vm";
                };
        };
-       if "arch=win32"
+
+       headers "msp/graphics"
+       {
+               source "source/graphics";
+               install true;
+       };
+
+       headers "msp/input"
        {
+               source "source/input";
+               install true;
+       };
+
+       library "mspgui"
+       {
+               source "source/graphics";
+               source "source/input";
+               install true;
+       };
+
+       program "ev"
+       {
+               source "examples/ev.cpp";
                build_info
                {
-                       library "opengl32";
-                       library "gdi32";
+                       library "mspgui";
                };
        };
 
-       library "mspgbase"
+       tarball "@src"
        {
-               source "source";
-               install true;
-               install_headers "msp/gbase";
+               source "License.txt";
+               source "Changelog.txt";
        };
 };