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:

ProjectFiles to be included
Kotlin
  • Apache license 2.0
  • Apache Harmony copyright notice
  • Apache Harmony
    GWT
    Guava
    libbacktrace3-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 databaseUnicode license

    Specific targets require additional license files:

    ProjectTargetsFiles to be included
    MinGW-w64 headers and runtime librariesmingw*
  • MinGW-w64 runtime license
  • Winpthreads license
  • Musl (math implementation)wasm32Musl copyright notice

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

    许可证文件 - 图2