require "mspcore";
require "sigc++-2.0";
- if_arch "!windows"
+ if_arch "!windows & !darwin & !android"
{
require "xlib";
};
build_info
{
library "gdi32";
+ library "xinput";
+ };
+ };
+ if_arch "darwin"
+ {
+ build_info
+ {
+ library "CoreFoundation.framework";
+ library "AppKit.framework";
};
};
require "libpng";
};
- feature "opengl" "Include support for OpenGL contexts"
+ feature "libjpeg" "Include libjpeg support for loading JPEG files"
{
default "yes";
};
- if_feature "opengl"
+ if_feature "libjpeg"
{
- require "opengl";
+ build_info
+ {
+ library "jpeg";
+ };
};
- if_arch "!windows"
+ if_arch "darwin"
{
- feature "xf86vidmode" "Include support for video mode switching with xf86vidmode";
- if_feature "xf86vidmode"
+ feature "quartz" "Include Quartz support for loading image files"
+ {
+ default "yes";
+ };
+ if_feature "quartz"
{
build_info
{
- library "Xxf86vm";
+ library "ApplicationServices.framework";
};
};
};
+ feature "opengl" "Include support for OpenGL contexts"
+ {
+ default "yes";
+ };
+ if_feature "opengl"
+ {
+ if_arch "android"
+ {
+ require "opengles";
+ };
+ if_arch "!android"
+ {
+ require "opengl";
+ };
+ };
+
+ feature "vulkan" "Include support for Vulkan contexts"
+ {
+ default "no";
+ };
+ if_feature "vulkan"
+ {
+ require "vulkan";
+ };
+
+ if_arch "!windows & !darwin & !android"
+ {
+ feature "xrandr" "Include support for video mode switching with XRandR"
+ {
+ export true;
+ };
+ if_feature "xrandr"
+ {
+ require "xrandr";
+ };
+ };
+
library "mspgui"
{
source "source/graphics";
source "source/input";
+ if_feature "libpng"
+ {
+ source "source/graphics/png";
+ };
+ if_feature "libjpeg"
+ {
+ source "source/graphics/jpeg";
+ };
+ if_feature "devil"
+ {
+ source "source/graphics/devil";
+ };
+ if_arch "linux"
+ {
+ overlay "linux";
+ };
+ if_arch "windows"
+ {
+ overlay "windows";
+ if_feature "opengl"
+ {
+ overlay "wgl";
+ };
+ };
+ if_arch "darwin"
+ {
+ if_feature "quartz"
+ {
+ source "source/graphics/quartz";
+ };
+ overlay "cocoa";
+ if_feature "opengl"
+ {
+ overlay "cgl";
+ };
+ build_info
+ {
+ standard CC "c99";
+ };
+ };
+ if_arch "android"
+ {
+ overlay "android";
+ if_feature "opengl"
+ {
+ overlay "egl_android";
+ };
+ };
+ if_arch "!windows & !darwin & !android"
+ {
+ overlay "x11";
+ if_feature "opengl"
+ {
+ overlay "glx";
+ };
+ if_feature "vulkan"
+ {
+ overlay "vkxlib";
+ };
+ };
+ overlay "generic";
install true;
install_map
{
program "ev"
{
source "examples/ev.cpp";
- build_info
- {
- library "mspgui";
- };
+ use "mspgui";
};
source_tarball