Fix memory leaks
[libs/vr.git] / Build
diff --git a/Build b/Build
index 33363fc3aa8f2af378918f809ccb34f7f8875558..43581debe5acdfa40aa720c30ed35667b8edb6d6 100644 (file)
--- a/Build
+++ b/Build
@@ -3,10 +3,13 @@ package "mspvr"
        description "OpenGL-based virtual reality library";
        version "0.1";
 
+       require "sigc++-2.0";
+       require "mspcore";
        require "mspgl";
        require "mspgui";
 
        feature "libovr" "Support Oculus Rift through LibOVR";
+       feature "openvr" "Support HTC Vive and other devices through OpenVR";
 
        if_feature "libovr"
        {
@@ -19,12 +22,21 @@ package "mspvr"
                };
        };
 
+       if_feature "openvr"
+       {
+               require "openvr";
+       };
+
        library "mspvr"
        {
                source "source";
                if_feature "libovr"
                {
-                       source "source/ovr";
+                       source "source/libovr";
+               };
+               if_feature "openvr"
+               {
+                       source "source/openvr";
                };
                install true;
                install_map