|
| 1 | + Apache License |
| 2 | + Version 2.0, January 2004 |
| 3 | + http://www.apache.org/licenses/ |
| 4 | + |
| 5 | +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
| 6 | + |
| 7 | +1. Definitions. |
| 8 | + |
| 9 | + "License" shall mean the terms and conditions for use, reproduction, and |
| 10 | + distribution as defined by Sections 1 through 9 of this document. |
| 11 | + |
| 12 | + "Licensor" shall mean the copyright owner or entity authorized by the |
| 13 | + copyright owner that is granting the License. |
| 14 | + |
| 15 | + "Legal Entity" shall mean the union of the acting entity and all other |
| 16 | + entities that control, are controlled by, or are under common control with |
| 17 | + that entity. For the purposes of this definition, "control" means (i) the |
| 18 | + power, direct or indirect, to cause the direction or management of such |
| 19 | + entity, whether by contract or otherwise, or (ii) ownership of fifty percent |
| 20 | + (50%) or more of the outstanding shares, or (iii) beneficial ownership of |
| 21 | + such entity. |
| 22 | + |
| 23 | + "You" (or "Your") shall mean an individual or Legal Entity exercising |
| 24 | + permissions granted by this License. |
| 25 | + |
| 26 | + "Source" form shall mean the preferred form for making modifications, |
| 27 | + including but not limited to software source code, documentation source, and |
| 28 | + configuration files. |
| 29 | + |
| 30 | + "Object" form shall mean any form resulting from mechanical transformation |
| 31 | + or translation of a Source form, including but not limited to compiled |
| 32 | + object code, generated documentation, and conversions to other media types. |
| 33 | + |
| 34 | + "Work" shall mean the work of authorship, whether in Source or Object form, |
| 35 | + made available under the License, as indicated by a copyright notice that is |
| 36 | + included in or attached to the work (an example is provided in the Appendix |
| 37 | + below). |
| 38 | + |
| 39 | + "Derivative Works" shall mean any work, whether in Source or Object form, |
| 40 | + that is based on (or derived from) the Work and for which the editorial |
| 41 | + revisions, annotations, elaborations, or other modifications represent, as a |
| 42 | + whole, an original work of authorship. For the purposes of this License, |
| 43 | + Derivative Works shall not include works that remain separable from, or |
| 44 | + merely link (or bind by name) to the interfaces of, the Work and Derivative |
| 45 | + Works thereof. |
| 46 | + |
| 47 | + "Contribution" shall mean any work of authorship, including the original |
| 48 | + version of the Work and any modifications or additions to that Work or |
| 49 | + Derivative Works thereof, that is intentionally submitted to Licensor for |
| 50 | + inclusion in the Work by the copyright owner or by an individual or Legal |
| 51 | + Entity authorized to submit on behalf of the copyright owner. For the |
| 52 | + purposes of this definition, "submitted" means any form of electronic, |
| 53 | + verbal, or written communication sent to the Licensor or its |
| 54 | + representatives, including but not limited to communication on electronic |
| 55 | + mailing lists, source code control systems, and issue tracking systems that |
| 56 | + are managed by, or on behalf of, the Licensor for the purpose of discussing |
| 57 | + and improving the Work, but excluding communication that is conspicuously |
| 58 | + marked or otherwise designated in writing by the copyright owner as "Not a |
| 59 | + Contribution." |
| 60 | + |
| 61 | + "Contributor" shall mean Licensor and any individual or Legal Entity on |
| 62 | + behalf of whom a Contribution has been received by Licensor and subsequently |
| 63 | + incorporated within the Work. |
| 64 | + |
| 65 | +2. Grant of Copyright License. Subject to the terms and conditions of this |
| 66 | + License, each Contributor hereby grants to You a perpetual, worldwide, |
| 67 | + non-exclusive, no-charge, royalty-free, irrevocable copyright license to |
| 68 | + reproduce, prepare Derivative Works of, publicly display, publicly perform, |
| 69 | + sublicense, and distribute the Work and such Derivative Works in Source or |
| 70 | + Object form. |
| 71 | + |
| 72 | +3. Grant of Patent License. Subject to the terms and conditions of this |
| 73 | + License, each Contributor hereby grants to You a perpetual, worldwide, |
| 74 | + non-exclusive, no-charge, royalty-free, irrevocable (except as stated in |
| 75 | + this section) patent license to make, have made, use, offer to sell, sell, |
| 76 | + import, and otherwise transfer the Work, where such license applies only to |
| 77 | + those patent claims licensable by such Contributor that are necessarily |
| 78 | + infringed by their Contribution(s) alone or by combination of their |
| 79 | + Contribution(s) with the Work to which such Contribution(s) was submitted. |
| 80 | + If You institute patent litigation against any entity (including a |
| 81 | + cross-claim or counterclaim in a lawsuit) alleging that the Work or a |
| 82 | + Contribution incorporated within the Work constitutes direct or contributory |
| 83 | + patent infringement, then any patent licenses granted to You under this |
| 84 | + License for that Work shall terminate as of the date such litigation is |
| 85 | + filed. |
| 86 | + |
| 87 | +4. Redistribution. You may reproduce and distribute copies of the Work or |
| 88 | + Derivative Works thereof in any medium, with or without modifications, and |
| 89 | + in Source or Object form, provided that You meet the following conditions: |
| 90 | + |
| 91 | + a. You must give any other recipients of the Work or Derivative Works a |
| 92 | + copy of this License; and |
| 93 | + |
| 94 | + b. You must cause any modified files to carry prominent notices stating |
| 95 | + that You changed the files; and |
| 96 | + |
| 97 | + c. You must retain, in the Source form of any Derivative Works that You |
| 98 | + distribute, all copyright, patent, trademark, and attribution notices |
| 99 | + from the Source form of the Work, excluding those notices that do not |
| 100 | + pertain to any part of the Derivative Works; and |
| 101 | + |
| 102 | + d. If the Work includes a "NOTICE" text file as part of its distribution, |
| 103 | + then any Derivative Works that You distribute must include a readable |
| 104 | + copy of the attribution notices contained within such NOTICE file, |
| 105 | + excluding those notices that do not pertain to any part of the Derivative |
| 106 | + Works, in at least one of the following places: within a NOTICE text file |
| 107 | + distributed as part of the Derivative Works; within the Source form or |
| 108 | + documentation, if provided along with the Derivative Works; or, within a |
| 109 | + display generated by the Derivative Works, if and wherever such |
| 110 | + third-party notices normally appear. The contents of the NOTICE file are |
| 111 | + for informational purposes only and do not modify the License. You may |
| 112 | + add Your own attribution notices within Derivative Works that You |
| 113 | + distribute, alongside or as an addendum to the NOTICE text from the Work, |
| 114 | + provided that such additional attribution notices cannot be construed as |
| 115 | + modifying the License. |
| 116 | + |
| 117 | + You may add Your own copyright statement to Your modifications and may |
| 118 | + provide additional or different license terms and conditions for use, |
| 119 | + reproduction, or distribution of Your modifications, or for any such |
| 120 | + Derivative Works as a whole, provided Your use, reproduction, and |
| 121 | + distribution of the Work otherwise complies with the conditions stated in |
| 122 | + this License. |
| 123 | + |
| 124 | +5. Submission of Contributions. Unless You explicitly state otherwise, any |
| 125 | + Contribution intentionally submitted for inclusion in the Work by You to the |
| 126 | + Licensor shall be under the terms and conditions of this License, without |
| 127 | + any additional terms or conditions. Notwithstanding the above, nothing |
| 128 | + herein shall supersede or modify the terms of any separate license agreement |
| 129 | + you may have executed with Licensor regarding such Contributions. |
| 130 | + |
| 131 | +6. Trademarks. This License does not grant permission to use the trade names, |
| 132 | + trademarks, service marks, or product names of the Licensor, except as |
| 133 | + required for reasonable and customary use in describing the origin of the |
| 134 | + Work and reproducing the content of the NOTICE file. |
| 135 | + |
| 136 | +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in |
| 137 | + writing, Licensor provides the Work (and each Contributor provides its |
| 138 | + Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 139 | + KIND, either express or implied, including, without limitation, any |
| 140 | + warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or |
| 141 | + FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining |
| 142 | + the appropriateness of using or redistributing the Work and assume any risks |
| 143 | + associated with Your exercise of permissions under this License. |
| 144 | + |
| 145 | +8. Limitation of Liability. In no event and under no legal theory, whether in |
| 146 | + tort (including negligence), contract, or otherwise, unless required by |
| 147 | + applicable law (such as deliberate and grossly negligent acts) or agreed to |
| 148 | + in writing, shall any Contributor be liable to You for damages, including |
| 149 | + any direct, indirect, special, incidental, or consequential damages of any |
| 150 | + character arising as a result of this License or out of the use or inability |
| 151 | + to use the Work (including but not limited to damages for loss of goodwill, |
| 152 | + work stoppage, computer failure or malfunction, or any and all other |
| 153 | + commercial damages or losses), even if such Contributor has been advised of |
| 154 | + the possibility of such damages. |
| 155 | + |
| 156 | +9. Accepting Warranty or Additional Liability. While redistributing the Work or |
| 157 | + Derivative Works thereof, You may choose to offer, and charge a fee for, |
| 158 | + acceptance of support, warranty, indemnity, or other liability obligations |
| 159 | + and/or rights consistent with this License. However, in accepting such |
| 160 | + obligations, You may act only on Your own behalf and on Your sole |
| 161 | + responsibility, not on behalf of any other Contributor, and only if You |
| 162 | + agree to indemnify, defend, and hold each Contributor harmless for any |
| 163 | + liability incurred by, or claims asserted against, such Contributor by |
| 164 | + reason of your accepting any such warranty or additional liability. |
| 165 | + |
| 166 | +END OF TERMS AND CONDITIONS |
| 167 | + |
| 168 | +LLVM EXCEPTIONS TO THE APACHE 2.0 LICENSE |
| 169 | + |
| 170 | +As an exception, if, as a result of your compiling your source code, portions |
| 171 | +of this Software are embedded into an Object form of such source code, you may |
| 172 | +redistribute such embedded portions in such Object form without complying with |
| 173 | +the conditions of Sections 4(a), 4(b) and 4(d) of the License. |
| 174 | + |
| 175 | +In addition, if you combine or link compiled forms of this Software with |
| 176 | +software that is licensed under the GPLv2 ("Combined Software") and if a court |
| 177 | +of competent jurisdiction determines that the patent provision (Section 3), the |
| 178 | +indemnity provision (Section 9) or other Section of the License conflicts with |
| 179 | +the conditions of the GPLv2, you may retroactively and prospectively choose to |
| 180 | +deem waived or otherwise exclude such Section(s) of the License, but only in |
| 181 | +their entirety and only with respect to the Combined Software. |
| 182 | + |
| 183 | +END OF LLVM EXCEPTIONS |
| 184 | + |
| 185 | +APPENDIX: How to apply the Apache License to your work. |
| 186 | + |
| 187 | +To apply the Apache License to your work, attach the following boilerplate |
| 188 | +notice, with the fields enclosed by brackets "[]" replaced with your own |
| 189 | +identifying information. (Don't include the brackets!) The text should be |
| 190 | +enclosed in the appropriate comment syntax for the file format. We also |
| 191 | +recommend that a file or class name and description of purpose be included on |
| 192 | +the same "printed page" as the copyright notice for easier identification |
| 193 | +within third-party archives. |
| 194 | + |
| 195 | +Copyright [yyyy] [name of copyright owner] |
| 196 | + |
| 197 | +Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
| 198 | +this file except in compliance with the License. You may obtain a copy of the |
| 199 | +License at |
| 200 | + |
| 201 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 202 | + |
| 203 | +Unless required by applicable law or agreed to in writing, software distributed |
| 204 | +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
| 205 | +CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| 206 | +specific language governing permissions and limitations under the License. |
| 207 | + |
| 208 | +END OF APPENDIX |
0 commit comments