tfel
Loading...
Searching...
No Matches
mfront::LibraryDescription Struct Reference

This structure is used to build the compilation rules for a shared library or a module. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/LibraryDescription.hxx>

Inheritance diagram for mfront::LibraryDescription:
mfront::CompiledTargetDescriptionBase

Public Types

enum  LibraryType { SHARED_LIBRARY , MODULE }
Public Types inherited from mfront::CompiledTargetDescriptionBase
enum  TargetSystem { WINDOWS , CYGWIN , MACOSX , UNIX }

Public Member Functions

 LibraryDescription (const std::string &, const std::string &, const std::string &, const LibraryType)
 LibraryDescription (const LibraryDescription &)
 copy constructor
 LibraryDescription (LibraryDescription &&) noexcept
 move constructor
LibraryDescription & operator= (const LibraryDescription &)=delete
 standard assignement (deleted)
LibraryDescription & operator= (LibraryDescription &&) noexcept=delete
 move assignement (deleted)
 ~LibraryDescription ()
 destructor
Public Member Functions inherited from mfront::CompiledTargetDescriptionBase
 CompiledTargetDescriptionBase (const std::string &, const std::string &, const std::string &)
 CompiledTargetDescriptionBase (const CompiledTargetDescriptionBase &)
 copy constructor
 CompiledTargetDescriptionBase (CompiledTargetDescriptionBase &&) noexcept
 move constructor
CompiledTargetDescriptionBase & operator= (const CompiledTargetDescriptionBase &)=delete
 standard assignement (deleted)
CompiledTargetDescriptionBase & operator= (CompiledTargetDescriptionBase &&) noexcept=delete
 move assignement (deleted)
 ~CompiledTargetDescriptionBase ()
 destructor

Static Public Member Functions

static const char * getDefaultLibraryPrefix (const TargetSystem, const LibraryType) noexcept
static const char * getDefaultLibrarySuffix (const TargetSystem, const LibraryType) noexcept

Public Attributes

const LibraryType type
 libray type
std::vector< std::string > epts
 generated entry points
Public Attributes inherited from mfront::CompiledTargetDescriptionBase
const std::string name
 name
const std::string prefix
 suffix
const std::string suffix
 suffix
std::vector< std::string > mfront_sources
 list of mfront files used to generate the C++ sources
std::vector< std::string > sources
 generated sources
std::vector< std::string > cppflags
 additional preprocessor flags
std::vector< std::string > include_directories
 path to the libraries to be linked
std::vector< std::string > link_directories
 path to the libraries to be linked
std::vector< std::string > link_libraries
 libraries to be linked
std::vector< std::string > deps
 dependencies to other generated libraries
std::vector< std::string > ldflags
 the linker flags
std::string install_path
 installation path

Detailed Description

This structure is used to build the compilation rules for a shared library or a module.

Member Enumeration Documentation

◆ LibraryType

Types of library supported. This difference is only relevant on Mac Os

Constructor & Destructor Documentation

◆ LibraryDescription()

mfront::LibraryDescription::LibraryDescription ( const std::string & ,
const std::string & ,
const std::string & ,
const LibraryType  )

Constructor

Parameters
[in]n: name of the library
[in]p: prefix of the library
[in]s: suffix of the library
[in]t: type of the library

Member Function Documentation

◆ getDefaultLibraryPrefix()

const char * mfront::LibraryDescription::getDefaultLibraryPrefix ( const TargetSystem ,
const LibraryType  )
staticnoexcept
Returns
the default library prefix for the given target system and library type
Parameters
[in]s: target system
[in]t: library type

◆ getDefaultLibrarySuffix()

const char * mfront::LibraryDescription::getDefaultLibrarySuffix ( const TargetSystem ,
const LibraryType  )
staticnoexcept
Returns
the default library suffix for the given target system and library type
Parameters
[in]s: target system
[in]t: library type

The documentation for this struct was generated from the following file: