]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Remove modifier constants
[libs/gui.git] / Build
diff --git a/Build b/Build
index 612f9be5a84e998326dba0f9ba37dadde3938513..76b5622f9a41aac9f4dafccb6e3e9b1ff9fdcc05 100644 (file)
--- a/Build
+++ b/Build
@@ -1,18 +1,77 @@
-/* $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 "sigc++-2.0";
-       require "Xlib";
+       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";
+               };
+       };
+
+       headers "msp/graphics"
+       {
+               source "source/graphics";
+               install true;
+       };
+
+       headers "msp/input"
+       {
+               source "source/input";
+               install true;
+       };
 
-       library "mspgbase"
+       library "mspgui"
        {
-               source "source";
+               source "source/graphics";
+               source "source/input";
                install true;
-               install_headers "msp/gbase";
+       };
+
+       tarball "@src"
+       {
+               source "License.txt";
+               source "Changelog.txt";
        };
 };