+ require "libpng";
+ };
+
+ feature "opengl" "Include support for OpenGL contexts"
+ {
+ default "yes";
+ };
+ if_feature "opengl"
+ {
+ require "opengl";
+ };
+
+ if_arch "!windows"
+ {
+ feature "xrandr" "Include support for video mode switching with XRandR";
+ if_feature "xrandr"
+ {
+ build_info
+ {
+ library "Xrandr";
+ };
+ };
+ };
+
+ 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";
+ };
+ };