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
a91561d5
Commit
a91561d5
authored
Aug 14, 2019
by
Kai Ninomiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable build for node
parent
95609e6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
CMakeLists.txt
CMakeLists.txt
+9
-1
No files found.
CMakeLists.txt
View file @
a91561d5
...
@@ -33,6 +33,7 @@ option(ENABLE_NV_EXTENSIONS "Enables support of Nvidia-specific extensions" ON)
...
@@ -33,6 +33,7 @@ option(ENABLE_NV_EXTENSIONS "Enables support of Nvidia-specific extensions" ON)
option
(
ENABLE_GLSLANG_WEB
"Reduces glslang to minumum needed for web use"
OFF
)
option
(
ENABLE_GLSLANG_WEB
"Reduces glslang to minumum needed for web use"
OFF
)
option
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
"If using emscripten, enables SINGLE_FILE build"
OFF
)
option
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
"If using emscripten, enables SINGLE_FILE build"
OFF
)
option
(
ENABLE_EMSCRIPTEN_ENVIRONMENT_NODE
"If using emscripten, builds to run on Node instead of Web"
OFF
)
CMAKE_DEPENDENT_OPTION
(
ENABLE_HLSL
"Enables HLSL input support"
ON
"NOT ENABLE_GLSLANG_WEB"
OFF
)
CMAKE_DEPENDENT_OPTION
(
ENABLE_HLSL
"Enables HLSL input support"
ON
"NOT ENABLE_GLSLANG_WEB"
OFF
)
...
@@ -113,13 +114,20 @@ if(ENABLE_GLSLANG_WEB)
...
@@ -113,13 +114,20 @@ if(ENABLE_GLSLANG_WEB)
add_link_options
(
"SHELL: -s FILESYSTEM=0"
)
add_link_options
(
"SHELL: -s FILESYSTEM=0"
)
add_link_options
(
"SHELL: --llvm-lto 1"
)
add_link_options
(
"SHELL: --llvm-lto 1"
)
add_link_options
(
"SHELL: --closure 1"
)
add_link_options
(
"SHELL: --closure 1"
)
add_link_options
(
"SHELL: -s ENVIRONMENT=web,worker"
)
add_link_options
(
"SHELL: -s ALLOW_MEMORY_GROWTH=1"
)
add_link_options
(
"SHELL: -s ALLOW_MEMORY_GROWTH=1"
)
add_link_options
(
"SHELL: -s MODULARIZE=1"
)
add_link_options
(
"SHELL: -s MODULARIZE=1"
)
if
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
)
if
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
)
add_link_options
(
"SHELL: -s SINGLE_FILE=1"
)
add_link_options
(
"SHELL: -s SINGLE_FILE=1"
)
endif
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
)
endif
(
ENABLE_EMSCRIPTEN_SINGLE_FILE
)
if
(
ENABLE_EMSCRIPTEN_ENVIRONMENT_NODE
)
add_link_options
(
"SHELL: -s ENVIRONMENT=node"
)
add_link_options
(
"SHELL: -s BINARYEN_ASYNC_COMPILATION=0"
)
else
()
add_link_options
(
"SHELL: -s ENVIRONMENT=web,worker"
)
add_link_options
(
"SHELL: -s EXPORT_ES6=1"
)
endif
()
else
()
else
()
if
(
MSVC
)
if
(
MSVC
)
add_compile_options
(
/Os /GR-
)
add_compile_options
(
/Os /GR-
)
...
...
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