Make LibOVR support optional at compile-time
[libs/vr.git] / Build
1 package "mspvr"
2 {
3         description "OpenGL-based virtual reality library";
4         version "0.1";
5
6         require "mspgl";
7
8         feature "libovr" "Support Oculus Rift through LibOVR";
9
10         if_feature "libovr"
11         {
12                 require "libovr";
13                 require "libudev";
14
15                 build_info
16                 {
17                         warning_level 1;
18                 };
19         };
20
21         library "mspvr"
22         {
23                 source "source";
24                 if_feature "libovr"
25                 {
26                         source "source/ovr";
27                 };
28                 install true;
29                 install_map
30                 {
31                         map "source" "include/msp/vr";
32                 };
33         };
34 };