Use matrices for eye offsets instead of a simple spacing
[libs/vr.git] / Build
diff --git a/Build b/Build
index 4afd3c3d4e0d6174879e2dd7a704710f96607dd3..85616de0de6e36f7815099c88abe758cc0ec6539 100644 (file)
--- a/Build
+++ b/Build
@@ -4,17 +4,38 @@ package "mspvr"
        version "0.1";
 
        require "mspgl";
-       require "libovr";
-       require "libudev";
+       require "mspgui";
 
-       build_info
+       feature "libovr" "Support Oculus Rift through LibOVR";
+       feature "openvr" "Support HTC Vive and other devices through OpenVR";
+
+       if_feature "libovr"
        {
-               warning_level 1;
+               require "libovr";
+               require "libudev";
+
+               build_info
+               {
+                       warning_level 1;
+               };
+       };
+
+       if_feature "openvr"
+       {
+               require "openvr";
        };
 
        library "mspvr"
        {
                source "source";
+               if_feature "libovr"
+               {
+                       source "source/ovr";
+               };
+               if_feature "openvr"
+               {
+                       source "source/openvr";
+               };
                install true;
                install_map
                {