fpm_meta_util Module



Interfaces

public interface add_strings

  • private pure subroutine add_strings_one(list, new)

    Add one element to a string array with a loop (gcc-15 bug on array initializer)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(inout), allocatable :: list(:)
    type(string_t), intent(in) :: new
  • private pure subroutine add_strings_many(list, new)

    Add elements to a string array with a loop (gcc-15 bug on array initializer)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(inout), allocatable :: list(:)
    type(string_t), intent(in) :: new(:)

Subroutines

public subroutine add_pkg_config_compile_options(this, name, include_flag, libdir, error)

Add pkgconfig compile options to a metapackage Get version Get libraries Get compiler flags

Arguments

Type IntentOptional Attributes Name
class(metapackage_t), intent(inout) :: this
character(len=*), intent(in) :: name
character(len=*), intent(in) :: include_flag
character(len=:), allocatable :: libdir
type(error_t), intent(out), allocatable :: error

public subroutine lib_get_trailing(lib_name, lib_dir, prefix, suffix, found)

Given a library name and folder, find extension and prefix

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: lib_name
character(len=*), intent(in) :: lib_dir
character(len=:), intent(out), allocatable :: prefix
character(len=:), intent(out), allocatable :: suffix
logical, intent(out) :: found