Kotlin/Native 二进制文件的许可证文件

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.

You can find licenses for the third-party work used in Kotlin in our GitHub repository:

许可证文件 - 图1

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, you should always include 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 - Apache license 2.0 - Apache Harmony copyright notice
Apache Harmony
GWT
Guava
libbacktrace 3-clause BSD license with copyright notice
mimalloc MIT license Always include, unless you use the system memory allocator (the -Xallocator=std compiler option is set). For more information on allocators, see Kotlin/Native memory management
Unicode character database Unicode license

Specific targets require additional license files:

Project Targets Files to be included
MinGW-w64 headers and runtime libraries mingw* - MinGW-w64 runtime license - Winpthreads license
Musl (math implementation) wasm32 Musl copyright notice

None of these libraries require the distributed Kotlin/Native binaries to be open-sourced.

许可证文件 - 图2