Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ndk-platform-external-shaderc-glslang
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
ndk-platform-external-shaderc-glslang
Commits
e0932f67
Commit
e0932f67
authored
5 years ago
by
John Kessenich
Browse files
Options
Downloads
Patches
Plain Diff
README: Fix WASM typos.
parent
54c72c6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-6
7 additions, 6 deletions
README.md
with
7 additions
and
6 deletions
README.md
+
7
−
6
View file @
e0932f67
...
...
@@ -166,24 +166,25 @@ when executed from the glslang subdirectory of the glslang repository.
With no arguments it builds the full grammar, and with a "web" argument,
the web grammar subset (see more about the web subset in the next section).
### WASM for the
the
Web
### WASM for the Web
Use the steps in
[
Build Steps
](
#build-steps
)
, w
hich
following notes/exceptions:
Use the steps in
[
Build Steps
](
#build-steps
)
, w
ith the
following notes/exceptions:
*
For building the web subset of core glslang:
+
`m4`
also needs a
`-DGLSLANG_WEB`
argument, or simply execute
`updateGrammar web`
from the glslang subdirectory
+
execute
`updateGrammar web`
from the glslang subdirectory
(or if using your own scripts,
`m4`
needs a
`-DGLSLANG_WEB`
argument)
+
turn off the CMAKE options for
`BUILD_TESTING`
,
`ENABLE_OPT`
, and
`INSTALL_GTEST`
,
while turning on
`ENABLE_GLSLANG_WEB`
*
`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
)
+
[
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
*
To get a
fully
minimized build, make sure to use
`brotli`
to compress the .js
and .wasm files
Testing
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment