Fix memory leaks
[libs/vr.git] / Build
diff --git a/Build b/Build
index baa3e37ed6c08197a48652022fcf44bf61cda532..43581debe5acdfa40aa720c30ed35667b8edb6d6 100644 (file)
--- a/Build
+++ b/Build
@@ -3,10 +3,45 @@ 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"
+       {
+               require "libovr";
+               require "libudev";
+
+               build_info
+               {
+                       warning_level 1;
+               };
+       };
+
+       if_feature "openvr"
+       {
+               require "openvr";
+       };
 
        library "mspvr"
        {
                source "source";
+               if_feature "libovr"
+               {
+                       source "source/libovr";
+               };
+               if_feature "openvr"
+               {
+                       source "source/openvr";
+               };
+               install true;
+               install_map
+               {
+                       map "source" "include/msp/vr";
+               };
        };
 };