fpm_installer Module

Implementation of an installer object.

The installer provides a way to install objects to their respective directories in the installation prefix, a generic install command allows to install to any directory within the prefix.



Contents


Derived Types

type, public :: installer_t

Declaration of the installer type

Type-Bound Procedures

procedure, public :: install

Install a generic file into a subdirectory in the installation prefix

procedure, public :: install_executable

Install an executable in its correct subdirectory

procedure, public :: install_header

Install a header/module in its correct subdirectory

procedure, public :: install_library

Install a library in its correct subdirectory

procedure, public :: make_dir

Create a new directory in the prefix, type-bound for unit testing purposes

procedure, public :: run

Run an installation command, type-bound for unit testing purposes


Subroutines

public subroutine new_installer(self, prefix, bindir, libdir, includedir, verbosity, copy)

Create a new instance of an installer

Arguments

Type IntentOptional AttributesName
type(installer_t), intent(out) :: self

Instance of the installer

character(len=*), intent(in), optional :: prefix

Path to installation directory

character(len=*), intent(in), optional :: bindir

Binary dir relative to the installation prefix

character(len=*), intent(in), optional :: libdir

Library directory relative to the installation prefix

character(len=*), intent(in), optional :: includedir

Include directory relative to the installation prefix

integer, intent(in), optional :: verbosity

Verbosity of the installer

character(len=*), intent(in), optional :: copy

Copy command