Create a new dependency node from a configuration
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dependency_node_t), | intent(out) | :: | self |
Instance of the dependency node |
||
type(dependency_config_t), | intent(in) | :: | dependency |
Dependency configuration data |
||
type(version_t), | intent(in), | optional | :: | version |
Version of the dependency |
|
character(len=*), | intent(in), | optional | :: | proj_dir |
Installation prefix of the dependency |
|
logical, | intent(in), | optional | :: | update |
Dependency should be updated |
subroutine new_dependency_node(self, dependency, version, proj_dir, update) !> Instance of the dependency node type(dependency_node_t), intent(out) :: self !> Dependency configuration data type(dependency_config_t), intent(in) :: dependency !> Version of the dependency type(version_t), intent(in), optional :: version !> Installation prefix of the dependency character(len=*), intent(in), optional :: proj_dir !> Dependency should be updated logical, intent(in), optional :: update self%dependency_config_t = dependency if (present(version)) then self%version = version end if if (present(proj_dir)) then self%proj_dir = proj_dir end if if (present(update)) then self%update = update end if end subroutine new_dependency_node