build_config_t Derived Type

type, public :: build_config_t

Configuration data for build


Contents

Source Code


Components

Type Visibility Attributes Name Initial
logical, public :: auto_examples

Automatic discovery of examples

logical, public :: auto_executables

Automatic discovery of executables

logical, public :: auto_tests

Automatic discovery of tests

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

External modules to use

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

Libraries to link against

logical, public :: module_naming = .false.

Enforcing of package module names

type(string_t), public :: module_prefix

Type-Bound Procedures

procedure, public, :: info

Print information on this instance

  • private subroutine info(self, unit, verbosity)

    Write information on build configuration instance

    Arguments

    Type IntentOptional Attributes Name
    class(build_config_t), intent(in) :: self

    Instance of the build configuration

    integer, intent(in) :: unit

    Unit for IO

    integer, intent(in), optional :: verbosity

    Verbosity of the printout

Source Code

    type :: build_config_t

        !> Automatic discovery of executables
        logical :: auto_executables

        !> Automatic discovery of examples
        logical :: auto_examples

        !> Automatic discovery of tests
        logical :: auto_tests

        !> Enforcing of package module names
        logical :: module_naming = .false.
        type(string_t) :: module_prefix

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

        !> External modules to use
        type(string_t), allocatable :: external_modules(:)

    contains

        !> Print information on this instance
        procedure :: info

    end type build_config_t