# License files for the Kotlin/Native binaries Like many other open-source projects, Kotlin relies on third-party code, meaning that the Kotlin project includes some code not developed by JetBrains or the Kotlin programming language contributors. Sometimes it is derived work, such as code rewritten from C++ to Kotlin. Note: You can find licenses for the third-party work used in Kotlin in our GitHub repository: * [Kotlin compiler](https://github.com/JetBrains/kotlin/tree/master/license/third_party) * [Kotlin/Native](https://github.com/JetBrains/kotlin/tree/master/kotlin-native/licenses/third_party) In particular, the Kotlin/Native compiler produces binaries that can include third-party code, data, or derived work. This means that the Kotlin/Native-compiled binaries are subject to the terms and conditions of the third-party licenses. In practice, if you distribute a Kotlin/Native-compiled [final binary](https://kotlinlang.org/docs/multiplatform/multiplatform-build-native-binaries.html), you should always include the necessary license files in your binary distribution. The files should be accessible to users of your distribution in a readable form. Always include the following license files for the corresponding projects: | Project |Files to be included | --------------------------------- | [Kotlin](https://kotlinlang.org/) | * [Apache License 2.0](https://github.com/JetBrains/kotlin/blob/master/license/LICENSE.txt) * [Apache Harmony copyright notice](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 with copyright notice](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) Include in case you use the mimalloc memory allocator instead of the default one (the `-Xallocator=mimalloc` compiler option is set). | | [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 |[Copyright notice](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/licenses/third_party/mpmc_queue_LICENSE.txt) | The `mingwX64` target requires additional license files: | Project |Files to be included | --------------------------------- | [MinGW-w64 headers and runtime libraries](https://www.mingw-w64.org/) | * [MinGW-w64 runtime license](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: None of these libraries require the distributed Kotlin/Native binaries to be open-sourced.