]> git.tdb.fi Git - libs/gl.git/blob - Build
Fix an incorrect include in the desertpillars demo
[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                 in_suffix ".samp";
36                 in_suffix ".mesh";
37                 out_suffix ".cpp";
38                 command "mspdatatool";
39                 arguments "-i" "-n" "Msp::GL";
40                 out_argument "-o";
41                 processing_unit DIRECTORY;
42         };
43
44         library "mspgl"
45         {
46                 source "source/core";
47                 source "source/materials";
48                 source "source/render";
49                 source "source/effects";
50                 source "source/animation";
51                 source "source/resources";
52                 source "source/glsl";
53                 source "source/builders";
54                 source "extensions";
55                 source "builtin_data";
56                 source "shaderlib";
57                 build_info
58                 {
59                         incpath "source";
60                         incpath "source/core";
61                         incpath "source/materials";
62                         incpath "source/render";
63                         incpath "source/effects";
64                         incpath "source/animation";
65                         incpath "source/resources";
66                         incpath "source/builders";
67                 };
68                 install true;
69                 install_map
70                 {
71                         map "source/core" "include/msp/gl";
72                         map "source/materials" "include/msp/gl";
73                         map "source/render" "include/msp/gl";
74                         map "source/effects" "include/msp/gl";
75                         map "source/animation" "include/msp/gl";
76                         map "source/resources" "include/msp/gl";
77                         map "source/glsl" "include/msp/gl/glsl";
78                         map "source/builders" "include/msp/gl";
79                         map "extensions" "include/msp/gl/extensions";
80                 };
81         };
82
83         program "viewer"
84         {
85                 source "tools/viewer.cpp";
86                 require "sigc++-2.0";
87                 use "mspgl";
88         };
89
90         program "desertpillars"
91         {
92                 source "demos/desertpillars/source";
93                 require "sigc++-2.0";
94                 use "mspgl";
95                 build_info
96                 {
97                         standard CXX "c++14";
98                 };
99         };
100
101         program "glslcompiler"
102         {
103                 source "tools/glslcompiler.cpp";
104                 use "mspgl";
105         };
106
107         source_tarball
108         {
109                 source "License.txt";
110                 source "Changelog.txt";
111         };
112 };