Skip to content
Snippets Groups Projects
components.yml 1.63 KiB
#@ load("@ytt:template", "template")
#@ load("@ytt:data", "data")

#@ load("/components/toolchain/arch/mipsel.lib.yml", "mipsel_toolchain_components")
#@ load("/components/toolchain/arch/win32.lib.yml", "win32_toolchain_components")
#@ load("/components/toolchain/arch/win64.lib.yml", "win64_toolchain_components")

#@ load("/components/macos/macos.lib.yml", "macos_toolchain_components")

#@ load("/global_options.lib.yml", "options")
components:
  _: #@ template.replace(mipsel_toolchain_components)

  _: #@ template.replace(win64_toolchain_components)
  _: #@ template.replace(win32_toolchain_components)

  _: #@ template.replace(macos_toolchain_components)

add_to_path:
  - $ORCHESTRA_ROOT/bin
  - $ORCHESTRA_DOTDIR/support
environment:
  - PATCH_DIR: $ORCHESTRA_DOTDIR/patches
  - JOBS: #@ str(data.values.parallelism)
  #! TODO: maybe patching RPATH should not be a concern of Orchestra itself, but rather a post-install phase
  #!       Otherwise, it should be Orchestra to provide an RPATH_PLACEHOLDER, not the other way around
  - RPATH_PLACEHOLDER: #@ options["rpath_placeholder"]
  - QML2_IMPORT_PATH: $ORCHESTRA_ROOT/qml
  - QT_PLUGIN_PATH: $ORCHESTRA_ROOT/plugins
  - PKG_CONFIG_PATH: $ORCHESTRA_ROOT/lib/pkgconfig:$ORCHESTRA_ROOT/share/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
  - INSTALL_LINK_ONLY_PATH: $ORCHESTRA_ROOT/link-only
  - LIBGL_DRIVERS_PATH: $ORCHESTRA_ROOT/lib/dri${LIBGL_DRIVERS_PATH:+:${LIBGL_DRIVERS_PATH}}
  - PYTHONPATH: $ORCHESTRA_ROOT/lib/python${PYTHONPATH:+:${PYTHONPATH}}

paths: #@ data.values.paths or {}
remote_base_urls: #@ data.values.remote_base_urls or []
binary_archives: #@ data.values.binary_archives or []