]> git.tdb.fi Git - libs/gl.git/blob - Build
Write the occluder shader in GLSL
[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 "desertpillars"
64         {
65                 source "demos/desertpillars.cpp";
66                 require "sigc++-2.0";
67                 use "mspgl";
68         };
69
70         source_tarball
71         {
72                 source "License.txt";
73                 source "Changelog.txt";
74         };
75 };