30 lines
870 B
Ada
30 lines
870 B
Ada
with Alire.Conditional;
|
|
with Alire.Releases;
|
|
with Alire.Roots;
|
|
|
|
with Semantic_Versioning;
|
|
|
|
package Alire.Root is
|
|
|
|
-- When alr self-compiles it inserts a call to this function, so the dependency root is stablished
|
|
|
|
-- The two flavors distinguish when it is an already indexed project and a new unindexed one (working copy)
|
|
|
|
function Set (Project : Alire.Project;
|
|
Version : Semantic_Versioning.Version)
|
|
return Roots.Root;
|
|
-- All information will be taken from the indexed release
|
|
|
|
function Set (Project : Alire.Project;
|
|
Dependencies : Conditional.Dependencies)
|
|
return Roots.Root;
|
|
-- An unindexed working copy
|
|
|
|
function Set (Release : Releases.Release) return Roots.Root;
|
|
|
|
function Current return Roots.Root;
|
|
|
|
function Is_Set return Boolean;
|
|
|
|
end Alire.Root;
|