]> git.tdb.fi Git - libs/gl.git/blob - Build
Move all OpenGL-specific code to a separate directory
[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 "source/backends/opengl";
55                 source "extensions";
56                 source "builtin_data";
57                 source "shaderlib";
58                 build_info
59                 {
60                         incpath "source";
61                         incpath "source/core";
62                         incpath "source/materials";
63                         incpath "source/render";
64                         incpath "source/effects";
65                         incpath "source/animation";
66                         incpath "source/resources";
67                         incpath "source/builders";
68                         incpath "source/backends/opengl";
69                         standard CXX "c++11";
70                 };
71                 install true;
72                 install_map
73                 {
74                         map "source/core" "include/msp/gl";
75                         map "source/materials" "include/msp/gl";
76                         map "source/render" "include/msp/gl";
77                         map "source/effects" "include/msp/gl";
78                         map "source/animation" "include/msp/gl";
79                         map "source/resources" "include/msp/gl";
80                         map "source/glsl" "include/msp/gl/glsl";
81                         map "source/builders" "include/msp/gl";
82                         map "source/backends/opengl" "include/msp/gl";
83                         map "extensions" "include/msp/gl/extensions";
84                 };
85         };
86
87         program "viewer"
88         {
89                 source "tools/viewer.cpp";
90                 require "sigc++-2.0";
91                 use "mspgl";
92         };
93
94         program "desertpillars"
95         {
96                 source "demos/desertpillars/source";
97                 require "sigc++-2.0";
98                 use "mspgl";
99                 build_info
100                 {
101                         standard CXX "c++14";
102                 };
103         };
104
105         program "glslcompiler"
106         {
107                 source "tools/glslcompiler.cpp";
108                 use "mspgl";
109         };
110
111         source_tarball
112         {
113                 source "License.txt";
114                 source "Changelog.txt";
115         };
116 };