]> git.tdb.fi Git - libs/gui.git/blob - Build
Make xf86vidmode support optional
[libs/gui.git] / Build
1 /* $Id$ */
2
3 package "mspgbase"
4 {
5         version "1.0";
6         description "Base graphics and input library";
7
8         tar_file "License.txt";
9         tar_file "Changelog.txt";
10
11         require "mspcore";
12         require "mspstrings";
13         require "sigc++-2.0";
14         if "arch!=win32"
15         {
16                 require "xlib";
17         };
18         if "arch=win32"
19         {
20                 build_info
21                 {
22                         library "gdi32";
23                 };
24         };
25
26         feature "devil" "Include DevIL support for loading image files";
27         if "with_devil"
28         {
29                 require "devil";
30         };
31
32         feature "libpng" "Include libpng support for loading PNG files (also requires libmspio)";
33         if "with_png"
34         {
35                 require "libpng";
36                 require "mspio";
37         };
38
39         feature "opengl" "Include support for OpenGL contexts";
40         if "with_opengl"
41         {
42                 require "opengl";
43         };
44
45         feature "xf86vidmode" "Include support for video mode switching with xf86vidmode (not win32)";
46         if "with_xf86vidmode and arch!=win32"
47         {
48                 build_info
49                 {
50                         library "Xxf86vm";
51                 };
52         };
53
54         headers "gbase"
55         {
56                 source "source/gbase";
57                 install_headers "msp/gbase";
58         };
59
60         headers "input"
61         {
62                 source "source/input";
63                 install_headers "msp/input";
64         };
65
66         library "mspgbase"
67         {
68                 source "source/gbase";
69                 source "source/input";
70                 install true;
71         };
72 };