]> git.tdb.fi Git - libs/gl.git/blobdiff - Build
Require import module names to be identifiers
[libs/gl.git] / Build
diff --git a/Build b/Build
index ca380f316aa365871a367e242eb3bd50967b9c68..1a4a262f3a1b6387683a4636af1beb222cae62ee 100644 (file)
--- a/Build
+++ b/Build
@@ -29,24 +29,30 @@ package "mspgl"
                };
        };
 
+       generate "RES"
+       {
+               in_suffix ".glsl";
+               out_suffix ".cpp";
+               command "mspdatatool";
+               arguments "-i" "-n" "Msp::GL";
+               out_argument "-o";
+               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";