X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=Build;h=a0f437caa8cd37f3e534672896902defdde577a2;hb=1aca77b93853ee127ac3bbf6886f7f04920542ef;hp=17a6fdc19fe005d24e4302b5f487ca83d42da53b;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/Build b/Build index 17a6fdc..a0f437c 100644 --- a/Build +++ b/Build @@ -1,48 +1,97 @@ -/* $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 "mspstrings"; require "sigc++-2.0"; - // The OpenGL stuff is hackish, but only way to do it right now - if "arch!=win32" + if_arch "!windows" { require "xlib"; - require "opengl"; - build_info - { - library "Xxf86vm"; - }; }; - if "arch=win32" + if_arch "windows" { build_info { - library "opengl32"; library "gdi32"; }; }; - headers "gbase" + feature "devil" "Include DevIL support for loading image files"; + if_feature "devil" { - source "source/gbase"; - install_headers "msp/gbase"; + require "IL"; }; - headers "input" + feature "libpng" "Include libpng support for loading PNG files" { - source "source/input"; - install_headers "msp/input"; + default "yes"; + }; + if_feature "libpng" + { + require "libpng"; + }; + + feature "opengl" "Include support for OpenGL contexts" + { + default "yes"; + }; + if_feature "opengl" + { + require "opengl"; + }; + + if_arch "!windows" + { + feature "xf86vidmode" "Include support for video mode switching with xf86vidmode"; + if_feature "xf86vidmode" + { + build_info + { + library "Xxf86vm"; + }; + }; }; - library "mspgbase" + library "mspgui" { - source "source/gbase"; + source "source/graphics"; source "source/input"; + if_arch "windows" + { + overlay "windows"; + if_feature "opengl" + { + overlay "wgl"; + }; + }; + if_arch "!windows" + { + overlay "x11"; + if_feature "opengl" + { + overlay "glx"; + }; + }; install true; + install_map + { + map "source" "include/msp"; + }; + }; + + program "ev" + { + source "examples/ev.cpp"; + build_info + { + library "mspgui"; + }; + }; + + source_tarball + { + source "License.txt"; + source "Changelog.txt"; }; };