api / org.gradle.nativeplatform / PreprocessingTool

PreprocessingTool

@Incubating interface PreprocessingTool : Tool

A tool that permits configuration of the C preprocessor.

Functions

define

abstract fun define(name: String): Unit

Defines a named preprocessor macros to use when compiling this binary. The macro will be supplied to the compiler as '-D name'.

abstract fun define(name: String, definition: String): Unit

Defines a named preprocessor macro with a value, which will be used when compiling this binary. The macro will be supplied to the compiler as '-D name=definition'.

getMacros

abstract fun getMacros(): MutableMap<String, String>

The set of preprocessor macros to define when compiling this binary.

Inherited Functions

args

abstract fun args(vararg args: String): Unit

Adds a number of arguments to be passed to the tool.

getArgs

abstract fun getArgs(): MutableList<String>

The arguments passed when executing this tool.