diff --git a/Cargo.toml b/Cargo.toml index 4d5dd3fa4..67c7edfbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,20 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. [workspace] [workspace.package] version = "0.1.0" edition = "2021" +license = "MPL-2.0" +authors = ["hikari_no_yume ", "Contributors to touchHLE"] [package] name = "touchHLE" version = { workspace = true } edition = { workspace = true } +license = { workspace = true } +authors = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..ee6256cdb --- /dev/null +++ b/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/README.md b/README.md index 685d01016..df8728ea3 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Please run `cargo fmt` and `cargo clippy` on your changes before committing. For touchHLE © 2023 hikari\_no\_yume and other contributors. -License TBD for the source code of touchHLE itself (not its dependencies). +The source code of touchHLE itself (not its dependencies) is licensed under the Mozilla Public License, version 2.0. Due to license compatibility concerns, binaries are under the GNU General Public License version 3 or later. diff --git a/build.rs b/build.rs index 2a15805c7..8d86c8356 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use cargo_license::{get_dependencies_from_cargo_lock, GetDependenciesOpt}; use std::fmt::Write; use std::path::{Path, PathBuf}; diff --git a/src/abi.rs b/src/abi.rs index d922f057d..97a8704d4 100644 --- a/src/abi.rs +++ b/src/abi.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Traits for application binary interface (ABI) translation, in particular //! calling conventions. //! diff --git a/src/audio.rs b/src/audio.rs index 8b86652cc..b18fe5a56 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Audio file decoding and OpenAL bindings. //! //! The audio file decoding support is an abstraction over various libraries diff --git a/src/audio/ima4.rs b/src/audio/ima4.rs index 0ca3e3f45..6c8b9a337 100644 --- a/src/audio/ima4.rs +++ b/src/audio/ima4.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Decoder for the Apple IMA4 ADPCM format (FourCC: `ima4`) //! //! Resources on IMA ADPCM in general: diff --git a/src/audio/openal_soft_wrapper/Cargo.toml b/src/audio/openal_soft_wrapper/Cargo.toml index bab2a296b..dcc393ead 100644 --- a/src/audio/openal_soft_wrapper/Cargo.toml +++ b/src/audio/openal_soft_wrapper/Cargo.toml @@ -1,7 +1,12 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. [package] name = "touchHLE_openal_soft_wrapper" version = { workspace = true } edition = { workspace = true } +license = { workspace = true } +authors = { workspace = true } [lib] path = "lib.rs" diff --git a/src/audio/openal_soft_wrapper/build.rs b/src/audio/openal_soft_wrapper/build.rs index 5ae01fba1..c45676fc0 100644 --- a/src/audio/openal_soft_wrapper/build.rs +++ b/src/audio/openal_soft_wrapper/build.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use std::path::Path; /*fn rerun_if_changed(path: &Path) { diff --git a/src/audio/openal_soft_wrapper/lib.rs b/src/audio/openal_soft_wrapper/lib.rs index ed4f0049d..8ccea68e6 100644 --- a/src/audio/openal_soft_wrapper/lib.rs +++ b/src/audio/openal_soft_wrapper/lib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! OpenAL bindings (linked to OpenAL Soft). //! //! See `vendor/openal-soft/AL/` for the headers this should mirror. diff --git a/src/bundle.rs b/src/bundle.rs index 194340583..d98cfe192 100644 --- a/src/bundle.rs +++ b/src/bundle.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Utilities for working with bundles. So far we are only interested in the //! application bundle. //! diff --git a/src/cpu.rs b/src/cpu.rs index d81463628..fb374a508 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! CPU emulation. //! //! Implemented using the C++ library dynarmic, which is a dynamic recompiler. diff --git a/src/cpu/dynarmic_wrapper/Cargo.toml b/src/cpu/dynarmic_wrapper/Cargo.toml index f878461e2..abacf19a3 100644 --- a/src/cpu/dynarmic_wrapper/Cargo.toml +++ b/src/cpu/dynarmic_wrapper/Cargo.toml @@ -1,7 +1,12 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. [package] name = "touchHLE_dynarmic_wrapper" version = { workspace = true } edition = { workspace = true } +license = { workspace = true } +authors = { workspace = true } [lib] path = "lib.rs" diff --git a/src/cpu/dynarmic_wrapper/build.rs b/src/cpu/dynarmic_wrapper/build.rs index 16b366dcf..aa5548949 100644 --- a/src/cpu/dynarmic_wrapper/build.rs +++ b/src/cpu/dynarmic_wrapper/build.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use std::path::Path; fn rerun_if_changed(path: &Path) { diff --git a/src/cpu/dynarmic_wrapper/lib.cpp b/src/cpu/dynarmic_wrapper/lib.cpp index 898f707f7..0f36a46e3 100644 --- a/src/cpu/dynarmic_wrapper/lib.cpp +++ b/src/cpu/dynarmic_wrapper/lib.cpp @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ #include #include diff --git a/src/cpu/dynarmic_wrapper/lib.rs b/src/cpu/dynarmic_wrapper/lib.rs index d7b3783ee..d3daf754c 100644 --- a/src/cpu/dynarmic_wrapper/lib.rs +++ b/src/cpu/dynarmic_wrapper/lib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! This is separated out into its own package so that we can avoid rebuilding //! dynarmic more often than necessary, and to improve build-time parallelism. diff --git a/src/dyld.rs b/src/dyld.rs index d4dd81d2b..752ad6291 100644 --- a/src/dyld.rs +++ b/src/dyld.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Dynamic linker. //! //! iPhone OS's dynamic linker, `dyld`, is the namesake of this module. diff --git a/src/dyld/constant_lists.rs b/src/dyld/constant_lists.rs index 13c828ccc..38fcc75bd 100644 --- a/src/dyld/constant_lists.rs +++ b/src/dyld/constant_lists.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Separate module just for the constant lists, since this will probably be a //! very long and frequently-updated list. diff --git a/src/dyld/function_lists.rs b/src/dyld/function_lists.rs index d81a0b30f..4c370c542 100644 --- a/src/dyld/function_lists.rs +++ b/src/dyld/function_lists.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Separate module just for the function lists, since this will probably be a //! very long and frequently-updated list. diff --git a/src/font.rs b/src/font.rs index d405ec3e4..c136d13c3 100644 --- a/src/font.rs +++ b/src/font.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Text layout and font rasterization abstraction. //! //! This is implemented using the [rusttype] library. All usage of that library diff --git a/src/frameworks.rs b/src/frameworks.rs index 90a329473..3773113a0 100644 --- a/src/frameworks.rs +++ b/src/frameworks.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Our implementations of various frameworks. //! //! Each child module should be named after the framework it implements. diff --git a/src/frameworks/audio_toolbox.rs b/src/frameworks/audio_toolbox.rs index 6c78cc79f..cd0ae6a5f 100644 --- a/src/frameworks/audio_toolbox.rs +++ b/src/frameworks/audio_toolbox.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Audio Toolbox framework. pub mod audio_file; diff --git a/src/frameworks/audio_toolbox/audio_file.rs b/src/frameworks/audio_toolbox/audio_file.rs index 85b96e165..44a4c1898 100644 --- a/src/frameworks/audio_toolbox/audio_file.rs +++ b/src/frameworks/audio_toolbox/audio_file.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `AudioFile.h` (Audio File Services) use crate::audio; // Keep this module namespaced to avoid confusion diff --git a/src/frameworks/audio_toolbox/audio_queue.rs b/src/frameworks/audio_toolbox/audio_queue.rs index 435248b3a..5893752b6 100644 --- a/src/frameworks/audio_toolbox/audio_queue.rs +++ b/src/frameworks/audio_toolbox/audio_queue.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `AudioQueue.h` (Audio Queue Services) //! //! The audio playback here is mapped onto OpenAL Soft for convenience. diff --git a/src/frameworks/core_animation.rs b/src/frameworks/core_animation.rs index 2a27529af..45de3c7b8 100644 --- a/src/frameworks/core_animation.rs +++ b/src/frameworks/core_animation.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Core Animation framework. pub mod ca_eagl_layer; diff --git a/src/frameworks/core_animation/ca_eagl_layer.rs b/src/frameworks/core_animation/ca_eagl_layer.rs index ea115e5b8..e6690a023 100644 --- a/src/frameworks/core_animation/ca_eagl_layer.rs +++ b/src/frameworks/core_animation/ca_eagl_layer.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CAEAGLLayer`. use super::ca_layer::CALayerHostObject; diff --git a/src/frameworks/core_animation/ca_layer.rs b/src/frameworks/core_animation/ca_layer.rs index 35248b77b..eacddae77 100644 --- a/src/frameworks/core_animation/ca_layer.rs +++ b/src/frameworks/core_animation/ca_layer.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CALayer`. use crate::objc::{id, msg, nil, objc_classes, release, ClassExports, HostObject}; diff --git a/src/frameworks/core_audio_types.rs b/src/frameworks/core_audio_types.rs index c1a924726..efb7ad26d 100644 --- a/src/frameworks/core_audio_types.rs +++ b/src/frameworks/core_audio_types.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Core Audio Types framework. (Yes, it's not part of Core Audio?) use crate::mem::SafeRead; diff --git a/src/frameworks/core_foundation.rs b/src/frameworks/core_foundation.rs index 081ba8865..b79be40f6 100644 --- a/src/frameworks/core_foundation.rs +++ b/src/frameworks/core_foundation.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Core Foundation framework. //! //! In Apple's implementation, this is a layer independent of, or below, diff --git a/src/frameworks/core_foundation/cf_allocator.rs b/src/frameworks/core_foundation/cf_allocator.rs index efe687592..6d3dbc8f5 100644 --- a/src/frameworks/core_foundation/cf_allocator.rs +++ b/src/frameworks/core_foundation/cf_allocator.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFAllocator`. Currently there is no actual support for multiple allocators. use super::CFTypeRef; diff --git a/src/frameworks/core_foundation/cf_bundle.rs b/src/frameworks/core_foundation/cf_bundle.rs index 98d8c8d39..5f74a59ff 100644 --- a/src/frameworks/core_foundation/cf_bundle.rs +++ b/src/frameworks/core_foundation/cf_bundle.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFBundle`. //! //! This is not even toll-free bridged to `NSBundle` in Apple's implementation, diff --git a/src/frameworks/core_foundation/cf_run_loop.rs b/src/frameworks/core_foundation/cf_run_loop.rs index 721a78876..545640e7b 100644 --- a/src/frameworks/core_foundation/cf_run_loop.rs +++ b/src/frameworks/core_foundation/cf_run_loop.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFRunLoop`. //! //! This is not even toll-free bridged to `NSRunLoop` in Apple's implementation, diff --git a/src/frameworks/core_foundation/cf_string.rs b/src/frameworks/core_foundation/cf_string.rs index 68934b901..54d464e19 100644 --- a/src/frameworks/core_foundation/cf_string.rs +++ b/src/frameworks/core_foundation/cf_string.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFString`. //! //! This is toll-free bridged to `CFURL` in Apple's implementation. Here it is diff --git a/src/frameworks/core_foundation/cf_type.rs b/src/frameworks/core_foundation/cf_type.rs index 56dc6ba40..304e8f630 100644 --- a/src/frameworks/core_foundation/cf_type.rs +++ b/src/frameworks/core_foundation/cf_type.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFType` (type-generic functions etc). use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/frameworks/core_foundation/cf_url.rs b/src/frameworks/core_foundation/cf_url.rs index 8ff38e664..3aaa2efd2 100644 --- a/src/frameworks/core_foundation/cf_url.rs +++ b/src/frameworks/core_foundation/cf_url.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CFURL`. //! //! This is toll-free bridged to `CFURL` in Apple's implementation. Here it is diff --git a/src/frameworks/core_graphics.rs b/src/frameworks/core_graphics.rs index e8585cbaa..03a8f513d 100644 --- a/src/frameworks/core_graphics.rs +++ b/src/frameworks/core_graphics.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Core Graphics framework. pub mod cg_bitmap_context; diff --git a/src/frameworks/core_graphics/cg_bitmap_context.rs b/src/frameworks/core_graphics/cg_bitmap_context.rs index c615f308c..132f242c0 100644 --- a/src/frameworks/core_graphics/cg_bitmap_context.rs +++ b/src/frameworks/core_graphics/cg_bitmap_context.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CGBitmapContext.h` use super::cg_color_space::{kCGColorSpaceGenericRGB, CGColorSpaceHostObject, CGColorSpaceRef}; diff --git a/src/frameworks/core_graphics/cg_color_space.rs b/src/frameworks/core_graphics/cg_color_space.rs index 0776028a3..f3877115c 100644 --- a/src/frameworks/core_graphics/cg_color_space.rs +++ b/src/frameworks/core_graphics/cg_color_space.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CGColorSpace.h` use crate::dyld::{export_c_func, ConstantExports, FunctionExports, HostConstant}; diff --git a/src/frameworks/core_graphics/cg_context.rs b/src/frameworks/core_graphics/cg_context.rs index 736c28876..09289b6a7 100644 --- a/src/frameworks/core_graphics/cg_context.rs +++ b/src/frameworks/core_graphics/cg_context.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CGContext.h` use super::cg_bitmap_context; diff --git a/src/frameworks/core_graphics/cg_geometry.rs b/src/frameworks/core_graphics/cg_geometry.rs index 201eb9fa3..890e71603 100644 --- a/src/frameworks/core_graphics/cg_geometry.rs +++ b/src/frameworks/core_graphics/cg_geometry.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CGGeometry.h` (`CGPoint`, `CGSize`, `CGRect`, etc) use super::CGFloat; diff --git a/src/frameworks/core_graphics/cg_image.rs b/src/frameworks/core_graphics/cg_image.rs index 717d858b0..fcfefd3e2 100644 --- a/src/frameworks/core_graphics/cg_image.rs +++ b/src/frameworks/core_graphics/cg_image.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `CGImage.h` pub type CGImageAlphaInfo = u32; diff --git a/src/frameworks/foundation.rs b/src/frameworks/foundation.rs index cdf914a36..e9f2fc211 100644 --- a/src/frameworks/foundation.rs +++ b/src/frameworks/foundation.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The Foundation framework. //! //! A concept that Foundation really likes is "class clusters": abstract classes diff --git a/src/frameworks/foundation/ns_array.rs b/src/frameworks/foundation/ns_array.rs index e1eb0332f..b9a1a9bcf 100644 --- a/src/frameworks/foundation/ns_array.rs +++ b/src/frameworks/foundation/ns_array.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSArray` class cluster, including `NSMutableArray`. use super::{ns_keyed_unarchiver, NSUInteger}; diff --git a/src/frameworks/foundation/ns_autorelease_pool.rs b/src/frameworks/foundation/ns_autorelease_pool.rs index f1499c2e0..3415a2a53 100644 --- a/src/frameworks/foundation/ns_autorelease_pool.rs +++ b/src/frameworks/foundation/ns_autorelease_pool.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSAutoreleasePool`. use crate::mem::MutVoidPtr; diff --git a/src/frameworks/foundation/ns_bundle.rs b/src/frameworks/foundation/ns_bundle.rs index a855097aa..4e3d8ecf7 100644 --- a/src/frameworks/foundation/ns_bundle.rs +++ b/src/frameworks/foundation/ns_bundle.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSBundle`. use super::ns_string::from_rust_string; diff --git a/src/frameworks/foundation/ns_character_set.rs b/src/frameworks/foundation/ns_character_set.rs index 50466a635..4079ea336 100644 --- a/src/frameworks/foundation/ns_character_set.rs +++ b/src/frameworks/foundation/ns_character_set.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSCharacterSet` class cluster, including `NSMutableCharacterSet`. use super::ns_string; diff --git a/src/frameworks/foundation/ns_coder.rs b/src/frameworks/foundation/ns_coder.rs index 65bb477b4..35313f9fc 100644 --- a/src/frameworks/foundation/ns_coder.rs +++ b/src/frameworks/foundation/ns_coder.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSCoder`. use crate::objc::{objc_classes, ClassExports}; diff --git a/src/frameworks/foundation/ns_data.rs b/src/frameworks/foundation/ns_data.rs index a8e62b66b..787ee8725 100644 --- a/src/frameworks/foundation/ns_data.rs +++ b/src/frameworks/foundation/ns_data.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSData` and `NSMutableData`. use super::NSUInteger; diff --git a/src/frameworks/foundation/ns_dictionary.rs b/src/frameworks/foundation/ns_dictionary.rs index d6f23bdac..22be19305 100644 --- a/src/frameworks/foundation/ns_dictionary.rs +++ b/src/frameworks/foundation/ns_dictionary.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSDictionary` class cluster, including `NSMutableDictionary`. use super::NSUInteger; diff --git a/src/frameworks/foundation/ns_fast_enumeration.rs b/src/frameworks/foundation/ns_fast_enumeration.rs index fe42da4fc..93d3db267 100644 --- a/src/frameworks/foundation/ns_fast_enumeration.rs +++ b/src/frameworks/foundation/ns_fast_enumeration.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Helpers for the `NSFastEnumeration` protocol. //! //! The protocol is just: diff --git a/src/frameworks/foundation/ns_file_manager.rs b/src/frameworks/foundation/ns_file_manager.rs index 39c811207..4bf411f1f 100644 --- a/src/frameworks/foundation/ns_file_manager.rs +++ b/src/frameworks/foundation/ns_file_manager.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSFileManager` etc. use super::{ns_array, ns_string, NSUInteger}; diff --git a/src/frameworks/foundation/ns_keyed_unarchiver.rs b/src/frameworks/foundation/ns_keyed_unarchiver.rs index 9be3f074e..e254dadd5 100644 --- a/src/frameworks/foundation/ns_keyed_unarchiver.rs +++ b/src/frameworks/foundation/ns_keyed_unarchiver.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSKeyedUnarchiver` and deserialization of its object graph format. //! //! Resources: diff --git a/src/frameworks/foundation/ns_locale.rs b/src/frameworks/foundation/ns_locale.rs index b46e0d1cc..4ac4241f4 100644 --- a/src/frameworks/foundation/ns_locale.rs +++ b/src/frameworks/foundation/ns_locale.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSLocale`. use super::{ns_array, ns_string}; diff --git a/src/frameworks/foundation/ns_null.rs b/src/frameworks/foundation/ns_null.rs index 16709eabf..aa2ce92a0 100644 --- a/src/frameworks/foundation/ns_null.rs +++ b/src/frameworks/foundation/ns_null.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSNull`. use crate::objc::{id, objc_classes, ClassExports, TrivialHostObject}; diff --git a/src/frameworks/foundation/ns_object.rs b/src/frameworks/foundation/ns_object.rs index cd45dcb63..8a0d5c570 100644 --- a/src/frameworks/foundation/ns_object.rs +++ b/src/frameworks/foundation/ns_object.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSObject`, the root of most class hierarchies in Objective-C. //! //! Resources: diff --git a/src/frameworks/foundation/ns_process_info.rs b/src/frameworks/foundation/ns_process_info.rs index abb45025b..66a09f88e 100644 --- a/src/frameworks/foundation/ns_process_info.rs +++ b/src/frameworks/foundation/ns_process_info.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSProcessInfo`. use super::NSTimeInterval; diff --git a/src/frameworks/foundation/ns_run_loop.rs b/src/frameworks/foundation/ns_run_loop.rs index 7ba01b0ab..9982082f4 100644 --- a/src/frameworks/foundation/ns_run_loop.rs +++ b/src/frameworks/foundation/ns_run_loop.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSRunLoop`. //! //! Resources: diff --git a/src/frameworks/foundation/ns_set.rs b/src/frameworks/foundation/ns_set.rs index 33224b011..e54dd9c4c 100644 --- a/src/frameworks/foundation/ns_set.rs +++ b/src/frameworks/foundation/ns_set.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSSet` class cluster, including `NSMutableSet` and `NSCountedSet`. use super::ns_dictionary::DictionaryHostObject; diff --git a/src/frameworks/foundation/ns_string.rs b/src/frameworks/foundation/ns_string.rs index 359dd0879..f755006c0 100644 --- a/src/frameworks/foundation/ns_string.rs +++ b/src/frameworks/foundation/ns_string.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSString` class cluster, including `NSMutableString`. use super::ns_array; diff --git a/src/frameworks/foundation/ns_thread.rs b/src/frameworks/foundation/ns_thread.rs index 356d269e8..efdb93cf0 100644 --- a/src/frameworks/foundation/ns_thread.rs +++ b/src/frameworks/foundation/ns_thread.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSThread`. use crate::objc::{objc_classes, ClassExports}; diff --git a/src/frameworks/foundation/ns_timer.rs b/src/frameworks/foundation/ns_timer.rs index 5593eeb5e..274153ffc 100644 --- a/src/frameworks/foundation/ns_timer.rs +++ b/src/frameworks/foundation/ns_timer.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSTimer`. use super::ns_run_loop::NSDefaultRunLoopMode; diff --git a/src/frameworks/foundation/ns_url.rs b/src/frameworks/foundation/ns_url.rs index b95ab5dd4..a3df145a6 100644 --- a/src/frameworks/foundation/ns_url.rs +++ b/src/frameworks/foundation/ns_url.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `NSURL`. use super::ns_string::{to_rust_string, NSUTF8StringEncoding}; diff --git a/src/frameworks/foundation/ns_value.rs b/src/frameworks/foundation/ns_value.rs index 7b389af9c..3d8b894e2 100644 --- a/src/frameworks/foundation/ns_value.rs +++ b/src/frameworks/foundation/ns_value.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The `NSValue` class cluster, including `NSNumber`. use super::NSUInteger; diff --git a/src/frameworks/mac_types.rs b/src/frameworks/mac_types.rs index ee2d4c0fd..1247c10d5 100644 --- a/src/frameworks/mac_types.rs +++ b/src/frameworks/mac_types.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `MacTypes.h` //! //! It's unclear if this belongs to some particular "framework", but it is diff --git a/src/frameworks/openal.rs b/src/frameworks/openal.rs index 443a28b50..ef769de96 100644 --- a/src/frameworks/openal.rs +++ b/src/frameworks/openal.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! OpenAL. //! //! This is a thin layer on top of OpenAL Soft, see [crate::audio::openal]. diff --git a/src/frameworks/opengles.rs b/src/frameworks/opengles.rs index 9f41dc866..4b874f7a6 100644 --- a/src/frameworks/opengles.rs +++ b/src/frameworks/opengles.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! OpenGL ES and EAGL. //! //! The OpenGL ES implementation is arranged in layers: diff --git a/src/frameworks/opengles/eagl.rs b/src/frameworks/opengles/eagl.rs index ebb0a923d..8e8aee299 100644 --- a/src/frameworks/opengles/eagl.rs +++ b/src/frameworks/opengles/eagl.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! EAGL. use super::{GLES1OnGL2, GLES}; diff --git a/src/frameworks/opengles/gles1_on_gl2.rs b/src/frameworks/opengles/gles1_on_gl2.rs index 4f87c918d..4d0797bf5 100644 --- a/src/frameworks/opengles/gles1_on_gl2.rs +++ b/src/frameworks/opengles/gles1_on_gl2.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Implementation of OpenGL ES 1.1 on top of OpenGL 2.1 compatibility profile. //! //! The standard graphics drivers on most desktop operating systems do not diff --git a/src/frameworks/opengles/gles_generic.rs b/src/frameworks/opengles/gles_generic.rs index 52673ed2f..118f3bc6b 100644 --- a/src/frameworks/opengles/gles_generic.rs +++ b/src/frameworks/opengles/gles_generic.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Generic OpenGL ES 1.1 interface. //! //! Unfortunately this does not provide the types and constants, so the correct diff --git a/src/frameworks/opengles/gles_guest.rs b/src/frameworks/opengles/gles_guest.rs index 0a8bb25df..4915bdb17 100644 --- a/src/frameworks/opengles/gles_guest.rs +++ b/src/frameworks/opengles/gles_guest.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Wrapper functions exposing OpenGL ES to the guest. use super::GLES; diff --git a/src/frameworks/uikit.rs b/src/frameworks/uikit.rs index 7d4c2470e..3aa24c545 100644 --- a/src/frameworks/uikit.rs +++ b/src/frameworks/uikit.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! The UIKit framework. //! //! For the time being the focus of this project is on running games, which are diff --git a/src/frameworks/uikit/ui_accelerometer.rs b/src/frameworks/uikit/ui_accelerometer.rs index fcd842040..49259104a 100644 --- a/src/frameworks/uikit/ui_accelerometer.rs +++ b/src/frameworks/uikit/ui_accelerometer.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIAccelerometer`. //! //! Useful resources: diff --git a/src/frameworks/uikit/ui_application.rs b/src/frameworks/uikit/ui_application.rs index 78df0ff06..73b89fe62 100644 --- a/src/frameworks/uikit/ui_application.rs +++ b/src/frameworks/uikit/ui_application.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIApplication` and `UIApplicationMain`. use super::ui_device::*; diff --git a/src/frameworks/uikit/ui_device.rs b/src/frameworks/uikit/ui_device.rs index c3cdc40e0..d802f21d8 100644 --- a/src/frameworks/uikit/ui_device.rs +++ b/src/frameworks/uikit/ui_device.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIDevice.h` use crate::frameworks::foundation::NSInteger; diff --git a/src/frameworks/uikit/ui_event.rs b/src/frameworks/uikit/ui_event.rs index 11fc4e966..6925e576f 100644 --- a/src/frameworks/uikit/ui_event.rs +++ b/src/frameworks/uikit/ui_event.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIEvent`. use crate::objc::{objc_classes, ClassExports}; diff --git a/src/frameworks/uikit/ui_font.rs b/src/frameworks/uikit/ui_font.rs index af73f7128..168cda0b9 100644 --- a/src/frameworks/uikit/ui_font.rs +++ b/src/frameworks/uikit/ui_font.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIFont`. use super::ui_graphics::UIGraphicsGetCurrentContext; diff --git a/src/frameworks/uikit/ui_graphics.rs b/src/frameworks/uikit/ui_graphics.rs index 68595d5d6..80a655481 100644 --- a/src/frameworks/uikit/ui_graphics.rs +++ b/src/frameworks/uikit/ui_graphics.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIGraphics.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/frameworks/uikit/ui_nib.rs b/src/frameworks/uikit/ui_nib.rs index 368cef3b0..8a5a55937 100644 --- a/src/frameworks/uikit/ui_nib.rs +++ b/src/frameworks/uikit/ui_nib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UINib` and loading of nib files. //! //! Resources: diff --git a/src/frameworks/uikit/ui_responder.rs b/src/frameworks/uikit/ui_responder.rs index cc8404f03..3c4bceb32 100644 --- a/src/frameworks/uikit/ui_responder.rs +++ b/src/frameworks/uikit/ui_responder.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIResponder`. use crate::objc::{id, objc_classes, ClassExports}; diff --git a/src/frameworks/uikit/ui_screen.rs b/src/frameworks/uikit/ui_screen.rs index b2d870d30..b148a10a7 100644 --- a/src/frameworks/uikit/ui_screen.rs +++ b/src/frameworks/uikit/ui_screen.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIScreen`. use crate::frameworks::core_graphics::{CGPoint, CGRect, CGSize}; diff --git a/src/frameworks/uikit/ui_touch.rs b/src/frameworks/uikit/ui_touch.rs index 7c3645b7d..87387d1a4 100644 --- a/src/frameworks/uikit/ui_touch.rs +++ b/src/frameworks/uikit/ui_touch.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UITouch`. use super::ui_view::UIViewHostObject; diff --git a/src/frameworks/uikit/ui_view.rs b/src/frameworks/uikit/ui_view.rs index 7487f4af5..28253f223 100644 --- a/src/frameworks/uikit/ui_view.rs +++ b/src/frameworks/uikit/ui_view.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIView`. use crate::frameworks::core_graphics::{CGPoint, CGRect, CGSize}; diff --git a/src/frameworks/uikit/ui_window.rs b/src/frameworks/uikit/ui_window.rs index 8e7e58862..6c0a2bd86 100644 --- a/src/frameworks/uikit/ui_window.rs +++ b/src/frameworks/uikit/ui_window.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `UIWindow`. use crate::objc::{objc_classes, ClassExports}; diff --git a/src/fs.rs b/src/fs.rs index 2018d9a9f..078266482 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Virtual filesystem, or "guest filesystem". //! //! This lets us put files and directories where the guest app expects them to diff --git a/src/image.rs b/src/image.rs index 15e0c76c0..d46b55fd8 100644 --- a/src/image.rs +++ b/src/image.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Image decoding. Currently only supports PNG. //! //! Implemented as a wrapper around the C library stb_image, since it supports diff --git a/src/image/stb_image_wrapper/Cargo.toml b/src/image/stb_image_wrapper/Cargo.toml index 8f7c5d570..498b71973 100644 --- a/src/image/stb_image_wrapper/Cargo.toml +++ b/src/image/stb_image_wrapper/Cargo.toml @@ -1,7 +1,12 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. [package] name = "touchHLE_stb_image_wrapper" version = { workspace = true } edition = { workspace = true } +license = { workspace = true } +authors = { workspace = true } [lib] path = "lib.rs" diff --git a/src/image/stb_image_wrapper/build.rs b/src/image/stb_image_wrapper/build.rs index 069b787cb..1f6462ee3 100644 --- a/src/image/stb_image_wrapper/build.rs +++ b/src/image/stb_image_wrapper/build.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use std::path::Path; fn rerun_if_changed(path: &Path) { diff --git a/src/image/stb_image_wrapper/lib.c b/src/image/stb_image_wrapper/lib.c index 2b30bdc88..e7d4f6591 100644 --- a/src/image/stb_image_wrapper/lib.c +++ b/src/image/stb_image_wrapper/lib.c @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ #define STB_IMAGE_IMPLEMENTATION #define STB_ONLY_PNG #define STB_NO_STDIO diff --git a/src/image/stb_image_wrapper/lib.rs b/src/image/stb_image_wrapper/lib.rs index 30e6ca6b4..cc02349a3 100644 --- a/src/image/stb_image_wrapper/lib.rs +++ b/src/image/stb_image_wrapper/lib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! This is separated out into its own package so that we can avoid rebuilding //! stb_image more often than necessary, and to improve build-time parallelism. diff --git a/src/libc.rs b/src/libc.rs index 8ce23fe17..ce87df7d9 100644 --- a/src/libc.rs +++ b/src/libc.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Our implementations of various things that Apple's libSystem would provide. //! On other platforms these are part of the "libc", so let's call it that. //! diff --git a/src/libc/ctype.rs b/src/libc/ctype.rs index f232aaa63..b597fe964 100644 --- a/src/libc/ctype.rs +++ b/src/libc/ctype.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `ctype.h` use crate::abi::GuestFunction; diff --git a/src/libc/cxxabi.rs b/src/libc/cxxabi.rs index d8a00cac5..ead0a6cba 100644 --- a/src/libc/cxxabi.rs +++ b/src/libc/cxxabi.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `cxxabi.h` //! //! Resources: diff --git a/src/libc/dlfcn.rs b/src/libc/dlfcn.rs index a998a65f6..2cfe0c785 100644 --- a/src/libc/dlfcn.rs +++ b/src/libc/dlfcn.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `dlfcn.h` (`dlopen()` and friends) use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/errno.rs b/src/libc/errno.rs index 91da7699a..d367a9761 100644 --- a/src/libc/errno.rs +++ b/src/libc/errno.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `errno.h` pub const EPERM: i32 = 1; diff --git a/src/libc/keymgr.rs b/src/libc/keymgr.rs index d3a5e3fd4..771d8028f 100644 --- a/src/libc/keymgr.rs +++ b/src/libc/keymgr.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `keymgr.h` (KeyMgr). //! //! KeyMgr's only documentation seems to be in its [public source code](https://github.com/apple-opensource/keymgr). diff --git a/src/libc/mach_thread_info.rs b/src/libc/mach_thread_info.rs index 31d60806f..30858eebb 100644 --- a/src/libc/mach_thread_info.rs +++ b/src/libc/mach_thread_info.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `mach/thread_info.h` //! //! This is extremely undocumented. :( diff --git a/src/libc/mach_time.rs b/src/libc/mach_time.rs index 578615431..ce0772b08 100644 --- a/src/libc/mach_time.rs +++ b/src/libc/mach_time.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `mach_time.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/math.rs b/src/libc/math.rs index e7e5922ba..4b19790ce 100644 --- a/src/libc/math.rs +++ b/src/libc/math.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `math.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/pthread.rs b/src/libc/pthread.rs index 7d773ffef..8794c5d75 100644 --- a/src/libc/pthread.rs +++ b/src/libc/pthread.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! POSIX Threads implementation. //! //! The pthread API often wants functions to check some precondition and return diff --git a/src/libc/pthread/key.rs b/src/libc/pthread/key.rs index 0bcbe71f5..ef9e9c5a0 100644 --- a/src/libc/pthread/key.rs +++ b/src/libc/pthread/key.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Thread-specific data keys. use crate::abi::GuestFunction; diff --git a/src/libc/pthread/mutex.rs b/src/libc/pthread/mutex.rs index ac44f63c2..1dac237c3 100644 --- a/src/libc/pthread/mutex.rs +++ b/src/libc/pthread/mutex.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Mutexes. use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/pthread/once.rs b/src/libc/pthread/once.rs index d9e0b8b9d..3d9bcfb4c 100644 --- a/src/libc/pthread/once.rs +++ b/src/libc/pthread/once.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `pthread_once`. use crate::abi::GuestFunction; diff --git a/src/libc/pthread/thread.rs b/src/libc/pthread/thread.rs index e9712e763..1daefc703 100644 --- a/src/libc/pthread/thread.rs +++ b/src/libc/pthread/thread.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Threads. use crate::abi::GuestFunction; diff --git a/src/libc/stdio.rs b/src/libc/stdio.rs index ec895ceb8..e9a043dca 100644 --- a/src/libc/stdio.rs +++ b/src/libc/stdio.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `stdio.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/stdio/printf.rs b/src/libc/stdio/printf.rs index 6be63df2b..f86139873 100644 --- a/src/libc/stdio/printf.rs +++ b/src/libc/stdio/printf.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `printf` function family. use crate::abi::VAList; diff --git a/src/libc/stdlib.rs b/src/libc/stdlib.rs index f581468ec..861dba4c2 100644 --- a/src/libc/stdlib.rs +++ b/src/libc/stdlib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `stdlib.h` use crate::abi::GuestFunction; diff --git a/src/libc/string.rs b/src/libc/string.rs index 407fd3b42..ad2328329 100644 --- a/src/libc/string.rs +++ b/src/libc/string.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `string.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/libc/time.rs b/src/libc/time.rs index 44368c876..16c0ad034 100644 --- a/src/libc/time.rs +++ b/src/libc/time.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! `time.h` use crate::dyld::{export_c_func, FunctionExports}; diff --git a/src/licenses.rs b/src/licenses.rs index 22742855c..c6ec88766 100644 --- a/src/licenses.rs +++ b/src/licenses.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ /// Prints copyright, authorship and license information. const MAIN_COPYRIGHT: &str = " diff --git a/src/log.rs b/src/log.rs index e3a9940c9..e140146ce 100644 --- a/src/log.rs +++ b/src/log.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ /// Prints a log message unconditionally. Use this for errors or warnings. /// /// The message is prefixed with the module path, so it is clear where it comes diff --git a/src/mach_o.rs b/src/mach_o.rs index 10f7b7f61..55ef578d0 100644 --- a/src/mach_o.rs +++ b/src/mach_o.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Reading of Mach-O files, the executable and library format on iPhone OS. //! Currently only handles executables. //! diff --git a/src/main.rs b/src/main.rs index 66a4d5bbe..1164cdfb9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! touchHLE is a high-level emulator (HLE) for iPhone OS applications. //! //! In various places, the terms "guest" and "host" are used to distinguish diff --git a/src/mem.rs b/src/mem.rs index 1d6df1574..ff4c27409 100644 --- a/src/mem.rs +++ b/src/mem.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Types related to the virtual memory of the emulated application, or the //! "guest memory". //! diff --git a/src/mem/allocator.rs b/src/mem/allocator.rs index 55b85e959..43f23ac3f 100644 --- a/src/mem/allocator.rs +++ b/src/mem/allocator.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use super::{GuestUSize, Mem, VAddr}; use std::num::NonZeroU32; diff --git a/src/objc.rs b/src/objc.rs index ec851caec..bc28d1a8f 100644 --- a/src/objc.rs +++ b/src/objc.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Objective-C runtime. //! //! Apple's [Programming with Objective-C](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html) diff --git a/src/objc/classes.rs b/src/objc/classes.rs index 5f64d599e..ee6bda33b 100644 --- a/src/objc/classes.rs +++ b/src/objc/classes.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C classes and metaclasses. //! //! Note that metaclasses are just a special case of classes. diff --git a/src/objc/classes/class_lists.rs b/src/objc/classes/class_lists.rs index 08f0e1598..5aee5c954 100644 --- a/src/objc/classes/class_lists.rs +++ b/src/objc/classes/class_lists.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Separate module just for the class lists, since this will probably be a //! very long and frequently-updated list. diff --git a/src/objc/messages.rs b/src/objc/messages.rs index 23a627d2f..98fa5fbf8 100644 --- a/src/objc/messages.rs +++ b/src/objc/messages.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C messaging (`objc_msgSend` and friends). //! //! Resources: diff --git a/src/objc/methods.rs b/src/objc/methods.rs index d038c1f88..e21164faa 100644 --- a/src/objc/methods.rs +++ b/src/objc/methods.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C methods. //! //! Resources: diff --git a/src/objc/objects.rs b/src/objc/objects.rs index 62e0dd150..f1bf32451 100644 --- a/src/objc/objects.rs +++ b/src/objc/objects.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C objects. //! //! Note that classes and metaclasses are objects too! diff --git a/src/objc/properties.rs b/src/objc/properties.rs index 9708c1e5e..edeeb79bd 100644 --- a/src/objc/properties.rs +++ b/src/objc/properties.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C properties. //! //! Note that these are not the same as instance variables (ivars), though diff --git a/src/objc/selectors.rs b/src/objc/selectors.rs index 69562856a..45ca99582 100644 --- a/src/objc/selectors.rs +++ b/src/objc/selectors.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Handling of Objective-C selectors. //! //! These are the names used to look up method implementations in Objective-C. diff --git a/src/stack.rs b/src/stack.rs index 2b5a45f9c..441bdafb6 100644 --- a/src/stack.rs +++ b/src/stack.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Utilities related to the stack. use crate::cpu::Cpu; diff --git a/src/window.rs b/src/window.rs index ab069eef8..0a91ca964 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Abstraction of window setup, OpenGL context creation and event handling. //! Also provides OpenGL bindings. //! diff --git a/src/window/gl.rs b/src/window/gl.rs index 0b7b00efd..27bb5ccab 100644 --- a/src/window/gl.rs +++ b/src/window/gl.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! OpenGL context creation etc. use super::Matrix; diff --git a/src/window/gl_bindings/Cargo.toml b/src/window/gl_bindings/Cargo.toml index 47f2335e3..b6778dad6 100644 --- a/src/window/gl_bindings/Cargo.toml +++ b/src/window/gl_bindings/Cargo.toml @@ -1,7 +1,12 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. [package] name = "touchHLE_gl_bindings" version = { workspace = true } edition = { workspace = true } +license = { workspace = true } +authors = { workspace = true } [lib] path = "lib.rs" diff --git a/src/window/gl_bindings/build.rs b/src/window/gl_bindings/build.rs index fa34cb8cc..60c6ef736 100644 --- a/src/window/gl_bindings/build.rs +++ b/src/window/gl_bindings/build.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ use gl_generator::{Api, Fallbacks, GlobalGenerator, Profile, Registry}; use std::fs::File; use std::path::PathBuf; diff --git a/src/window/gl_bindings/lib.rs b/src/window/gl_bindings/lib.rs index b1f0ce339..705577592 100644 --- a/src/window/gl_bindings/lib.rs +++ b/src/window/gl_bindings/lib.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! This package contains OpenGL bindings generated with the `gl_generator` //! crate. diff --git a/src/window/matrix.rs b/src/window/matrix.rs index 6f4cf135e..96453457f 100644 --- a/src/window/matrix.rs +++ b/src/window/matrix.rs @@ -1,3 +1,8 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ //! Enough of a matrix implementation to handle simple 2D rotations. /// Column-major.