Implement a basic OpenVR driver
[libs/vr.git] / Build
diff --git a/Build b/Build
index d5185dcd12d18ecba5242e215600b649d5e111c1..85616de0de6e36f7815099c88abe758cc0ec6539 100644 (file)
--- a/Build
+++ b/Build
@@ -4,16 +4,38 @@ package "mspvr"
        version "0.1";
 
        require "mspgl";
-       require "libovr";
+       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
                {