Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
f915cc2b
Commit
f915cc2b
authored
Oct 16, 2020
by
Ben Clayton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GN build instructions to README.md
parent
dac38b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
README.md
README.md
+30
-1
No files found.
README.md
View file @
f915cc2b
...
...
@@ -88,7 +88,7 @@ The applied stage-specific rules are based on the file extension:
There is also a non-shader extension
*
`.conf`
for a configuration file of limits, see usage statement for example
## Building
## Building
(CMake)
Instead of building manually, you can also download the binaries for your
platform directly from the
[
master-tot release
][
master-tot-release
]
on GitHub.
...
...
@@ -184,6 +184,35 @@ cmake --build . --config Release --target install
If using MSVC, after running CMake to configure, use the
Configuration Manager to check the
`INSTALL`
project.
### Building (GN)
glslang can also be built with the
[
GN build system
](
https://gn.googlesource.com/gn/
)
.
#### 1) Install `depot_tools`
Download
[
depot_tools.zip
](
https://storage.googleapis.com/chrome-infra/depot_tools.zip
)
,
extract to a directory, and add this directory to your
`PATH`
.
#### 2) Synchronize dependencies and generate build files
This only needs to be done once after updating
`glslang`
.
With the current directory set to your
`glslang`
checkout, type:
```
bash
gclient
sync
--gclientfile
=
standalone.gclient
gn gen out/Default
```
#### 3) Build
With the current directory set to your
`glslang`
checkout, type:
```
bash
cd
out/Default
ninja
```
### If you need to change the GLSL grammar
The grammar in
`glslang/MachineIndependent/glslang.y`
has to be recompiled with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment