]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Bump version to 1.1
[libs/gui.git] / Build
diff --git a/Build b/Build
index 8c834be037858b481c49574b05dedb50ed5a7b61..890bd3fc62b097ef1fe16dcc05f47091864dfa8e 100644 (file)
--- a/Build
+++ b/Build
@@ -2,20 +2,15 @@
 
 package "mspgbase"
 {
-       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";
-       require "opengl";
        if "arch!=win32"
        {
                require "xlib";
-               build_info
-               {
-                       library "Xxf86vm";
-               };
        };
        if "arch=win32"
        {
@@ -31,16 +26,38 @@ package "mspgbase"
                require "devil";
        };
 
-       headers "gbase"
+       feature "libpng" "Include libpng support for loading PNG files (also requires libmspio)";
+       if "with_png"
+       {
+               require "libpng";
+               require "mspio";
+       };
+
+       feature "opengl" "Include support for OpenGL contexts";
+       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/gbase"
        {
                source "source/gbase";
-               install_headers "msp/gbase";
+               install true;
        };
 
-       headers "input"
+       headers "msp/input"
        {
                source "source/input";
-               install_headers "msp/input";
+               install true;
        };
 
        library "mspgbase"
@@ -49,4 +66,10 @@ package "mspgbase"
                source "source/input";
                install true;
        };
+
+       tarball "@src"
+       {
+               source "License.txt";
+               source "Changelog.txt";
+       };
 };