Use matrices for eye offsets instead of a simple spacing
[libs/vr.git] / Build
diff --git a/Build b/Build
index b27a5927b71034b68f3929e6943bf55633910055..85616de0de6e36f7815099c88abe758cc0ec6539 100644 (file)
--- a/Build
+++ b/Build
@@ -4,10 +4,38 @@ package "mspvr"
        version "0.1";
 
        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/ovr";
+               };
+               if_feature "openvr"
+               {
+                       source "source/openvr";
+               };
                install true;
                install_map
                {