]> git.tdb.fi Git - libs/gl.git/blobdiff - Build
Rearrange postprocessor creation code in SequenceBuilder
[libs/gl.git] / Build
diff --git a/Build b/Build
index a20d21ccf4fbe2953e1250be1475d0638b187fe4..6bf5ebb03a11208134dcf638ae001a36c735c663 100644 (file)
--- a/Build
+++ b/Build
@@ -1,12 +1,13 @@
 package "mspgl"
 {
-       version "2.0";
+       version "3.0";
        description "Lightweight C++/OpenGL graphics engine";
 
        require "mspcore";
        require "mspdatafile";
        require "mspmath";
        require "mspgui";
+       require "sigc++-2.0";
        if_arch "android"
        {
                require "opengles";
@@ -28,24 +29,61 @@ package "mspgl"
                };
        };
 
+       generate "RES"
+       {
+               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;
+       };
+
        library "mspgl"
        {
-               source "source";
+               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
+               {
+                       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" "include/msp/gl";
+                       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 "mesh2c"
-       {
-               source "tools/mesh2c.cpp";
-               use "mspgl";
-       };
-
        program "viewer"
        {
                source "tools/viewer.cpp";
@@ -53,22 +91,20 @@ package "mspgl"
                use "mspgl";
        };
 
-       program "shaders"
-       {
-               source "demos/shaders.cpp";
-               use "mspgl";
-       };
-
-       program "cubemap"
+       program "desertpillars"
        {
-               source "demos/cubemap.cpp";
+               source "demos/desertpillars/source";
+               require "sigc++-2.0";
                use "mspgl";
+               build_info
+               {
+                       standard CXX "c++14";
+               };
        };
 
-       program "desertpillars"
+       program "glslcompiler"
        {
-               source "demos/desertpillars.cpp";
-               require "sigc++-2.0";
+               source "tools/glslcompiler.cpp";
                use "mspgl";
        };