X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=Build;h=a5baddd1fd409ae884cef557d21cff7f791b59f0;hb=479955455305f6129e8a75a6803e7c86d11d9e04;hp=17a6fdc19fe005d24e4302b5f487ca83d42da53b;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/Build b/Build index 17a6fdc..a5baddd 100644 --- a/Build +++ b/Build @@ -2,41 +2,68 @@ 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_libpng" + { + 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 "gbase" + 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" @@ -45,4 +72,10 @@ package "mspgbase" source "source/input"; install true; }; + + tarball "@src" + { + source "License.txt"; + source "Changelog.txt"; + }; };