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