package "mspgl" { version "2.0"; description "Lightweight C++/OpenGL graphics engine"; require "mspcore"; require "mspdatafile"; require "mspmath"; require "mspgui"; require "sigc++-2.0"; if_arch "android" { require "opengles"; }; if_arch "!android" { require "opengl"; }; generate "GLEX" { in_suffix ".glext"; out_suffix ".cpp"; out_suffix ".h"; command "scripts/extgen.py"; if_arch "android" { argument "gles2"; }; }; generate "RES" { in_suffix ".glsl"; out_suffix ".cpp"; command "scripts/resgen.py"; processing_unit DIRECTORY; }; library "mspgl" { source "source"; source "extensions"; source "shaderlib"; install true; install_map { map "source" "include/msp/gl"; map "extensions" "include/msp/gl/extensions"; map "shaderlib" "include/msp/gl/resources"; }; }; program "viewer" { source "tools/viewer.cpp"; require "sigc++-2.0"; use "mspgl"; }; program "shaders" { source "demos/shaders.cpp"; use "mspgl"; }; program "cubemap" { source "demos/cubemap.cpp"; use "mspgl"; }; program "desertpillars" { source "demos/desertpillars.cpp"; require "sigc++-2.0"; use "mspgl"; }; source_tarball { source "License.txt"; source "Changelog.txt"; }; };