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
b0159f85
Unverified
Commit
b0159f85
authored
Dec 05, 2017
by
John Kessenich
Committed by
GitHub
Dec 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1151 from cgmb/update-readme
Improve build instructions
parents
6a14f780
384b2070
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
README.md
README.md
+16
-15
No files found.
README.md
View file @
b0159f85
...
@@ -57,20 +57,22 @@ branch.
...
@@ -57,20 +57,22 @@ branch.
### Dependencies
### Dependencies
*
A C++11 compiler
*
[
CMake
][
cmake
]
: for generating compilation targets.
*
[
CMake
][
cmake
]
: for generating compilation targets.
*
make: _Linux_, ninja is an alternative, if configured.
*
[
Python 2.7
][
python
]
: for executing SPIRV-Tools scripts. (Optional if not using SPIRV-Tools.)
*
[
Python 2.7
][
python
]
: for executing SPIRV-Tools scripts. (Optional if not using SPIRV-Tools.)
*
[
bison
][
bison
]
: _optional_, but needed when changing the grammar (glslang.y).
*
[
bison
][
bison
]
: _optional_, but needed when changing the grammar (glslang.y).
*
[
googletest
][
googletest
]
: _optional_, but should use if making any changes to glslang.
*
[
googletest
][
googletest
]
: _optional_, but should use if making any changes to glslang.
### Build steps
### Build steps
The following steps assume a Bash shell. On Windows, that could be the Git Bash
shell or some other shell of your choosing.
#### 1) Check-Out this project
#### 1) Check-Out this project
```
bash
```
bash
cd
<parent of where you want glslang to be>
cd
<parent of where you want glslang to be>
# If using SSH
git clone git@github.com:KhronosGroup/glslang.git
# Or if using HTTPS
git clone https://github.com/KhronosGroup/glslang.git
git clone https://github.com/KhronosGroup/glslang.git
```
```
...
@@ -89,28 +91,27 @@ spirv-tools with this:
...
@@ -89,28 +91,27 @@ spirv-tools with this:
./update_glslang_sources.py
./update_glslang_sources.py
```
```
For running the CMake GUI or Visual Studio with python dependencies, you will,
in addition to python within the cygwin environment, need a Windows
[
python
][
python
]
installation, including selecting the
`PATH`
update.
#### 3) Configure
#### 3) Configure
Assume the source directory is
`$SOURCE_DIR`
and
Assume the source directory is
`$SOURCE_DIR`
and the build directory is
the build directory is
`$BUILD_DIR`
:
`$BUILD_DIR`
. First ensure the build directory exists, then navigate to it:
For building on Linux (assuming using the Ninja generator):
```
bash
```
bash
mkdir
-p
$BUILD_DIR
cd
$BUILD_DIR
cd
$BUILD_DIR
```
For building on Linux:
cmake
-GNinja
-DCMAKE_BUILD_TYPE
={
Debug|Release|RelWithDebInfo
}
\
```
bash
-DCMAKE_INSTALL_PREFIX
=
`
pwd
`
/install
$SOURCE_DIR
cmake
-DCMAKE_BUILD_TYPE
={
Debug|Release|RelWithDebInfo
}
\
-DCMAKE_INSTALL_PREFIX
=
"
$(
pwd
)
/install"
$SOURCE_DIR
```
```
For building on Windows:
For building on Windows:
```
bash
```
bash
cmake
$SOURCE_DIR
-DCMAKE_INSTALL_PREFIX
=
`
pwd
`
/install
cmake
$SOURCE_DIR
-DCMAKE_INSTALL_PREFIX
=
"
$(
pwd
)
/install"
# The CMAKE_INSTALL_PREFIX part is for testing (explained later).
# The CMAKE_INSTALL_PREFIX part is for testing (explained later).
```
```
...
@@ -120,7 +121,7 @@ The CMake GUI also works for Windows (version 3.4.1 tested).
...
@@ -120,7 +121,7 @@ The CMake GUI also works for Windows (version 3.4.1 tested).
```
bash
```
bash
# for Linux:
# for Linux:
ninja
install
make
-j4
install
# for Windows:
# for Windows:
cmake
--build
.
--config
{
Release|Debug|MinSizeRel|RelWithDebInfo
}
\
cmake
--build
.
--config
{
Release|Debug|MinSizeRel|RelWithDebInfo
}
\
...
...
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