-/* $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";
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";
};
};