Make animation curve creation more generic
[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 "scripts/resgen.py";
37                 processing_unit DIRECTORY;
38         };
39
40         library "mspgl"
41         {
42                 source "source";
43                 source "extensions";
44                 source "shaderlib";
45                 install true;
46                 install_map
47                 {
48                         map "source" "include/msp/gl";
49                         map "extensions" "include/msp/gl/extensions";
50                         map "shaderlib" "include/msp/gl/resources";
51                 };
52         };
53
54         program "viewer"
55         {
56                 source "tools/viewer.cpp";
57                 require "sigc++-2.0";
58                 use "mspgl";
59         };
60
61         program "shaders"
62         {
63                 source "demos/shaders.cpp";
64                 use "mspgl";
65         };
66
67         program "cubemap"
68         {
69                 source "demos/cubemap.cpp";
70                 use "mspgl";
71         };
72
73         program "desertpillars"
74         {
75                 source "demos/desertpillars.cpp";
76                 require "sigc++-2.0";
77                 use "mspgl";
78         };
79
80         source_tarball
81         {
82                 source "License.txt";
83                 source "Changelog.txt";
84         };
85 };