]> git.tdb.fi Git - libs/gl.git/blobdiff - Build
Make the use of DevIL optional
[libs/gl.git] / Build
diff --git a/Build b/Build
index 37e2ef7df93466310bd0d14303f61b71fe9e37c4..cc0de245bd23b79f129703c769d0b6cd5a16ae0d 100644 (file)
--- a/Build
+++ b/Build
@@ -5,6 +5,8 @@ package "mspgl"
        description "C++ wrappers for OpenGL";
        version "0.1";
 
+       feature "devil" "Include DevIL support for loading image files";
+
        // A bit of a hack until I get something better in builder
        if "arch!=win32"
        {
@@ -18,10 +20,13 @@ package "mspgl"
                };
        };
        require "mspdatafile";
-       require "devil";
-       build_info
+       if "with_devil"
        {
-               library "ILU";
+               require "devil";
+               build_info
+               {
+                       library "ILU";
+               };
        };
 
        library "mspgl"