]> git.tdb.fi Git - libs/gui.git/blobdiff - Build
Default to using OpenGL and libpng since those are commonly needed
[libs/gui.git] / Build
diff --git a/Build b/Build
index 338611954e8895141c2d05f90761d77c71302709..e53a3ea81c8d5bb973921dced02e54d3892bccea 100644 (file)
--- a/Build
+++ b/Build
@@ -2,35 +2,80 @@
 
 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";
-       // The OpenGL stuff is hackish, but only way to do it right now
        if "arch!=win32"
        {
                require "xlib";
-               require "opengl";
+       };
+       if "arch=win32"
+       {
                build_info
                {
-                       library "Xxf86vm";
+                       library "gdi32";
                };
        };
-       if "arch=win32"
+
+       feature "devil" "Include DevIL support for loading image files";
+       if "with_devil"
+       {
+               require "devil";
+       };
+
+       feature "libpng" "Include libpng support for loading PNG files (also requires libmspio)"
+       {
+               default "yes";
+       };
+       if "with_png"
+       {
+               require "libpng";
+               require "mspio";
+       };
+
+       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 "opengl32";
-                       library "gdi32";
+                       library "Xxf86vm";
                };
        };
 
+       headers "msp/gbase"
+       {
+               source "source/gbase";
+               install true;
+       };
+
+       headers "msp/input"
+       {
+               source "source/input";
+               install true;
+       };
+
        library "mspgbase"
        {
-               source "source";
+               source "source/gbase";
+               source "source/input";
                install true;
-               install_headers "msp/gbase";
+       };
+
+       tarball "@src"
+       {
+               source "License.txt";
+               source "Changelog.txt";
        };
 };