xref: /aosp_15_r20/external/eigen/COPYING.MPL2 (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin LiMozilla Public License Version 2.0
2*bf2c3715SXin Li==================================
3*bf2c3715SXin Li
4*bf2c3715SXin Li1. Definitions
5*bf2c3715SXin Li--------------
6*bf2c3715SXin Li
7*bf2c3715SXin Li1.1. "Contributor"
8*bf2c3715SXin Li    means each individual or legal entity that creates, contributes to
9*bf2c3715SXin Li    the creation of, or owns Covered Software.
10*bf2c3715SXin Li
11*bf2c3715SXin Li1.2. "Contributor Version"
12*bf2c3715SXin Li    means the combination of the Contributions of others (if any) used
13*bf2c3715SXin Li    by a Contributor and that particular Contributor's Contribution.
14*bf2c3715SXin Li
15*bf2c3715SXin Li1.3. "Contribution"
16*bf2c3715SXin Li    means Covered Software of a particular Contributor.
17*bf2c3715SXin Li
18*bf2c3715SXin Li1.4. "Covered Software"
19*bf2c3715SXin Li    means Source Code Form to which the initial Contributor has attached
20*bf2c3715SXin Li    the notice in Exhibit A, the Executable Form of such Source Code
21*bf2c3715SXin Li    Form, and Modifications of such Source Code Form, in each case
22*bf2c3715SXin Li    including portions thereof.
23*bf2c3715SXin Li
24*bf2c3715SXin Li1.5. "Incompatible With Secondary Licenses"
25*bf2c3715SXin Li    means
26*bf2c3715SXin Li
27*bf2c3715SXin Li    (a) that the initial Contributor has attached the notice described
28*bf2c3715SXin Li        in Exhibit B to the Covered Software; or
29*bf2c3715SXin Li
30*bf2c3715SXin Li    (b) that the Covered Software was made available under the terms of
31*bf2c3715SXin Li        version 1.1 or earlier of the License, but not also under the
32*bf2c3715SXin Li        terms of a Secondary License.
33*bf2c3715SXin Li
34*bf2c3715SXin Li1.6. "Executable Form"
35*bf2c3715SXin Li    means any form of the work other than Source Code Form.
36*bf2c3715SXin Li
37*bf2c3715SXin Li1.7. "Larger Work"
38*bf2c3715SXin Li    means a work that combines Covered Software with other material, in
39*bf2c3715SXin Li    a separate file or files, that is not Covered Software.
40*bf2c3715SXin Li
41*bf2c3715SXin Li1.8. "License"
42*bf2c3715SXin Li    means this document.
43*bf2c3715SXin Li
44*bf2c3715SXin Li1.9. "Licensable"
45*bf2c3715SXin Li    means having the right to grant, to the maximum extent possible,
46*bf2c3715SXin Li    whether at the time of the initial grant or subsequently, any and
47*bf2c3715SXin Li    all of the rights conveyed by this License.
48*bf2c3715SXin Li
49*bf2c3715SXin Li1.10. "Modifications"
50*bf2c3715SXin Li    means any of the following:
51*bf2c3715SXin Li
52*bf2c3715SXin Li    (a) any file in Source Code Form that results from an addition to,
53*bf2c3715SXin Li        deletion from, or modification of the contents of Covered
54*bf2c3715SXin Li        Software; or
55*bf2c3715SXin Li
56*bf2c3715SXin Li    (b) any new file in Source Code Form that contains any Covered
57*bf2c3715SXin Li        Software.
58*bf2c3715SXin Li
59*bf2c3715SXin Li1.11. "Patent Claims" of a Contributor
60*bf2c3715SXin Li    means any patent claim(s), including without limitation, method,
61*bf2c3715SXin Li    process, and apparatus claims, in any patent Licensable by such
62*bf2c3715SXin Li    Contributor that would be infringed, but for the grant of the
63*bf2c3715SXin Li    License, by the making, using, selling, offering for sale, having
64*bf2c3715SXin Li    made, import, or transfer of either its Contributions or its
65*bf2c3715SXin Li    Contributor Version.
66*bf2c3715SXin Li
67*bf2c3715SXin Li1.12. "Secondary License"
68*bf2c3715SXin Li    means either the GNU General Public License, Version 2.0, the GNU
69*bf2c3715SXin Li    Lesser General Public License, Version 2.1, the GNU Affero General
70*bf2c3715SXin Li    Public License, Version 3.0, or any later versions of those
71*bf2c3715SXin Li    licenses.
72*bf2c3715SXin Li
73*bf2c3715SXin Li1.13. "Source Code Form"
74*bf2c3715SXin Li    means the form of the work preferred for making modifications.
75*bf2c3715SXin Li
76*bf2c3715SXin Li1.14. "You" (or "Your")
77*bf2c3715SXin Li    means an individual or a legal entity exercising rights under this
78*bf2c3715SXin Li    License. For legal entities, "You" includes any entity that
79*bf2c3715SXin Li    controls, is controlled by, or is under common control with You. For
80*bf2c3715SXin Li    purposes of this definition, "control" means (a) the power, direct
81*bf2c3715SXin Li    or indirect, to cause the direction or management of such entity,
82*bf2c3715SXin Li    whether by contract or otherwise, or (b) ownership of more than
83*bf2c3715SXin Li    fifty percent (50%) of the outstanding shares or beneficial
84*bf2c3715SXin Li    ownership of such entity.
85*bf2c3715SXin Li
86*bf2c3715SXin Li2. License Grants and Conditions
87*bf2c3715SXin Li--------------------------------
88*bf2c3715SXin Li
89*bf2c3715SXin Li2.1. Grants
90*bf2c3715SXin Li
91*bf2c3715SXin LiEach Contributor hereby grants You a world-wide, royalty-free,
92*bf2c3715SXin Linon-exclusive license:
93*bf2c3715SXin Li
94*bf2c3715SXin Li(a) under intellectual property rights (other than patent or trademark)
95*bf2c3715SXin Li    Licensable by such Contributor to use, reproduce, make available,
96*bf2c3715SXin Li    modify, display, perform, distribute, and otherwise exploit its
97*bf2c3715SXin Li    Contributions, either on an unmodified basis, with Modifications, or
98*bf2c3715SXin Li    as part of a Larger Work; and
99*bf2c3715SXin Li
100*bf2c3715SXin Li(b) under Patent Claims of such Contributor to make, use, sell, offer
101*bf2c3715SXin Li    for sale, have made, import, and otherwise transfer either its
102*bf2c3715SXin Li    Contributions or its Contributor Version.
103*bf2c3715SXin Li
104*bf2c3715SXin Li2.2. Effective Date
105*bf2c3715SXin Li
106*bf2c3715SXin LiThe licenses granted in Section 2.1 with respect to any Contribution
107*bf2c3715SXin Libecome effective for each Contribution on the date the Contributor first
108*bf2c3715SXin Lidistributes such Contribution.
109*bf2c3715SXin Li
110*bf2c3715SXin Li2.3. Limitations on Grant Scope
111*bf2c3715SXin Li
112*bf2c3715SXin LiThe licenses granted in this Section 2 are the only rights granted under
113*bf2c3715SXin Lithis License. No additional rights or licenses will be implied from the
114*bf2c3715SXin Lidistribution or licensing of Covered Software under this License.
115*bf2c3715SXin LiNotwithstanding Section 2.1(b) above, no patent license is granted by a
116*bf2c3715SXin LiContributor:
117*bf2c3715SXin Li
118*bf2c3715SXin Li(a) for any code that a Contributor has removed from Covered Software;
119*bf2c3715SXin Li    or
120*bf2c3715SXin Li
121*bf2c3715SXin Li(b) for infringements caused by: (i) Your and any other third party's
122*bf2c3715SXin Li    modifications of Covered Software, or (ii) the combination of its
123*bf2c3715SXin Li    Contributions with other software (except as part of its Contributor
124*bf2c3715SXin Li    Version); or
125*bf2c3715SXin Li
126*bf2c3715SXin Li(c) under Patent Claims infringed by Covered Software in the absence of
127*bf2c3715SXin Li    its Contributions.
128*bf2c3715SXin Li
129*bf2c3715SXin LiThis License does not grant any rights in the trademarks, service marks,
130*bf2c3715SXin Lior logos of any Contributor (except as may be necessary to comply with
131*bf2c3715SXin Lithe notice requirements in Section 3.4).
132*bf2c3715SXin Li
133*bf2c3715SXin Li2.4. Subsequent Licenses
134*bf2c3715SXin Li
135*bf2c3715SXin LiNo Contributor makes additional grants as a result of Your choice to
136*bf2c3715SXin Lidistribute the Covered Software under a subsequent version of this
137*bf2c3715SXin LiLicense (see Section 10.2) or under the terms of a Secondary License (if
138*bf2c3715SXin Lipermitted under the terms of Section 3.3).
139*bf2c3715SXin Li
140*bf2c3715SXin Li2.5. Representation
141*bf2c3715SXin Li
142*bf2c3715SXin LiEach Contributor represents that the Contributor believes its
143*bf2c3715SXin LiContributions are its original creation(s) or it has sufficient rights
144*bf2c3715SXin Lito grant the rights to its Contributions conveyed by this License.
145*bf2c3715SXin Li
146*bf2c3715SXin Li2.6. Fair Use
147*bf2c3715SXin Li
148*bf2c3715SXin LiThis License is not intended to limit any rights You have under
149*bf2c3715SXin Liapplicable copyright doctrines of fair use, fair dealing, or other
150*bf2c3715SXin Liequivalents.
151*bf2c3715SXin Li
152*bf2c3715SXin Li2.7. Conditions
153*bf2c3715SXin Li
154*bf2c3715SXin LiSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155*bf2c3715SXin Liin Section 2.1.
156*bf2c3715SXin Li
157*bf2c3715SXin Li3. Responsibilities
158*bf2c3715SXin Li-------------------
159*bf2c3715SXin Li
160*bf2c3715SXin Li3.1. Distribution of Source Form
161*bf2c3715SXin Li
162*bf2c3715SXin LiAll distribution of Covered Software in Source Code Form, including any
163*bf2c3715SXin LiModifications that You create or to which You contribute, must be under
164*bf2c3715SXin Lithe terms of this License. You must inform recipients that the Source
165*bf2c3715SXin LiCode Form of the Covered Software is governed by the terms of this
166*bf2c3715SXin LiLicense, and how they can obtain a copy of this License. You may not
167*bf2c3715SXin Liattempt to alter or restrict the recipients' rights in the Source Code
168*bf2c3715SXin LiForm.
169*bf2c3715SXin Li
170*bf2c3715SXin Li3.2. Distribution of Executable Form
171*bf2c3715SXin Li
172*bf2c3715SXin LiIf You distribute Covered Software in Executable Form then:
173*bf2c3715SXin Li
174*bf2c3715SXin Li(a) such Covered Software must also be made available in Source Code
175*bf2c3715SXin Li    Form, as described in Section 3.1, and You must inform recipients of
176*bf2c3715SXin Li    the Executable Form how they can obtain a copy of such Source Code
177*bf2c3715SXin Li    Form by reasonable means in a timely manner, at a charge no more
178*bf2c3715SXin Li    than the cost of distribution to the recipient; and
179*bf2c3715SXin Li
180*bf2c3715SXin Li(b) You may distribute such Executable Form under the terms of this
181*bf2c3715SXin Li    License, or sublicense it under different terms, provided that the
182*bf2c3715SXin Li    license for the Executable Form does not attempt to limit or alter
183*bf2c3715SXin Li    the recipients' rights in the Source Code Form under this License.
184*bf2c3715SXin Li
185*bf2c3715SXin Li3.3. Distribution of a Larger Work
186*bf2c3715SXin Li
187*bf2c3715SXin LiYou may create and distribute a Larger Work under terms of Your choice,
188*bf2c3715SXin Liprovided that You also comply with the requirements of this License for
189*bf2c3715SXin Lithe Covered Software. If the Larger Work is a combination of Covered
190*bf2c3715SXin LiSoftware with a work governed by one or more Secondary Licenses, and the
191*bf2c3715SXin LiCovered Software is not Incompatible With Secondary Licenses, this
192*bf2c3715SXin LiLicense permits You to additionally distribute such Covered Software
193*bf2c3715SXin Liunder the terms of such Secondary License(s), so that the recipient of
194*bf2c3715SXin Lithe Larger Work may, at their option, further distribute the Covered
195*bf2c3715SXin LiSoftware under the terms of either this License or such Secondary
196*bf2c3715SXin LiLicense(s).
197*bf2c3715SXin Li
198*bf2c3715SXin Li3.4. Notices
199*bf2c3715SXin Li
200*bf2c3715SXin LiYou may not remove or alter the substance of any license notices
201*bf2c3715SXin Li(including copyright notices, patent notices, disclaimers of warranty,
202*bf2c3715SXin Lior limitations of liability) contained within the Source Code Form of
203*bf2c3715SXin Lithe Covered Software, except that You may alter any license notices to
204*bf2c3715SXin Lithe extent required to remedy known factual inaccuracies.
205*bf2c3715SXin Li
206*bf2c3715SXin Li3.5. Application of Additional Terms
207*bf2c3715SXin Li
208*bf2c3715SXin LiYou may choose to offer, and to charge a fee for, warranty, support,
209*bf2c3715SXin Liindemnity or liability obligations to one or more recipients of Covered
210*bf2c3715SXin LiSoftware. However, You may do so only on Your own behalf, and not on
211*bf2c3715SXin Libehalf of any Contributor. You must make it absolutely clear that any
212*bf2c3715SXin Lisuch warranty, support, indemnity, or liability obligation is offered by
213*bf2c3715SXin LiYou alone, and You hereby agree to indemnify every Contributor for any
214*bf2c3715SXin Liliability incurred by such Contributor as a result of warranty, support,
215*bf2c3715SXin Liindemnity or liability terms You offer. You may include additional
216*bf2c3715SXin Lidisclaimers of warranty and limitations of liability specific to any
217*bf2c3715SXin Lijurisdiction.
218*bf2c3715SXin Li
219*bf2c3715SXin Li4. Inability to Comply Due to Statute or Regulation
220*bf2c3715SXin Li---------------------------------------------------
221*bf2c3715SXin Li
222*bf2c3715SXin LiIf it is impossible for You to comply with any of the terms of this
223*bf2c3715SXin LiLicense with respect to some or all of the Covered Software due to
224*bf2c3715SXin Listatute, judicial order, or regulation then You must: (a) comply with
225*bf2c3715SXin Lithe terms of this License to the maximum extent possible; and (b)
226*bf2c3715SXin Lidescribe the limitations and the code they affect. Such description must
227*bf2c3715SXin Libe placed in a text file included with all distributions of the Covered
228*bf2c3715SXin LiSoftware under this License. Except to the extent prohibited by statute
229*bf2c3715SXin Lior regulation, such description must be sufficiently detailed for a
230*bf2c3715SXin Lirecipient of ordinary skill to be able to understand it.
231*bf2c3715SXin Li
232*bf2c3715SXin Li5. Termination
233*bf2c3715SXin Li--------------
234*bf2c3715SXin Li
235*bf2c3715SXin Li5.1. The rights granted under this License will terminate automatically
236*bf2c3715SXin Liif You fail to comply with any of its terms. However, if You become
237*bf2c3715SXin Licompliant, then the rights granted under this License from a particular
238*bf2c3715SXin LiContributor are reinstated (a) provisionally, unless and until such
239*bf2c3715SXin LiContributor explicitly and finally terminates Your grants, and (b) on an
240*bf2c3715SXin Liongoing basis, if such Contributor fails to notify You of the
241*bf2c3715SXin Linon-compliance by some reasonable means prior to 60 days after You have
242*bf2c3715SXin Licome back into compliance. Moreover, Your grants from a particular
243*bf2c3715SXin LiContributor are reinstated on an ongoing basis if such Contributor
244*bf2c3715SXin Linotifies You of the non-compliance by some reasonable means, this is the
245*bf2c3715SXin Lifirst time You have received notice of non-compliance with this License
246*bf2c3715SXin Lifrom such Contributor, and You become compliant prior to 30 days after
247*bf2c3715SXin LiYour receipt of the notice.
248*bf2c3715SXin Li
249*bf2c3715SXin Li5.2. If You initiate litigation against any entity by asserting a patent
250*bf2c3715SXin Liinfringement claim (excluding declaratory judgment actions,
251*bf2c3715SXin Licounter-claims, and cross-claims) alleging that a Contributor Version
252*bf2c3715SXin Lidirectly or indirectly infringes any patent, then the rights granted to
253*bf2c3715SXin LiYou by any and all Contributors for the Covered Software under Section
254*bf2c3715SXin Li2.1 of this License shall terminate.
255*bf2c3715SXin Li
256*bf2c3715SXin Li5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257*bf2c3715SXin Liend user license agreements (excluding distributors and resellers) which
258*bf2c3715SXin Lihave been validly granted by You or Your distributors under this License
259*bf2c3715SXin Liprior to termination shall survive termination.
260*bf2c3715SXin Li
261*bf2c3715SXin Li************************************************************************
262*bf2c3715SXin Li*                                                                      *
263*bf2c3715SXin Li*  6. Disclaimer of Warranty                                           *
264*bf2c3715SXin Li*  -------------------------                                           *
265*bf2c3715SXin Li*                                                                      *
266*bf2c3715SXin Li*  Covered Software is provided under this License on an "as is"       *
267*bf2c3715SXin Li*  basis, without warranty of any kind, either expressed, implied, or  *
268*bf2c3715SXin Li*  statutory, including, without limitation, warranties that the       *
269*bf2c3715SXin Li*  Covered Software is free of defects, merchantable, fit for a        *
270*bf2c3715SXin Li*  particular purpose or non-infringing. The entire risk as to the     *
271*bf2c3715SXin Li*  quality and performance of the Covered Software is with You.        *
272*bf2c3715SXin Li*  Should any Covered Software prove defective in any respect, You     *
273*bf2c3715SXin Li*  (not any Contributor) assume the cost of any necessary servicing,   *
274*bf2c3715SXin Li*  repair, or correction. This disclaimer of warranty constitutes an   *
275*bf2c3715SXin Li*  essential part of this License. No use of any Covered Software is   *
276*bf2c3715SXin Li*  authorized under this License except under this disclaimer.         *
277*bf2c3715SXin Li*                                                                      *
278*bf2c3715SXin Li************************************************************************
279*bf2c3715SXin Li
280*bf2c3715SXin Li************************************************************************
281*bf2c3715SXin Li*                                                                      *
282*bf2c3715SXin Li*  7. Limitation of Liability                                          *
283*bf2c3715SXin Li*  --------------------------                                          *
284*bf2c3715SXin Li*                                                                      *
285*bf2c3715SXin Li*  Under no circumstances and under no legal theory, whether tort      *
286*bf2c3715SXin Li*  (including negligence), contract, or otherwise, shall any           *
287*bf2c3715SXin Li*  Contributor, or anyone who distributes Covered Software as          *
288*bf2c3715SXin Li*  permitted above, be liable to You for any direct, indirect,         *
289*bf2c3715SXin Li*  special, incidental, or consequential damages of any character      *
290*bf2c3715SXin Li*  including, without limitation, damages for lost profits, loss of    *
291*bf2c3715SXin Li*  goodwill, work stoppage, computer failure or malfunction, or any    *
292*bf2c3715SXin Li*  and all other commercial damages or losses, even if such party      *
293*bf2c3715SXin Li*  shall have been informed of the possibility of such damages. This   *
294*bf2c3715SXin Li*  limitation of liability shall not apply to liability for death or   *
295*bf2c3715SXin Li*  personal injury resulting from such party's negligence to the       *
296*bf2c3715SXin Li*  extent applicable law prohibits such limitation. Some               *
297*bf2c3715SXin Li*  jurisdictions do not allow the exclusion or limitation of           *
298*bf2c3715SXin Li*  incidental or consequential damages, so this exclusion and          *
299*bf2c3715SXin Li*  limitation may not apply to You.                                    *
300*bf2c3715SXin Li*                                                                      *
301*bf2c3715SXin Li************************************************************************
302*bf2c3715SXin Li
303*bf2c3715SXin Li8. Litigation
304*bf2c3715SXin Li-------------
305*bf2c3715SXin Li
306*bf2c3715SXin LiAny litigation relating to this License may be brought only in the
307*bf2c3715SXin Licourts of a jurisdiction where the defendant maintains its principal
308*bf2c3715SXin Liplace of business and such litigation shall be governed by laws of that
309*bf2c3715SXin Lijurisdiction, without reference to its conflict-of-law provisions.
310*bf2c3715SXin LiNothing in this Section shall prevent a party's ability to bring
311*bf2c3715SXin Licross-claims or counter-claims.
312*bf2c3715SXin Li
313*bf2c3715SXin Li9. Miscellaneous
314*bf2c3715SXin Li----------------
315*bf2c3715SXin Li
316*bf2c3715SXin LiThis License represents the complete agreement concerning the subject
317*bf2c3715SXin Limatter hereof. If any provision of this License is held to be
318*bf2c3715SXin Liunenforceable, such provision shall be reformed only to the extent
319*bf2c3715SXin Linecessary to make it enforceable. Any law or regulation which provides
320*bf2c3715SXin Lithat the language of a contract shall be construed against the drafter
321*bf2c3715SXin Lishall not be used to construe this License against a Contributor.
322*bf2c3715SXin Li
323*bf2c3715SXin Li10. Versions of the License
324*bf2c3715SXin Li---------------------------
325*bf2c3715SXin Li
326*bf2c3715SXin Li10.1. New Versions
327*bf2c3715SXin Li
328*bf2c3715SXin LiMozilla Foundation is the license steward. Except as provided in Section
329*bf2c3715SXin Li10.3, no one other than the license steward has the right to modify or
330*bf2c3715SXin Lipublish new versions of this License. Each version will be given a
331*bf2c3715SXin Lidistinguishing version number.
332*bf2c3715SXin Li
333*bf2c3715SXin Li10.2. Effect of New Versions
334*bf2c3715SXin Li
335*bf2c3715SXin LiYou may distribute the Covered Software under the terms of the version
336*bf2c3715SXin Liof the License under which You originally received the Covered Software,
337*bf2c3715SXin Lior under the terms of any subsequent version published by the license
338*bf2c3715SXin Listeward.
339*bf2c3715SXin Li
340*bf2c3715SXin Li10.3. Modified Versions
341*bf2c3715SXin Li
342*bf2c3715SXin LiIf you create software not governed by this License, and you want to
343*bf2c3715SXin Licreate a new license for such software, you may create and use a
344*bf2c3715SXin Limodified version of this License if you rename the license and remove
345*bf2c3715SXin Liany references to the name of the license steward (except to note that
346*bf2c3715SXin Lisuch modified license differs from this License).
347*bf2c3715SXin Li
348*bf2c3715SXin Li10.4. Distributing Source Code Form that is Incompatible With Secondary
349*bf2c3715SXin LiLicenses
350*bf2c3715SXin Li
351*bf2c3715SXin LiIf You choose to distribute Source Code Form that is Incompatible With
352*bf2c3715SXin LiSecondary Licenses under the terms of this version of the License, the
353*bf2c3715SXin Linotice described in Exhibit B of this License must be attached.
354*bf2c3715SXin Li
355*bf2c3715SXin LiExhibit A - Source Code Form License Notice
356*bf2c3715SXin Li-------------------------------------------
357*bf2c3715SXin Li
358*bf2c3715SXin Li  This Source Code Form is subject to the terms of the Mozilla Public
359*bf2c3715SXin Li  License, v. 2.0. If a copy of the MPL was not distributed with this
360*bf2c3715SXin Li  file, You can obtain one at http://mozilla.org/MPL/2.0/.
361*bf2c3715SXin Li
362*bf2c3715SXin LiIf it is not possible or desirable to put the notice in a particular
363*bf2c3715SXin Lifile, then You may include the notice in a location (such as a LICENSE
364*bf2c3715SXin Lifile in a relevant directory) where a recipient would be likely to look
365*bf2c3715SXin Lifor such a notice.
366*bf2c3715SXin Li
367*bf2c3715SXin LiYou may add additional accurate notices of copyright ownership.
368*bf2c3715SXin Li
369*bf2c3715SXin LiExhibit B - "Incompatible With Secondary Licenses" Notice
370*bf2c3715SXin Li---------------------------------------------------------
371*bf2c3715SXin Li
372*bf2c3715SXin Li  This Source Code Form is "Incompatible With Secondary Licenses", as
373*bf2c3715SXin Li  defined by the Mozilla Public License, v. 2.0.
374