targets_from_sources Subroutine

public subroutine targets_from_sources(targets, model, error)

High-level wrapper to generate build target information

Arguments

Type IntentOptional AttributesName
type(build_target_ptr), intent(out), allocatable:: targets(:)

The generated list of build targets

type(fpm_model_t), intent(inout), target:: model

The package model from which to construct the target list

type(error_t), intent(out), allocatable:: error

Error structure


Contents

Source Code


Source Code

subroutine targets_from_sources(targets,model,error)

    !> The generated list of build targets
    type(build_target_ptr), intent(out), allocatable :: targets(:)

    !> The package model from which to construct the target list
    type(fpm_model_t), intent(inout), target :: model

    !> Error structure
    type(error_t), intent(out), allocatable :: error

    call build_target_list(targets,model)

    call resolve_module_dependencies(targets,model%external_modules,error)
    if (allocated(error)) return

    call resolve_target_linking(targets,model)

end subroutine targets_from_sources