Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::PluginSysroot Struct Reference

Holds include and library paths for a system toolchain, used to let plugins link to libc and libc++. More...

#include <Plugin.h>

Static Public Member Functions

static Result findBestSysroot (PluginCompiler::Type compiler, PluginSysroot &sysroot)
 Finds a reasonable sysroot for the given compiler. More...
 

Public Attributes

SmallVector< StringNative< 256 >, 8 > includePaths
 Path to system include directories. More...
 
SmallVector< StringNative< 256 >, 8 > libraryPaths
 Path to system library directories. More...
 
StringNative< 256 > isysroot
 Path to sysroot include (optional) More...
 

Detailed Description

Holds include and library paths for a system toolchain, used to let plugins link to libc and libc++.

Member Function Documentation

◆ findBestSysroot()

static Result SC::PluginSysroot::findBestSysroot ( PluginCompiler::Type  compiler,
PluginSysroot sysroot 
)
static

Finds a reasonable sysroot for the given compiler.

Parameters
compilerThe PluginCompiler::Type to constrain the compatible PluginSysroot to look for
[out]sysrootThe PluginSysroot with filled in include and library path
Returns
Valid Result if sysroot has been found

Member Data Documentation

◆ includePaths

SmallVector<StringNative<256>, 8> SC::PluginSysroot::includePaths

Path to system include directories.

◆ isysroot

StringNative<256> SC::PluginSysroot::isysroot

Path to sysroot include (optional)

◆ libraryPaths

SmallVector<StringNative<256>, 8> SC::PluginSysroot::libraryPaths

Path to system library directories.


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