executable_config_t Derived Type

type, public :: executable_config_t

Configuation meta data for an executable


Contents

Source Code


Components

TypeVisibility AttributesNameInitial
type(dependency_config_t), public, allocatable:: dependency(:)

Dependency meta data for this executable

type(string_t), public, allocatable:: link(:)

Libraries to link against

character(len=:), public, allocatable:: main

Name of the source file declaring the main program

character(len=:), public, allocatable:: name

Name of the resulting executable

character(len=:), public, allocatable:: source_dir

Source directory for collecting the executable


Type-Bound Procedures

procedure, public :: info

Print information on this instance

  • private subroutine info(self, unit, verbosity)

    Write information on instance

    Arguments

    Type IntentOptional AttributesName
    class(executable_config_t), intent(in) :: self

    Instance of the executable configuration

    integer, intent(in) :: unit

    Unit for IO

    integer, intent(in), optional :: verbosity

    Verbosity of the printout

Source Code

    type :: executable_config_t

        !> Name of the resulting executable
        character(len=:), allocatable :: name

        !> Source directory for collecting the executable
        character(len=:), allocatable :: source_dir

        !> Name of the source file declaring the main program
        character(len=:), allocatable :: main

        !> Dependency meta data for this executable
        type(dependency_config_t), allocatable :: dependency(:)

        !> Libraries to link against
        type(string_t), allocatable :: link(:)

    contains

        !> Print information on this instance
        procedure :: info

    end type executable_config_t