X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Build;h=79b8cbca0287cf3e640d21a5646c77af84a95fde;hb=0a2bfe5ca85a0d0b362e65ff58986f25263c0e93;hp=2cf2f263659d985cc8d90e803d0ac9c7a14800e0;hpb=a7fdf11e0ebbfb9306880bf7efcefcee4604e0e4;p=libs%2Fgui.git diff --git a/Build b/Build index 2cf2f26..79b8cbc 100644 --- a/Build +++ b/Build @@ -1,18 +1,77 @@ -/* $Id$ */ - package "mspgbase" { - 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/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"; }; };