Skip to content

Third-Party Dependencies

Handbook → Project Reference

Dependency maintenance, version pins, licences, and the notices distributed with Conjure.

Dependency Guides

  • JPEG XL
  • The editor fonts: how the Inter, Fira Code and JetBrains Mono archives are pinned and installed into bin/fonts

Licence and third-party notices

Conjure is licensed under the Apache License, Version 2.0. Four files carry that and the licences of the software it builds on:

File Content Written by
LICENSE, NOTICE the Apache licence text, unchanged; the copyright holders, "the Conjure contributors" tracked, not generated
THIRD_PARTY_NOTICES.md every third-party dependency of every platform with its pin and licence, and the licence text of each pinned one tools/third_party_notices.py, tracked
build/<tree>/bin/THIRD_PARTY_NOTICES.txt NOTICE, LICENSE and the licence text of what this tree links into conjure_shared and conjure_runtime the configure writes it, building conjure_runtime places it; an export that copies the runtime copies it into the game

A dependency is registered once, beside its pin in third_party/CMakeLists.txt, with conjure_third_party_notice(<id> NAME... VERSION <the pin> LICENSE_ID... SCOPE RUNTIME|EDITOR|BUILD FETCH <name> LICENSE_FILES <files in the fetched source>) (cmake/ConjureNotices.cmake documents every argument). VERSION is the tag the # tag <name> comment of the FetchContent_Declare line names, or, without a tag, the commit of its URL. The configure fails when VERSION differs from that pin, when a licence file of software the tree uses is missing, and when a FetchContent_Declare of that file has no notice naming it as FETCH. Software that is not fetched (a file tracked under someone else's licence, code that follows a published implementation), and code a fetched source embeds under a copyright of its own (jsmn in cgltf.h), keep their licence text in third_party/licenses/; a notice with FETCH names such a file with an absolute path, since its relative ones are read in the fetched source. libjxl and the three libraries it builds are pinned by archive SHA-256 in third_party/jxl.cmake, which third_party/CMakeLists.txt includes. Its URLs are built from variables, so neither the VERSION comparison nor the declaration scan reaches that file, and its own probes check its four notices (JPEG XL).

SCOPE says where a dependency ends up. RUNTIME software is linked into conjure_shared or conjure_runtime, or shipped as a file next to them. EDITOR software reaches only a tree that builds the editor: it is part of that tree's runtime notices and of no Distribution build. BUILD software is a build or test tool that reaches no binary that ships.

After changing a pin or a notice, regenerate the tracked document and commit it with the change:

python tools/third_party_notices.py --build-dir build/<tree>            # write THIRD_PARTY_NOTICES.md
python tools/third_party_notices.py --build-dir build/<tree> --check    # what the CTest entry notices.up_to_date runs

The tool rewrites the sections of the software the tree uses and keeps the others, so any tree can bring its own sections up to date; it stops when a kept section was written for another pin or licence than the tree registers, and then a tree that fetches that software has to run it. A Windows tree configured with -DCONJURE_RHI_VULKAN=ON (python tools/build.py --build-dir build/<name> --configure-only -- -DCONJURE_RHI_VULKAN=ON) fetches every pinned dependency at once, the Direct3D 12 headers included, which no Linux or macOS tree has. notices.tool is the self-test of the tool.

Note

.NET is found on the build machine instead of pinned, so its licence text is in no tracked file: each build copies LICENSE.txt and ThirdPartyNotices.txt of the .NET installation it links into its THIRD_PARTY_NOTICES.txt, and the configure warns when it finds neither.

Editor fonts

The editor's bundled fonts are data, not code, but they are distributed with every editor build, so each has a notice with SCOPE EDITOR beside its pin in third_party/CMakeLists.txt. All are under the SIL Open Font License 1.1 (OFL-1.1):

Notice Name Version Licence file
font_inter Inter v4.1 the archive's LICENSE.txt
font_fira_code Fira Code 6.2 none in the archive: the next entry is its licence
font_fira_code_license Fira Code licence 6.2 the repository's LICENSE at the release tag, fetched as its own pinned download
font_jetbrains_mono JetBrains Mono v2.304 the archive's OFL.txt

THIRD_PARTY_NOTICES.md lists the four entries with the scope Editor, each naming in its note the files it covers. The build copies each family's licence next to its fonts in bin/fonts as LICENSE-<Family>.txt. The fonts never reach a Distribution tree or an export, which copies named runtime files only.