# Kotlin/Native 二进制文件的许可证 和其它很多开源项目一样, Kotlin 依赖于第三方代码, 也就是说, Kotlin 项目包含一部分并不是由 JetBrains 或 Kotlin 编程语言贡献者们开发的代码. 有时这些代码是派生作品, 例如将 C++ 代码重写为 Kotlin. > **Note:** > 你可以在我们的 GitHub 仓库中找到 Kotlin 中使用的第三方作品的许可证: > > > > * [Kotlin 编译器](https://github.com/JetBrains/kotlin/tree/master/license/third_party) > > * [Kotlin/Native](https://github.com/JetBrains/kotlin/tree/master/kotlin-native/licenses/third_party) 具体来说, Kotlin/Native 编译器生成的二进制文件, 其中可能包含第三方代码, 数据或派生作品. 这意味着, Kotlin/Native 编译的二进制文件, 受第三方许可证的条款和条件的约束. 具体来说, 如果你分发一个 Kotlin/Native 编译的 [最终二进制文件](multiplatform-build-native-binaries.html), 你应该始终在你的二进制发行版中包含必要的许可证文件. 这些文件应该以你的发行版的使用者可以读取形式访问. 对于相应项目, 请你始终包含以下许可证文件: | 项目 | 需要包含的文件 | | --- | --- | | [Kotlin](https://kotlinlang.org/) | * [Apache License 2.0](https://github.com/JetBrains/kotlin/blob/master/license/LICENSE.txt) * [Apache Harmony 版权声明](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/harmony_NOTICE.txt) | | [Apache Harmony](https://harmony.apache.org/) | | [GWT](https://www.gwtproject.org/) | | [Guava](https://guava.dev) | | [libbacktrace](https://github.com/ianlancetaylor/libbacktrace) | [带有版权声明的 3-clause BSD license](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/libbacktrace_LICENSE.txt) | | [mimalloc](https://github.com/microsoft/mimalloc) | [MIT license](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/mimalloc_LICENSE.txt) 如果你使用 mimalloc 内存分配器而不是默认分配器(设置了 `-Xallocator=mimalloc` 编译器选项), 请包含这个许可证文件. | | [Unicode character database](https://www.unicode.org/) | [Unicode license](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/unicode_LICENSE.txt) | | Multi-producer/multi-consumer bounded queue | [版权声明](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/mpmc_queue_LICENSE.txt) | `mingwX64` 编译目标还要求额外的许可证文件: | 项目 | 需要包含的文件 | | --- | --- | | [MinGW-w64 头文件和运行时库](https://www.mingw-w64.org/) | * [MinGW-w64 运行时许可证](https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt) * [Winpthreads license](https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-libraries/winpthreads/COPYING) | > **Note:** > 注意, 这些库要求你分发的 Kotlin/Native 二进制文件开源.