Skip to content

License of generated code #376

@Dav1dde

Description

@Dav1dde

I am the maintainer/author of glad, a code generation tool which uses the specs to generate Code for multiple languages, C/C++, Nim, Volt, D, Rust etc.

Now the issue has come up multiple times what license the generated code has:

To summarize the specs are Apache v2 licensed and would mean derivative work has to include the notice file, but the code is just loosely related to the original specs (completely transformed from XML to code). But on the other hand Vulkan explicitly contains this section:

As an exception, if you use this Software to generate code and portions of
this Software are embedded into the generated code as a result, you may
redistribute such product without providing attribution as would otherwise
be required by Sections 4(a), 4(b) and 4(d) of the License.

Could you clarify what the actual correct license for generated code is and if possible clarify this in the specs/specs repository?

From what I can see other projects that are also based on the XML specs also license the code generated not based on the Apache v2 (glbinding just says MIT).

Libepoxy uses the wording The generated code is derived from Khronos's xml files, which appear under the following license in their "COPYING".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions