LICENSE.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. Here, glslang proper means core GLSL parsing, HLSL parsing, and SPIR-V code
  2. generation. Glslang proper requires use of a number of licenses, one that covers
  3. preprocessing and others that covers non-preprocessing.
  4. Bison was removed long ago. You can build glslang from the source grammar,
  5. using tools of your choice, without using bison or any bison files.
  6. Other parts, outside of glslang proper, include:
  7. - gl_types.h, only needed for OpenGL-like reflection, and can be left out of
  8. a parse and codegen project. See it for its license.
  9. - update_glslang_sources.py, which is not part of the project proper and does
  10. not need to be used.
  11. - the SPIR-V "remapper", which is optional, but has the same license as
  12. glslang proper
  13. - Google tests and SPIR-V tools, and anything in the external subdirectory
  14. are external and optional; see them for their respective licenses.
  15. --------------------------------------------------------------------------------
  16. The core of glslang-proper, minus the preprocessor is licenced as follows:
  17. --------------------------------------------------------------------------------
  18. 3-Clause BSD License
  19. --------------------------------------------------------------------------------
  20. //
  21. // Copyright (C) 2015-2018 Google, Inc.
  22. // Copyright (C) <various other dates and companies>
  23. //
  24. // All rights reserved.
  25. //
  26. // Redistribution and use in source and binary forms, with or without
  27. // modification, are permitted provided that the following conditions
  28. // are met:
  29. //
  30. // Redistributions of source code must retain the above copyright
  31. // notice, this list of conditions and the following disclaimer.
  32. //
  33. // Redistributions in binary form must reproduce the above
  34. // copyright notice, this list of conditions and the following
  35. // disclaimer in the documentation and/or other materials provided
  36. // with the distribution.
  37. //
  38. // Neither the name of 3Dlabs Inc. Ltd. nor the names of its
  39. // contributors may be used to endorse or promote products derived
  40. // from this software without specific prior written permission.
  41. //
  42. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  43. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  44. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  45. // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  46. // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  47. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  48. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  49. // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  50. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  51. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  52. // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  53. // POSSIBILITY OF SUCH DAMAGE.
  54. //
  55. --------------------------------------------------------------------------------
  56. 2-Clause BSD License
  57. --------------------------------------------------------------------------------
  58. Copyright 2020 The Khronos Group Inc
  59. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  60. 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  61. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  62. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  63. --------------------------------------------------------------------------------
  64. The MIT License
  65. --------------------------------------------------------------------------------
  66. Copyright 2020 The Khronos Group Inc
  67. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  68. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  69. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  70. --------------------------------------------------------------------------------
  71. APACHE LICENSE, VERSION 2.0
  72. --------------------------------------------------------------------------------
  73. Apache License
  74. Version 2.0, January 2004
  75. http://www.apache.org/licenses/
  76. TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  77. 1. Definitions.
  78. "License" shall mean the terms and conditions for use, reproduction,
  79. and distribution as defined by Sections 1 through 9 of this document.
  80. "Licensor" shall mean the copyright owner or entity authorized by
  81. the copyright owner that is granting the License.
  82. "Legal Entity" shall mean the union of the acting entity and all
  83. other entities that control, are controlled by, or are under common
  84. control with that entity. For the purposes of this definition,
  85. "control" means (i) the power, direct or indirect, to cause the
  86. direction or management of such entity, whether by contract or
  87. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  88. outstanding shares, or (iii) beneficial ownership of such entity.
  89. "You" (or "Your") shall mean an individual or Legal Entity
  90. exercising permissions granted by this License.
  91. "Source" form shall mean the preferred form for making modifications,
  92. including but not limited to software source code, documentation
  93. source, and configuration files.
  94. "Object" form shall mean any form resulting from mechanical
  95. transformation or translation of a Source form, including but
  96. not limited to compiled object code, generated documentation,
  97. and conversions to other media types.
  98. "Work" shall mean the work of authorship, whether in Source or
  99. Object form, made available under the License, as indicated by a
  100. copyright notice that is included in or attached to the work
  101. (an example is provided in the Appendix below).
  102. "Derivative Works" shall mean any work, whether in Source or Object
  103. form, that is based on (or derived from) the Work and for which the
  104. editorial revisions, annotations, elaborations, or other modifications
  105. represent, as a whole, an original work of authorship. For the purposes
  106. of this License, Derivative Works shall not include works that remain
  107. separable from, or merely link (or bind by name) to the interfaces of,
  108. the Work and Derivative Works thereof.
  109. "Contribution" shall mean any work of authorship, including
  110. the original version of the Work and any modifications or additions
  111. to that Work or Derivative Works thereof, that is intentionally
  112. submitted to Licensor for inclusion in the Work by the copyright owner
  113. or by an individual or Legal Entity authorized to submit on behalf of
  114. the copyright owner. For the purposes of this definition, "submitted"
  115. means any form of electronic, verbal, or written communication sent
  116. to the Licensor or its representatives, including but not limited to
  117. communication on electronic mailing lists, source code control systems,
  118. and issue tracking systems that are managed by, or on behalf of, the
  119. Licensor for the purpose of discussing and improving the Work, but
  120. excluding communication that is conspicuously marked or otherwise
  121. designated in writing by the copyright owner as "Not a Contribution."
  122. "Contributor" shall mean Licensor and any individual or Legal Entity
  123. on behalf of whom a Contribution has been received by Licensor and
  124. subsequently incorporated within the Work.
  125. 2. Grant of Copyright License. Subject to the terms and conditions of
  126. this License, each Contributor hereby grants to You a perpetual,
  127. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  128. copyright license to reproduce, prepare Derivative Works of,
  129. publicly display, publicly perform, sublicense, and distribute the
  130. Work and such Derivative Works in Source or Object form.
  131. 3. Grant of Patent License. Subject to the terms and conditions of
  132. this License, each Contributor hereby grants to You a perpetual,
  133. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  134. (except as stated in this section) patent license to make, have made,
  135. use, offer to sell, sell, import, and otherwise transfer the Work,
  136. where such license applies only to those patent claims licensable
  137. by such Contributor that are necessarily infringed by their
  138. Contribution(s) alone or by combination of their Contribution(s)
  139. with the Work to which such Contribution(s) was submitted. If You
  140. institute patent litigation against any entity (including a
  141. cross-claim or counterclaim in a lawsuit) alleging that the Work
  142. or a Contribution incorporated within the Work constitutes direct
  143. or contributory patent infringement, then any patent licenses
  144. granted to You under this License for that Work shall terminate
  145. as of the date such litigation is filed.
  146. 4. Redistribution. You may reproduce and distribute copies of the
  147. Work or Derivative Works thereof in any medium, with or without
  148. modifications, and in Source or Object form, provided that You
  149. meet the following conditions:
  150. (a) You must give any other recipients of the Work or
  151. Derivative Works a copy of this License; and
  152. (b) You must cause any modified files to carry prominent notices
  153. stating that You changed the files; and
  154. (c) You must retain, in the Source form of any Derivative Works
  155. that You distribute, all copyright, patent, trademark, and
  156. attribution notices from the Source form of the Work,
  157. excluding those notices that do not pertain to any part of
  158. the Derivative Works; and
  159. (d) If the Work includes a "NOTICE" text file as part of its
  160. distribution, then any Derivative Works that You distribute must
  161. include a readable copy of the attribution notices contained
  162. within such NOTICE file, excluding those notices that do not
  163. pertain to any part of the Derivative Works, in at least one
  164. of the following places: within a NOTICE text file distributed
  165. as part of the Derivative Works; within the Source form or
  166. documentation, if provided along with the Derivative Works; or,
  167. within a display generated by the Derivative Works, if and
  168. wherever such third-party notices normally appear. The contents
  169. of the NOTICE file are for informational purposes only and
  170. do not modify the License. You may add Your own attribution
  171. notices within Derivative Works that You distribute, alongside
  172. or as an addendum to the NOTICE text from the Work, provided
  173. that such additional attribution notices cannot be construed
  174. as modifying the License.
  175. You may add Your own copyright statement to Your modifications and
  176. may provide additional or different license terms and conditions
  177. for use, reproduction, or distribution of Your modifications, or
  178. for any such Derivative Works as a whole, provided Your use,
  179. reproduction, and distribution of the Work otherwise complies with
  180. the conditions stated in this License.
  181. 5. Submission of Contributions. Unless You explicitly state otherwise,
  182. any Contribution intentionally submitted for inclusion in the Work
  183. by You to the Licensor shall be under the terms and conditions of
  184. this License, without any additional terms or conditions.
  185. Notwithstanding the above, nothing herein shall supersede or modify
  186. the terms of any separate license agreement you may have executed
  187. with Licensor regarding such Contributions.
  188. 6. Trademarks. This License does not grant permission to use the trade
  189. names, trademarks, service marks, or product names of the Licensor,
  190. except as required for reasonable and customary use in describing the
  191. origin of the Work and reproducing the content of the NOTICE file.
  192. 7. Disclaimer of Warranty. Unless required by applicable law or
  193. agreed to in writing, Licensor provides the Work (and each
  194. Contributor provides its Contributions) on an "AS IS" BASIS,
  195. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  196. implied, including, without limitation, any warranties or conditions
  197. of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  198. PARTICULAR PURPOSE. You are solely responsible for determining the
  199. appropriateness of using or redistributing the Work and assume any
  200. risks associated with Your exercise of permissions under this License.
  201. 8. Limitation of Liability. In no event and under no legal theory,
  202. whether in tort (including negligence), contract, or otherwise,
  203. unless required by applicable law (such as deliberate and grossly
  204. negligent acts) or agreed to in writing, shall any Contributor be
  205. liable to You for damages, including any direct, indirect, special,
  206. incidental, or consequential damages of any character arising as a
  207. result of this License or out of the use or inability to use the
  208. Work (including but not limited to damages for loss of goodwill,
  209. work stoppage, computer failure or malfunction, or any and all
  210. other commercial damages or losses), even if such Contributor
  211. has been advised of the possibility of such damages.
  212. 9. Accepting Warranty or Additional Liability. While redistributing
  213. the Work or Derivative Works thereof, You may choose to offer,
  214. and charge a fee for, acceptance of support, warranty, indemnity,
  215. or other liability obligations and/or rights consistent with this
  216. License. However, in accepting such obligations, You may act only
  217. on Your own behalf and on Your sole responsibility, not on behalf
  218. of any other Contributor, and only if You agree to indemnify,
  219. defend, and hold each Contributor harmless for any liability
  220. incurred by, or claims asserted against, such Contributor by reason
  221. of your accepting any such warranty or additional liability.
  222. END OF TERMS AND CONDITIONS
  223. APPENDIX: How to apply the Apache License to your work.
  224. To apply the Apache License to your work, attach the following
  225. boilerplate notice, with the fields enclosed by brackets "[]"
  226. replaced with your own identifying information. (Don't include
  227. the brackets!) The text should be enclosed in the appropriate
  228. comment syntax for the file format. We also recommend that a
  229. file or class name and description of purpose be included on the
  230. same "printed page" as the copyright notice for easier
  231. identification within third-party archives.
  232. Copyright [yyyy] [name of copyright owner]
  233. Licensed under the Apache License, Version 2.0 (the "License");
  234. you may not use this file except in compliance with the License.
  235. You may obtain a copy of the License at
  236. http://www.apache.org/licenses/LICENSE-2.0
  237. Unless required by applicable law or agreed to in writing, software
  238. distributed under the License is distributed on an "AS IS" BASIS,
  239. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  240. See the License for the specific language governing permissions and
  241. limitations under the License.
  242. --------------------------------------------------------------------------------
  243. GPL 3 with special bison exception
  244. --------------------------------------------------------------------------------
  245. Bison implementation for Yacc-like parsers in C
  246. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  247. This program is free software: you can redistribute it and/or modify
  248. it under the terms of the GNU General Public License as published by
  249. the Free Software Foundation, either version 3 of the License, or
  250. (at your option) any later version.
  251. This program is distributed in the hope that it will be useful,
  252. but WITHOUT ANY WARRANTY; without even the implied warranty of
  253. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  254. GNU General Public License for more details.
  255. You should have received a copy of the GNU General Public License
  256. along with this program. If not, see <http://www.gnu.org/licenses/>.
  257. As a special exception, you may create a larger work that contains
  258. part or all of the Bison parser skeleton and distribute that work
  259. under terms of your choice, so long as that work isn't itself a
  260. parser generator using the skeleton or a modified version thereof
  261. as a parser skeleton. Alternatively, if you modify or redistribute
  262. the parser skeleton itself, you may (at your option) remove this
  263. special exception, which will cause the skeleton and the resulting
  264. Bison output files to be licensed under the GNU General Public
  265. License without this special exception.
  266. This special exception was added by the Free Software Foundation in
  267. version 2.2 of Bison.
  268. --------------------------------------------------------------------------------
  269. ================================================================================
  270. --------------------------------------------------------------------------------
  271. The preprocessor has the core licenses stated above, plus an additional licence:
  272. /****************************************************************************\
  273. Copyright (c) 2002, NVIDIA Corporation.
  274. NVIDIA Corporation("NVIDIA") supplies this software to you in
  275. consideration of your agreement to the following terms, and your use,
  276. installation, modification or redistribution of this NVIDIA software
  277. constitutes acceptance of these terms. If you do not agree with these
  278. terms, please do not use, install, modify or redistribute this NVIDIA
  279. software.
  280. In consideration of your agreement to abide by the following terms, and
  281. subject to these terms, NVIDIA grants you a personal, non-exclusive
  282. license, under NVIDIA's copyrights in this original NVIDIA software (the
  283. "NVIDIA Software"), to use, reproduce, modify and redistribute the
  284. NVIDIA Software, with or without modifications, in source and/or binary
  285. forms; provided that if you redistribute the NVIDIA Software, you must
  286. retain the copyright notice of NVIDIA, this notice and the following
  287. text and disclaimers in all such redistributions of the NVIDIA Software.
  288. Neither the name, trademarks, service marks nor logos of NVIDIA
  289. Corporation may be used to endorse or promote products derived from the
  290. NVIDIA Software without specific prior written permission from NVIDIA.
  291. Except as expressly stated in this notice, no other rights or licenses
  292. express or implied, are granted by NVIDIA herein, including but not
  293. limited to any patent rights that may be infringed by your derivative
  294. works or by other works in which the NVIDIA Software may be
  295. incorporated. No hardware is licensed hereunder.
  296. THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
  297. WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  298. INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,
  299. NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
  300. ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER
  301. PRODUCTS.
  302. IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,
  303. INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
  304. TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  305. USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY
  306. OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE
  307. NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
  308. TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
  309. NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  310. \****************************************************************************/