X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=Build;h=7a65ca9c7d6af7ae3b39c8a0cfbbfebcf6032625;hp=162e26ca6257bde4ab8b3f4c4d7b5e0e6af4542d;hb=9d1fa012a23693768bbe287371e97751c03acc50;hpb=f1b12c992db974c679d85ae6ec22cd318199d0d5 diff --git a/Build b/Build index 162e26ca..7a65ca9c 100644 --- a/Build +++ b/Build @@ -7,7 +7,15 @@ package "mspgl" require "mspdatafile"; require "mspmath"; require "mspgui"; - require "opengl"; + require "sigc++-2.0"; + if_arch "android" + { + require "opengles"; + }; + if_arch "!android" + { + require "opengl"; + }; generate "GLEX" { @@ -15,26 +23,34 @@ package "mspgl" 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 "mesh2c" - { - source "tools/mesh2c.cpp"; - use "mspgl"; - }; - program "viewer" { source "tools/viewer.cpp";