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
734176a2
Commit
734176a2
authored
Aug 09, 2019
by
Ryan Harrison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move build instructions to README.md
parent
c96e42dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
HOWTO-build-wasm.md
HOWTO-build-wasm.md
+0
-14
README.md
README.md
+16
-0
No files found.
HOWTO-build-wasm.md
deleted
100644 → 0
View file @
c96e42dc
Build as usual (see
`README.md`
), but:
*
Need
`emsdk`
in your
*PATH*
+
Instructions located
[
here
](
https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install
)
*
Do not checkout SPIRV-Tools into External/
+
Does not work correctly with emscripten out of the box and we don't want
it in the build anyway.
+
*TBD*
Add flag to disable SPIRV-Tool inclusion even if directory is
present.
*
Wrap call to
`cmake`
using
`emconfigure`
:
+
e.g.
`emconfigure cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSLANG_WEB=ON
-DENABLE_HLSL=OFF -DCMAKE_INSTALL_PREFIX="$(pwd)/install" ..`
+
To get a 'true' size, make sure to use
`brotli`
to compress the .js and .wasm files
README.md
View file @
734176a2
...
...
@@ -163,6 +163,22 @@ bison --defines=MachineIndependent/glslang_tab.cpp.h
The above command is also available in the bash script at
`glslang/updateGrammar`
.
### WASM for the the Web
Use the steps in
[
Build Steps
](
#build-steps
)
, which following notes/exceptions:
*
`emsdk`
needs to be present in your executable search path,
*PATH*
for
Bash-like enivironments
+
Instructions located
[
here
](
https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install
)
*
Do not checkout SPIRV-Tools into
`External`
+
Does not work correctly with emscripten out of the box and we don't want it
in the build anyway.
*TBD*
Have build ignore SPIRV-Tools for web build
*
Wrap call to
`cmake`
using
`emconfigure`
with ENABLE_GLSLANG_WEB=ON:
+
e.g. For Linux,
`emconfigure cmake -DCMAKE_BUILD_TYPE=Release
-DENABLE_GLSLANG_WEB=ON -DCMAKE_INSTALL_PREFIX="$(pwd)/install" ..`
*
To get a 'true' minimized build, make sure to use
`brotli`
to compress the .js
and .wasm files
Testing
-------
...
...
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