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