]> git.tdb.fi Git - libs/gl.git/blob - Build
Appease the compiler with some extra copy-ctor's and operator='s
[libs/gl.git] / Build
1 package "mspgl"
2 {
3         version "2.0";
4         description "Lightweight C++/OpenGL graphics engine";
5
6         require "mspcore";
7         require "mspdatafile";
8         require "mspmath";
9         require "mspgui";
10         require "sigc++-2.0";
11         if_arch "android"
12         {
13                 require "opengles";
14         };
15         if_arch "!android"
16         {
17                 require "opengl";
18         };
19
20         generate "GLEX"
21         {
22                 in_suffix ".glext";
23                 out_suffix ".cpp";
24                 out_suffix ".h";
25                 command "scripts/extgen.py";
26                 if_arch "android"
27                 {
28                         argument "gles2";
29                 };
30         };
31
32         generate "RES"
33         {
34                 in_suffix ".glsl";
35                 out_suffix ".cpp";
36                 command "mspdatatool";
37                 arguments "-i" "-n" "Msp::GL";
38                 out_argument "-o";
39                 processing_unit DIRECTORY;
40         };
41
42         library "mspgl"
43         {
44                 source "source";
45                 source "extensions";
46                 source "shaderlib";
47                 install true;
48                 install_map
49                 {
50                         map "source" "include/msp/gl";
51                         map "extensions" "include/msp/gl/extensions";
52                         map "shaderlib" "include/msp/gl/resources";
53                 };
54         };
55
56         program "viewer"
57         {
58                 source "tools/viewer.cpp";
59                 require "sigc++-2.0";
60                 use "mspgl";
61         };
62
63         program "shaders"
64         {
65                 source "demos/shaders.cpp";
66                 use "mspgl";
67         };
68
69         program "cubemap"
70         {
71                 source "demos/cubemap.cpp";
72                 use "mspgl";
73         };
74
75         program "desertpillars"
76         {
77                 source "demos/desertpillars.cpp";
78                 require "sigc++-2.0";
79                 use "mspgl";
80         };
81
82         source_tarball
83         {
84                 source "License.txt";
85                 source "Changelog.txt";
86         };
87 };