]> git.tdb.fi Git - libs/gui.git/blob - Build
421a84ea4cc75c913ec55ffd4b603fda46ab215b
[libs/gui.git] / Build
1 package "mspgui"
2 {
3         version "1.1";
4         description "Base graphics and input library";
5
6         require "mspcore";
7         require "sigc++-2.0";
8         if_arch "!windows"
9         {
10                 if_arch "!darwin"
11                 {
12                         require "xlib";
13                 };
14         };
15         if_arch "windows"
16         {
17                 build_info
18                 {
19                         library "gdi32";
20                 };
21         };
22         if_arch "darwin"
23         {
24                 build_info
25                 {
26                         library "CoreFoundation.framework";
27                         library "AppKit.framework";
28                 };
29         };
30
31         feature "devil" "Include DevIL support for loading image files";
32         if_feature "devil"
33         {
34                 require "IL";
35         };
36
37         feature "libpng" "Include libpng support for loading PNG files"
38         {
39                 default "yes";
40         };
41         if_feature "libpng"
42         {
43                 require "libpng";
44         };
45
46         feature "opengl" "Include support for OpenGL contexts"
47         {
48                 default "yes";
49         };
50         if_feature "opengl"
51         {
52                 require "opengl";
53         };
54
55         if_arch "!windows"
56         {
57                 if_arch "!darwin"
58                 {
59                         feature "xrandr" "Include support for video mode switching with XRandR";
60                         if_feature "xrandr"
61                         {
62                                 build_info
63                                 {
64                                         library "Xrandr";
65                                 };
66                         };
67                 };
68         };
69
70         library "mspgui"
71         {
72                 source "source/graphics";
73                 source "source/input";
74                 if_feature "libpng"
75                 {
76                         source "source/graphics/png";
77                 };
78                 if_feature "devil"
79                 {
80                         source "source/graphics/devil";
81                 };
82                 if_arch "windows"
83                 {
84                         overlay "windows";
85                         if_feature "opengl"
86                         {
87                                 overlay "wgl";
88                         };
89                 };
90                 if_arch "darwin"
91                 {
92                         overlay "cocoa";
93                         if_feature "opengl"
94                         {
95                                 overlay "cgl";
96                         };
97                 };
98                 if_arch "!windows"
99                 {
100                         if_arch "!darwin"
101                         {
102                                 overlay "x11";
103                                 if_feature "opengl"
104                                 {
105                                         overlay "glx";
106                                 };
107                         };
108                 };
109                 install true;
110                 install_map
111                 {
112                         map "source" "include/msp";
113                 };
114         };
115
116         program "ev"
117         {
118                 source "examples/ev.cpp";
119                 build_info
120                 {
121                         library "mspgui";
122                 };
123         };
124
125         source_tarball
126         {
127                 source "License.txt";
128                 source "Changelog.txt";
129         };
130 };