File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ The applied stage-specific rules are based on the file extension:
88
88
There is also a non-shader extension
89
89
* ` .conf ` for a configuration file of limits, see usage statement for example
90
90
91
- ## Building
91
+ ## Building (CMake)
92
92
93
93
Instead of building manually, you can also download the binaries for your
94
94
platform directly from the [ master-tot release] [ master-tot-release ] on GitHub.
@@ -184,6 +184,35 @@ cmake --build . --config Release --target install
184
184
If using MSVC, after running CMake to configure, use the
185
185
Configuration Manager to check the ` INSTALL ` project.
186
186
187
+ ### Building (GN)
188
+
189
+ glslang can also be built with the [ GN build system] ( https://gn.googlesource.com/gn/ ) .
190
+
191
+ #### 1) Install ` depot_tools `
192
+
193
+ Download [ depot_tools.zip] ( https://storage.googleapis.com/chrome-infra/depot_tools.zip ) ,
194
+ extract to a directory, and add this directory to your ` PATH ` .
195
+
196
+ #### 2) Synchronize dependencies and generate build files
197
+
198
+ This only needs to be done once after updating ` glslang ` .
199
+
200
+ With the current directory set to your ` glslang ` checkout, type:
201
+
202
+ ``` bash
203
+ gclient sync --gclientfile=standalone.gclient
204
+ gn gen out/Default
205
+ ```
206
+
207
+ #### 3) Build
208
+
209
+ With the current directory set to your ` glslang ` checkout, type:
210
+
211
+ ``` bash
212
+ cd out/Default
213
+ ninja
214
+ ```
215
+
187
216
### If you need to change the GLSL grammar
188
217
189
218
The grammar in ` glslang/MachineIndependent/glslang.y ` has to be recompiled with
You can’t perform that action at this time.
0 commit comments