EmscriptenSdk

abstract class EmscriptenSdk @Inject constructor(objects: ObjectFactory, providers: ProviderFactory, execOperations: ExecOperations)(source)

The main helper object for performing operations using Emscripten.

It allows building the command line for running emcc, emconfigure, emmake, or embuilder from the Emscripten package, as well as setting up the environment.

See emscripten-plugin for example usage

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory, providers: ProviderFactory, execOperations: ExecOperations)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:Internal
val embuilderExecutablePath: Property<String>
Link copied to clipboard
@get:Internal
val emccExecutablePath: Property<String>
Link copied to clipboard
@get:Input
@get:Optional
val emccVersion: Property<String>

Version of the Emscripten that should be used.

Link copied to clipboard
@get:Internal
val emConfigureExecutablePath: Property<String>
Link copied to clipboard
@get:Internal
val emMakeExecutablePath: Property<String>
Link copied to clipboard
@get:InputDirectory
@get:PathSensitive(value = PathSensitivity.RELATIVE)
@get:Optional
val emscriptenCacheBase: DirectoryProperty

Directory with cache prepared in advance using EmscriptenPrepareCacheTask task.

Link copied to clipboard
@get:Internal
val emscriptenCacheDir: DirectoryProperty

The directory that will be used for the cache

Link copied to clipboard
@Optional
@PathSensitive(value = PathSensitivity.NONE)
@get:InputFiles
val emscriptenConfigFile: ConfigurableFileCollection
Link copied to clipboard
@Optional
@get:Input
val emscriptenRoot: Property<File>

Path to Emscripten SDK

Functions

Link copied to clipboard

Builds embuilder command line.

Link copied to clipboard
fun buildEmccCommandLine(builderAction: MutableList<String>.() -> Unit): List<String>

Builds emcc command line.

Link copied to clipboard

Builds emconfigure command line.

Link copied to clipboard

Builds emmake command line.

Link copied to clipboard

Validates that the version specified in emccVersion is active in the SDK directory emscriptenRoot

Link copied to clipboard

Returns environment variables that must be set when calling Emscripten executables

Link copied to clipboard