]> git.tdb.fi Git - libs/gl.git/blob - Build
Rearrange soucre files into subdirectories
[libs/gl.git] / Build
1 package "mspgl"
2 {
3         version "3.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/core";
45                 source "source/materials";
46                 source "source/render";
47                 source "source/effects";
48                 source "source/animation";
49                 source "source/resources";
50                 source "source/glsl";
51                 source "source/builders";
52                 source "extensions";
53                 source "shaderlib";
54                 build_info
55                 {
56                         incpath "source/core";
57                         incpath "source/materials";
58                         incpath "source/render";
59                         incpath "source/effects";
60                         incpath "source/animation";
61                         incpath "source/resources";
62                         incpath "source/glsl";
63                         incpath "source/builders";
64                 };
65                 install true;
66                 install_map
67                 {
68                         map "source/core" "include/msp/gl";
69                         map "source/materials" "include/msp/gl";
70                         map "source/render" "include/msp/gl";
71                         map "source/effects" "include/msp/gl";
72                         map "source/animation" "include/msp/gl";
73                         map "source/resources" "include/msp/gl";
74                         map "source/glsl" "include/msp/gl";
75                         map "source/builders" "include/msp/gl";
76                         map "extensions" "include/msp/gl/extensions";
77                 };
78         };
79
80         program "viewer"
81         {
82                 source "tools/viewer.cpp";
83                 require "sigc++-2.0";
84                 use "mspgl";
85         };
86
87         program "desertpillars"
88         {
89                 source "demos/desertpillars.cpp";
90                 require "sigc++-2.0";
91                 use "mspgl";
92         };
93
94         source_tarball
95         {
96                 source "License.txt";
97                 source "Changelog.txt";
98         };
99 };