John Kessenich | b23d232 | 2018-12-14 10:47:35 -0700 | [diff] [blame] | 1 | Here, glslang proper means core GLSL parsing, HLSL parsing, and SPIR-V code |
| 2 | generation. Glslang proper requires use of two licenses, one that covers |
| 3 | non-preprocessing and an additional one that covers preprocessing. |
| 4 | |
| 5 | Bison was removed long ago. You can build glslang from the source grammar, |
| 6 | using tools of your choice, without using bison or any bison files. |
| 7 | |
| 8 | Other 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 | |
| 24 | The 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 | |
| 64 | The preprocessor has the core license stated above, plus an additional licence: |
| 65 | |
| 66 | /****************************************************************************\ |
| 67 | Copyright (c) 2002, NVIDIA Corporation. |
| 68 | |
| 69 | NVIDIA Corporation("NVIDIA") supplies this software to you in |
| 70 | consideration of your agreement to the following terms, and your use, |
| 71 | installation, modification or redistribution of this NVIDIA software |
| 72 | constitutes acceptance of these terms. If you do not agree with these |
| 73 | terms, please do not use, install, modify or redistribute this NVIDIA |
| 74 | software. |
| 75 | |
| 76 | In consideration of your agreement to abide by the following terms, and |
| 77 | subject to these terms, NVIDIA grants you a personal, non-exclusive |
| 78 | license, under NVIDIA's copyrights in this original NVIDIA software (the |
| 79 | "NVIDIA Software"), to use, reproduce, modify and redistribute the |
| 80 | NVIDIA Software, with or without modifications, in source and/or binary |
| 81 | forms; provided that if you redistribute the NVIDIA Software, you must |
| 82 | retain the copyright notice of NVIDIA, this notice and the following |
| 83 | text and disclaimers in all such redistributions of the NVIDIA Software. |
| 84 | Neither the name, trademarks, service marks nor logos of NVIDIA |
| 85 | Corporation may be used to endorse or promote products derived from the |
| 86 | NVIDIA Software without specific prior written permission from NVIDIA. |
| 87 | Except as expressly stated in this notice, no other rights or licenses |
| 88 | express or implied, are granted by NVIDIA herein, including but not |
| 89 | limited to any patent rights that may be infringed by your derivative |
| 90 | works or by other works in which the NVIDIA Software may be |
| 91 | incorporated. No hardware is licensed hereunder. |
| 92 | |
| 93 | THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT |
| 94 | WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, |
| 95 | INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE, |
| 96 | NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR |
| 97 | ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER |
| 98 | PRODUCTS. |
| 99 | |
| 100 | IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, |
| 101 | INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
| 102 | TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
| 103 | USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY |
| 104 | OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE |
| 105 | NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, |
| 106 | TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF |
| 107 | NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 108 | \****************************************************************************/ |