]> git.tdb.fi Git - libs/gui.git/blob - Build
75f78840fc111611ec3b4d5e2df7ffaf909a12f8
[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 "libjpeg" "Include libjpeg support for loading JPEG files"
47         {
48                 default "yes";
49         };
50         if_feature "libjpeg"
51         {
52                 build_info
53                 {
54                         library "jpeg";
55                 };
56         };
57
58         if_arch "darwin"
59         {
60                 feature "quartz" "Include Quartz support for loading image files"
61                 {
62                         default "yes";
63                 };
64                 if_feature "quartz"
65                 {
66                         build_info
67                         {
68                                 library "ApplicationServices.framework";
69                         };
70                 };
71         };
72
73         feature "opengl" "Include support for OpenGL contexts"
74         {
75                 default "yes";
76         };
77         if_feature "opengl"
78         {
79                 require "opengl";
80         };
81
82         if_arch "!windows & !darwin"
83         {
84                 feature "xrandr" "Include support for video mode switching with XRandR";
85                 if_feature "xrandr"
86                 {
87                         require "xrandr";
88                 };
89         };
90
91         library "mspgui"
92         {
93                 source "source/graphics";
94                 source "source/input";
95                 if_feature "libpng"
96                 {
97                         source "source/graphics/png";
98                 };
99                 if_feature "libjpeg"
100                 {
101                         source "source/graphics/jpeg";
102                 };
103                 if_feature "devil"
104                 {
105                         source "source/graphics/devil";
106                 };
107                 if_arch "linux"
108                 {
109                         overlay "linux";
110                 };
111                 if_arch "windows"
112                 {
113                         overlay "windows";
114                         if_feature "opengl"
115                         {
116                                 overlay "wgl";
117                         };
118                 };
119                 if_arch "darwin"
120                 {
121                         if_feature "quartz"
122                         {
123                                 source "source/graphics/quartz";
124                         };
125                         overlay "cocoa";
126                         if_feature "opengl"
127                         {
128                                 overlay "cgl";
129                         };
130                         build_info
131                         {
132                                 standard CC "c99";
133                         };
134                 };
135                 if_arch "!windows & !darwin"
136                 {
137                         overlay "x11";
138                         if_feature "opengl"
139                         {
140                                 overlay "glx";
141                         };
142                 };
143                 install true;
144                 install_map
145                 {
146                         map "source" "include/msp";
147                 };
148         };
149
150         program "ev"
151         {
152                 source "examples/ev.cpp";
153                 build_info
154                 {
155                         library "mspgui";
156                 };
157         };
158
159         source_tarball
160         {
161                 source "License.txt";
162                 source "Changelog.txt";
163         };
164 };