1Here, glslang proper means core GLSL parsing, HLSL parsing, and SPIR-V code 2generation. Glslang proper requires use of two licenses, one that covers 3non-preprocessing and an additional one that covers preprocessing. 4 5Bison was removed long ago. You can build glslang from the source grammar, 6using tools of your choice, without using bison or any bison files. 7 8Other parts, outside of glslang proper, include: 9 10- gl_types.h, only needed for OpenGL-like reflection, and can be left out of 11 a parse and codegen project. See it for its license. 12 13- update_glslang_sources.py, which is not part of the project proper and does 14 not need to be used. 15 16- the SPIR-V "remapper", which is optional, but has the same license as 17 glslang proper 18 19- Google tests and SPIR-V tools, and anything in the external subdirectory 20 are external and optional; see them for their respective licenses. 21 22-------------------------------------------------------------------------------- 23 24The core of glslang-proper, minus the preprocessor is licenced as follows: 25 26// 27// Copyright (C) 2015-2018 Google, Inc. 28// Copyright (C) <various other dates and companies> 29// 30// All rights reserved. 31// 32// Redistribution and use in source and binary forms, with or without 33// modification, are permitted provided that the following conditions 34// are met: 35// 36// Redistributions of source code must retain the above copyright 37// notice, this list of conditions and the following disclaimer. 38// 39// Redistributions in binary form must reproduce the above 40// copyright notice, this list of conditions and the following 41// disclaimer in the documentation and/or other materials provided 42// with the distribution. 43// 44// Neither the name of 3Dlabs Inc. Ltd. nor the names of its 45// contributors may be used to endorse or promote products derived 46// from this software without specific prior written permission. 47// 48// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 49// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 50// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 51// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 52// COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 53// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 54// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 55// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 56// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 57// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 58// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 59// POSSIBILITY OF SUCH DAMAGE. 60// 61 62-------------------------------------------------------------------------------- 63 64The preprocessor has the core license stated above, plus an additional licence: 65 66/****************************************************************************\ 67Copyright (c) 2002, NVIDIA Corporation. 68 69NVIDIA Corporation("NVIDIA") supplies this software to you in 70consideration of your agreement to the following terms, and your use, 71installation, modification or redistribution of this NVIDIA software 72constitutes acceptance of these terms. If you do not agree with these 73terms, please do not use, install, modify or redistribute this NVIDIA 74software. 75 76In consideration of your agreement to abide by the following terms, and 77subject to these terms, NVIDIA grants you a personal, non-exclusive 78license, under NVIDIA's copyrights in this original NVIDIA software (the 79"NVIDIA Software"), to use, reproduce, modify and redistribute the 80NVIDIA Software, with or without modifications, in source and/or binary 81forms; provided that if you redistribute the NVIDIA Software, you must 82retain the copyright notice of NVIDIA, this notice and the following 83text and disclaimers in all such redistributions of the NVIDIA Software. 84Neither the name, trademarks, service marks nor logos of NVIDIA 85Corporation may be used to endorse or promote products derived from the 86NVIDIA Software without specific prior written permission from NVIDIA. 87Except as expressly stated in this notice, no other rights or licenses 88express or implied, are granted by NVIDIA herein, including but not 89limited to any patent rights that may be infringed by your derivative 90works or by other works in which the NVIDIA Software may be 91incorporated. No hardware is licensed hereunder. 92 93THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT 94WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, 95INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE, 96NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 97ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER 98PRODUCTS. 99 100IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, 101INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 102TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 103USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY 104OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE 105NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, 106TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF 107NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 108\****************************************************************************/ 109