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:
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 Harmony | |
GWT | |
Guava | |
libbacktrace | 3-clause BSD license with copyright notice |
mimalloc |
Include in case you use the mimaloc memory allocator instead of the default one (the For more information on allocators, see Kotlin/Native memory management |
Unicode character database | Unicode license |
Multi-producer/multi-consumer bounded queue | Copyright notice |
The mingwX64
target requires additional license files:
Project | Files to be included |
---|---|
MinGW-w64 headers and runtime libraries |
None of these libraries require the distributed Kotlin/Native binaries to be open-sourced.