X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=Build;h=6bf5ebb03a11208134dcf638ae001a36c735c663;hp=59a63b4fe7421f2aaad2ba2d5de478e2616bc376;hb=54fdd850d1e657bc357d859a532497905ded741a;hpb=a5bf02196c301faea88d54933d0586da0aadb614 diff --git a/Build b/Build index 59a63b4f..6bf5ebb0 100644 --- a/Build +++ b/Build @@ -1,61 +1,114 @@ package "mspgl" { - version "1.1"; + version "3.0"; description "Lightweight C++/OpenGL graphics engine"; + require "mspcore"; require "mspdatafile"; + require "mspmath"; require "mspgui"; - require "opengl"; + require "sigc++-2.0"; + if_arch "android" + { + require "opengles"; + }; + if_arch "!android" + { + require "opengl"; + }; - headers "msp/gl" + generate "GLEX" { - source "source"; - install true; + in_suffix ".glext"; + out_suffix ".cpp"; + out_suffix ".h"; + command "scripts/extgen.py"; + if_arch "android" + { + argument "gles2"; + }; }; - library "mspgl" + generate "RES" { - source "source"; - install true; + in_suffix ".glsl"; + in_suffix ".samp"; + in_suffix ".mesh"; + out_suffix ".cpp"; + command "mspdatatool"; + arguments "-i" "-n" "Msp::GL"; + out_argument "-o"; + processing_unit DIRECTORY; }; - program "mesh2c" + library "mspgl" { - source "mesh2c.cpp"; + source "source/core"; + source "source/materials"; + source "source/render"; + source "source/effects"; + source "source/animation"; + source "source/resources"; + source "source/glsl"; + source "source/builders"; + source "source/backends/opengl"; + source "extensions"; + source "builtin_data"; + source "shaderlib"; build_info { - library "mspgl"; + incpath "source"; + incpath "source/core"; + incpath "source/materials"; + incpath "source/render"; + incpath "source/effects"; + incpath "source/animation"; + incpath "source/resources"; + incpath "source/builders"; + incpath "source/backends/opengl"; + standard CXX "c++11"; + }; + install true; + install_map + { + map "source/core" "include/msp/gl"; + map "source/materials" "include/msp/gl"; + map "source/render" "include/msp/gl"; + map "source/effects" "include/msp/gl"; + map "source/animation" "include/msp/gl"; + map "source/resources" "include/msp/gl"; + map "source/glsl" "include/msp/gl/glsl"; + map "source/builders" "include/msp/gl"; + map "source/backends/opengl" "include/msp/gl"; + map "extensions" "include/msp/gl/extensions"; }; }; program "viewer" { - source "viewer.cpp"; - build_info - { - library "mspgl"; - }; + source "tools/viewer.cpp"; + require "sigc++-2.0"; + use "mspgl"; }; - program "shaders" + program "desertpillars" { - source "demos/shaders.cpp"; + source "demos/desertpillars/source"; + require "sigc++-2.0"; + use "mspgl"; build_info { - library "mspgl"; + standard CXX "c++14"; }; }; - program "texturing" + program "glslcompiler" { - source "demos/texturing.cpp"; - build_info - { - library "mspgl"; - }; + source "tools/glslcompiler.cpp"; + use "mspgl"; }; - tarball "@src" + source_tarball { source "License.txt"; source "Changelog.txt";