X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=Build;h=7a65ca9c7d6af7ae3b39c8a0cfbbfebcf6032625;hp=1aae9864be396b10511dbcc663e831f7b254eac4;hb=9d1fa012a23693768bbe287371e97751c03acc50;hpb=619aae12e01f25e79626a94c973927e5599e99a5 diff --git a/Build b/Build index 1aae9864..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"; @@ -48,12 +64,6 @@ package "mspgl" use "mspgl"; }; - program "texturing" - { - source "demos/texturing.cpp"; - use "mspgl"; - }; - program "cubemap" { source "demos/cubemap.cpp";