Closed tritao closed 1 week ago
Should also apply to other toolsets (so currently dotnet and msc, as others use toolset.gcc
)
Whereas premake-ninja doesn't support C# yet, it supports msc.
Updated the msc
and dotnet
toolsets too, clang
has no direct calls to project.getrelative
and fowards to gcc
.
Updated this again with some more thorough testing to at least make sure these exist and continue to exist for all toolsets.
@nickclark2016 Please take another look when you have a chance.
Will leave open for comment for a few days. Barring any change requests, will merge. Thank you!
Updates the PR with a new simpler implementation based on a new p.tools.getrelative
function.
This one has been sitting for a while.
Can anyone take a look? @samsinsane @nickclark2016
This just centralizes all
project.getrelative
in the GCC toolset, allowing for customization by external code, by overriding this function.This is needed for instance in Ninja generators, when the location of a project is not the workspace location, but the code of the Ninja file itself should still refer to workspace-relative paths.