Show / Hide Table of Contents

Class Il2CppNativeCodeBuilder

Inheritance
Object
Il2CppNativeCodeBuilder
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditorInternal
Assembly: UnityEditor.dll
Syntax
public abstract class Il2CppNativeCodeBuilder

Properties

| Improve this Doc View Source

AdditionalIl2CPPArguments

Declaration
public virtual IEnumerable<string> AdditionalIl2CPPArguments { get; }
Property Value
Type Description
IEnumerable<String>
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

PluginPath

Provide the path to a plugin

Declaration
public virtual string PluginPath { get; }
Property Value
Type Description
String
| Improve this Doc View Source

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 Source

ConvertIncludesToFullPaths(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

SetupStartInfo(ProcessStartInfo)

Declaration
public void SetupStartInfo(ProcessStartInfo startInfo)
Parameters
Type Name Description
ProcessStartInfo startInfo

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX