Implement a basic OpenVR driver
[libs/vr.git] / Build
1 package "mspvr"
2 {
3         description "OpenGL-based virtual reality library";
4         version "0.1";
5
6         require "mspgl";
7         require "mspgui";
8
9         feature "libovr" "Support Oculus Rift through LibOVR";
10         feature "openvr" "Support HTC Vive and other devices through OpenVR";
11
12         if_feature "libovr"
13         {
14                 require "libovr";
15                 require "libudev";
16
17                 build_info
18                 {
19                         warning_level 1;
20                 };
21         };
22
23         if_feature "openvr"
24         {
25                 require "openvr";
26         };
27
28         library "mspvr"
29         {
30                 source "source";
31                 if_feature "libovr"
32                 {
33                         source "source/ovr";
34                 };
35                 if_feature "openvr"
36                 {
37                         source "source/openvr";
38                 };
39                 install true;
40                 install_map
41                 {
42                         map "source" "include/msp/vr";
43                 };
44         };
45 };