Lines Matching +full:- +full:dbuild_testing
5 …roup/glslang/blob/9eef54b2513ca6b40b47b07d24f453848b65c0df/README.md#planned-deprecationsremovals),
13 **SPIRV Folder, 1-May, 2020.** Glslang, when installed through CMake,
20 …get spirv.hpp, I recommend they get that from [SPIRV-Headers](https://github.com/KhronosGroup/SPIR…
22 [![Build Status](https://travis-ci.org/KhronosGroup/glslang.svg?branch=master)](https://travis-ci.o…
29 ### Reference Validator and GLSL/ESSL -> AST Front End
31 An OpenGL GLSL and OpenGL|ES GLSL (ESSL) front-end for reference validation and translation of GLSL…
35 ### HLSL -> AST Front End
37 An HLSL front-end for translation of an approximation of HLSL to glslang's AST form.
40 … which receives a much larger investment and attempts to have definitive/reference-level semantics.
44 ### AST -> SPIR-V Back End
46 Translates glslang's AST to the Khronos-specified SPIR-V intermediate language.
52 …ion information from the AST, reflection types/variables/etc. from the HLL source (not the SPIR-V).
54 …ccurate for the input HLL and AST, but only approximate for what would later be emitted for SPIR-V.
58 `glslangValidator` is command-line tool for accessing the functionality above.
68 https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
80 The applied stage-specific rules are based on the file extension:
88 There is also a non-shader extension
94 platform directly from the [master-tot release][master-tot-release] on GitHub.
105 * [Python 3.x][python]: for executing SPIRV-Tools scripts. (Optional if not using SPIRV-Tools and t…
114 #### 1) Check-Out this project
121 #### 2) Check-Out External Projects
137 If you wish to assure that SPIR-V generated from HLSL is legal for Vulkan,
138 wish to invoke -Os to reduce SPIR-V size from HLSL or GLSL, or wish to run the
139 integrated test suite, install spirv-tools with this:
151 mkdir -p $BUILD_DIR
158 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" $SOURCE_DIR
164 …-G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DANDROID_ABI=arm64-v8a -DCMAKE_BUILD_…
165 # If on Windows will be -DCMAKE_MAKE_PROGRAM=%ANDROID_NDK_ROOT%\prebuilt\windows-x86_64\bin\make.exe
166 # -G is needed for building on Windows
167 # -DANDROID_ABI can also be armeabi-v7a for 32 bit
173 cmake $SOURCE_DIR -DCMAKE_INSTALL_PREFIX="$(pwd)/install"
179 Also, consider using `git config --global core.fileMode false` (or with `--local`) on Windows
186 make -j4 install
189 cmake --build . --config Release --target install
190 # "Release" (for --config) could also be "Debug", "MinSizeRel", or "RelWithDebInfo"
202 Download [depot_tools.zip](https://storage.googleapis.com/chrome-infra/depot_tools.zip),
213 gclient sync --gclientfile=standalone.gclient
232 [GnuWin32][bison-gnu-win32].
237 m4 -P MachineIndependent/glslang.m4 > MachineIndependent/glslang.y
238 bison --defines=MachineIndependent/glslang_tab.cpp.h
239 -t MachineIndependent/glslang.y
240 -o MachineIndependent/glslang_tab.cpp
251 Use the steps in [Build Steps](#build-steps), with the following notes/exceptions:
253 Bash-like environments:
254 … located here](https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install)
256 * Set `-DBUILD_TESTING=OFF -DENABLE_OPT=OFF -DINSTALL_GTEST=OFF`.
257 * Set `-DENABLE_HLSL=OFF` if HLSL is not needed.
258 * For a standalone JS/WASM library, turn on `-DENABLE_GLSLANG_JS=ON`.
259 * For building a minimum-size web subset of core glslang:
260 + turn on `-DENABLE_GLSLANG_WEBMIN=ON` (disables HLSL)
262 (or if using your own scripts, `m4` needs a `-DGLSLANG_WEB` argument)
264 `-DENABLE_GLSLANG_WEBMIN_DEVEL=ON`
271 emcmake cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSLANG_JS=ON \
272 -DENABLE_HLSL=OFF -DBUILD_TESTING=OFF -DENABLE_OPT=OFF -DINSTALL_GTEST=OFF ..
275 ## Building glslang - Using vcpkg
281 ./bootstrap-vcpkg.sh
291 runs unit tests and single-shader single-threaded integration tests, while
292 the latter runs multiple-shader linking tests and multi-threaded tests.
298 correct configuration to CMake (using `-DCMAKE_INSTALL_PREFIX`) when building;
301 Running Google Test-backed tests:
310 ctest -C {Debug|Release|RelWithDebInfo|MinSizeRel}
313 # (which gives more fine-grained control like filtering):
314 <dir-to-glslangtests-in-build-dir>/glslangtests
317 Running `runtests` script-backed tests:
324 version of `spirv-val` on the system and the version of glslang. In this
325 case, it is necessary to run `update_glslang_sources.py`. See "Check-Out
338 tests. Both the tests and `baseResults/` are under source-code control.
343 `gtests/*.FromFile.cpp` source files. `glslangtests` provides a command-line
344 option `--update-mode`, which, if supplied, will overwrite the golden files
356 `localtestlist` to list non-tracked tests. This is automatically read
363 * A new C++ class-oriented interface, or
372 for generating SPIR-V:
412 The `Sh*()` interface takes a "compiler" call-back object, which it calls after
415 The following is a simplified resulting run-time call stack:
418 ShCompile(shader, compiler) -> compiler(AST) -> <back end>
432 the back-end; the intermediate representation stands on its own.
436 * The intermediate representation is very high-level, and represented
437 as an in-memory tree. This serves to lose no information from the
439 parsing to the back-end. In the AST, constants are propagated and
442 To aid linking and reflection, the last top-level branch in the AST
445 * The primary algorithm of the back-end compiler is to traverse the
446 tree (high-level intermediate representation), and create an internal
450 * Reduction of the tree to a linear byte-code style low-level intermediate
453 * There is currently some dead old-style linker-type code still lying around.
462 - the object comes from the pool (its base class has the macro
465 - it is a `TString`, in which case call `NewPoolTString()`, which gets
468 - the object does not come from the pool, and you have to do normal
478 [bison-gnu-win32]: http://gnuwin32.sourceforge.net/packages/bison.htm
479 [master-tot-release]: https://github.com/KhronosGroup/glslang/releases/tag/master-tot