Package org.graalvm.nativeimage.c
Interface CContext.Directives
- Enclosing class:
CContext
public static interface CContext.Directives
Describes a C context.
- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionAll header files used in this context.Returns a collection of libraries.Returns a list of library paths.Unparameterized macro-definitions.Returns options to be passed to the C compiler when processing the directives.default boolean
This method is called immediately after the constructor, to check whether the context is part of the configuration or not.
-
Method Details
-
isInConfiguration
default boolean isInConfiguration()This method is called immediately after the constructor, to check whether the context is part of the configuration or not. If this method returns false, all elements registered inside this context are ignored.- Since:
- 19.0
-
getHeaderFiles
All header files used in this context. C allows two kinds of imports: header files can be surrounded with <...>, or "...". One of them must be used for every element in the returned list.- Since:
- 19.0
-
getMacroDefinitions
Unparameterized macro-definitions. Each entry is in the form of <macro-name> or <macro-name> <macro-value>.- Since:
- 19.0
-
getOptions
Returns options to be passed to the C compiler when processing the directives. For example, the option "-Ipath" can be used to add a path for the lookup of header files.- Since:
- 19.0
-
getLibraries
Returns a collection of libraries. They are treated the same way as libraries added via theCLibrary
annotation.- Since:
- 19.0
-
getLibraryPaths
Returns a list of library paths.- Since:
- 19.0
-