X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Build;h=a0f437caa8cd37f3e534672896902defdde577a2;hb=1aca77b93853ee127ac3bbf6886f7f04920542ef;hp=e53a3ea81c8d5bb973921dced02e54d3892bccea;hpb=3204e332281f559685d3593e51fe03baaedc439e;p=libs%2Fgui.git diff --git a/Build b/Build index e53a3ea..a0f437c 100644 --- a/Build +++ b/Build @@ -1,18 +1,15 @@ -/* $Id$ */ - -package "mspgbase" +package "mspgui" { version "1.1"; description "Base graphics and input library"; require "mspcore"; - require "mspstrings"; require "sigc++-2.0"; - if "arch!=win32" + if_arch "!windows" { require "xlib"; }; - if "arch=win32" + if_arch "windows" { build_info { @@ -21,59 +18,78 @@ package "mspgbase" }; feature "devil" "Include DevIL support for loading image files"; - if "with_devil" + if_feature "devil" { - require "devil"; + require "IL"; }; - feature "libpng" "Include libpng support for loading PNG files (also requires libmspio)" + feature "libpng" "Include libpng support for loading PNG files" { default "yes"; }; - if "with_png" + if_feature "libpng" { require "libpng"; - require "mspio"; }; feature "opengl" "Include support for OpenGL contexts" { default "yes"; }; - if "with_opengl" + if_feature "opengl" { require "opengl"; }; - feature "xf86vidmode" "Include support for video mode switching with xf86vidmode (not win32)"; - if "with_xf86vidmode and arch!=win32" + if_arch "!windows" { - build_info + feature "xf86vidmode" "Include support for video mode switching with xf86vidmode"; + if_feature "xf86vidmode" { - library "Xxf86vm"; + build_info + { + library "Xxf86vm"; + }; }; }; - headers "msp/gbase" - { - source "source/gbase"; - install true; - }; - - headers "msp/input" + library "mspgui" { + 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"; + }; }; - library "mspgbase" + program "ev" { - source "source/gbase"; - source "source/input"; - install true; + source "examples/ev.cpp"; + build_info + { + library "mspgui"; + }; }; - tarball "@src" + source_tarball { source "License.txt"; source "Changelog.txt";