AcademySoftwareFoundation / AcademySoftwareFoundation/rez

Variant agnostic build steps

Open
#394 3 comments 0 reactions 0 assignees View on GitHub
enhancement rez-build
Dominant language
Python
Stars
1.1k
Forks
369
Avg merge
12d 3h
Merged PRs (30d)
5

Description

Is there an existing way of executing project-level (i.e. variant agnostic) build steps for packages with variants? Our packages contain a target to build Sphinx docs which are the same across all variants, so ideally we would like to only build them once.

Currently Rez treats each variant as a separate cmake project, so `PROJECT_BINARY_DIR` points to the variant's root directory, not the project's. I had a look through the cmake env vars and variables, but couldn't find anything that represented the project-level build directory. I can work around this with some path hackery, but it seems error-prone.

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reading Rez's CMake integration and tracing how PROJECT_BINARY_DIR is set for each package variant. Determine whether a project-level build directory is already exposed through CMake variables or environment variables; done means providing a supported way to run the Sphinx documentation target once for all variants.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.