Class Il2CppNativeCodeBuilder
Inherited Members
Namespace: UnityEditorInternal
Assembly: UnityEditor.dll
Syntax
public abstract class Il2CppNativeCodeBuilderProperties
| Improve this Doc View SourceAdditionalIl2CPPArguments
Declaration
public virtual IEnumerable<string> AdditionalIl2CPPArguments { get; }Property Value
| Type | Description | 
|---|---|
| IEnumerable<String> | 
CacheDirectory
Provide a cache directory for IL2CPP to use to save build artifacts used for incremental builds. If this does not exist, a full build will occur. The default value of this property is an empty string, which disables incremental builds.
Declaration
public virtual string CacheDirectory { get; }Property Value
| Type | Description | 
|---|---|
| String | 
CompilerArchitecture
Implement this property to tell IL2CPP about the architecture for the C++ compiler. This architecture must be known in the Unity.IL2CPP.Builder code.
Declaration
public abstract string CompilerArchitecture { get; }Property Value
| Type | Description | 
|---|---|
| String | 
CompilerFlags
Provide any compiler flags IL2CPP should use in addition to the default ones. The default value of this property is an empty string.
Declaration
public virtual string CompilerFlags { get; }Property Value
| Type | Description | 
|---|---|
| String | 
CompilerPlatform
Implement this property to tell IL2CPP about the platform for the C++ compiler. This platform must be known in the Unity.IL2CPP.Builder code.
Declaration
public abstract string CompilerPlatform { get; }Property Value
| Type | Description | 
|---|---|
| String | 
LinkerFlags
Provide any linker flags IL2CPP should use in addition to the default ones. The default value of this property is an empty string.
Declaration
public virtual string LinkerFlags { get; }Property Value
| Type | Description | 
|---|---|
| String | 
LinkLibIl2CppStatically
If this property returns true the argument "--libil2cpp-static" will be used when calling il2cpp.exe
Declaration
public virtual bool LinkLibIl2CppStatically { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
PluginPath
Provide the path to a plugin
Declaration
public virtual string PluginPath { get; }Property Value
| Type | Description | 
|---|---|
| String | 
SetsUpEnvironment
IL2CPP should not try to set up the environment for the C++ compiler internally. Instead, it will use the environment it is provided. If this is true, SetupEnvironment will be called. The default value of this property is false.
Declaration
public virtual bool SetsUpEnvironment { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
| Improve this Doc View SourceConvertIncludesToFullPaths(IEnumerable<String>)
Change the relative include paths into absolute paths that can be passed to the C++ compiler. By default this method returns its input with each path relative to the current directory.
Declaration
public virtual IEnumerable<string> ConvertIncludesToFullPaths(IEnumerable<string> relativeIncludePaths)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<String> | relativeIncludePaths | The list of relative paths to convert | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<String> | A list of full paths | 
ConvertOutputFileToFullPath(String)
Change the relative path to the output file to an absolute path that can be passed to the C++ compiler. By default this method returns its input relative to the current directory.
Declaration
public virtual string ConvertOutputFileToFullPath(string outputFileRelativePath)Parameters
| Type | Name | Description | 
|---|---|---|
| String | outputFileRelativePath | The relative output file path to convert | 
Returns
| Type | Description | 
|---|---|
| String | The full output file path | 
SetupEnvironment(ProcessStartInfo)
Override this method if SetsUpEnvironment is override to return true. This will allow the ProcessStartInfo for IL2CPP to be modified.
Declaration
protected virtual void SetupEnvironment(ProcessStartInfo startInfo)Parameters
| Type | Name | Description | 
|---|---|---|
| ProcessStartInfo | startInfo | The ProcessStartInfo for IL2CPP | 
SetupStartInfo(ProcessStartInfo)
Declaration
public void SetupStartInfo(ProcessStartInfo startInfo)Parameters
| Type | Name | Description | 
|---|---|---|
| ProcessStartInfo | startInfo |