This commit is contained in:
2026-11-24 15:51:02 +01:00
parent cca4d73e41
commit f4aa17114a
22092 changed files with 5042406 additions and 0 deletions
@@ -0,0 +1,30 @@
# Changelog
All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.1] - 2026-11-04
### Fixed
- Fixed payload extraction failing on CoreCLR Editors: shell commands are now passed as a single argument and the payload path is resolved from the package's resolved location
## [1.1.0] - 2026-04-24
### Changed
- Incremented minor version for release
## [1.0.2] - 2025-11-04
### Changed
- Incremented patch version for release
## [1.0.1] - 2025-09-10
### Added
- Documentation for public APIs
- Package tests
### Changed
- Incremented patch version for release
## [1.0.0] - 2025-08-01
### Changed
- Initial release of base sysroot pacakge supporting unified Linux toolchains
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6903637d170abe311a972b9d76142805
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,53 @@
# Unity IL2CPP Build Support for Linux
Support for Linux players using IL2CPP is available from 2019.4 onwards.
Operating systems (OS) have their own build systems which vary from one another. If you build using the headers and libraries on a particular OS, this might result in the built player not running on a different one. To address this, Unity provides a sysroot to build against which works on all supported Linux platforms.
The sysroot also allows cross-compilation support which enables you to build Linux IL2CPP from Linux, macOS and Windows.
## Prerequisites
To use the following packages, you need to install the Linux Build Support (IL2CPP) module in your Unity Editor version. Use the Unity Hub to do this. For further information, see [Adding Modules to the Unity Editor](https://docs.unity3d.com/2021.2/Documentation/Manual/GettingStartedAddingEditorComponents.html).
## Unity toolchain packages
Unity provides a toolchain package, which installs the sysroot and a toolchain, for building binaries for the target. The naming convention for these packages is:
* _host platform and architecture_
* _target platform and architecture_
If the host platform and architecture are the same as the target platform and architecture, shorten the name to platform and architecture.
## Installing a Unity toolchain package
To install a Unity toolchain package:
1. Go to **Window** > **Package Manager**.
2. Use the search bar to find the package, and click **Install** in the bottom right corner of the Package Manager window.
3. Choose the package based on the host platform.
| Host | Package |
| ------- | ---------------------------------------- |
| Linux | com.unity.toolchain.linux-x86_64 |
| macOS | com.unity.toolchain.macos-x86_64-linux-x86_64 |
| Windows | com.unity.toolchain.windows.x86_64-linux-x86_64 |
![Package Manager window](Images/sysroot_PackageManagerScreenshot.png)
## Using a Unity toolchain package:
When you have installed your toolchain package, go to **Project Settings** > **Player** > **Configuration** and set the **ScriptingBackend** to **IL2CPP**.
![Project Settings window](Images/sysroot_ProjectSettingsScreenshot.png)
To build your project:
1. Go to **File** > **Build Settings**.
2. In the **Target Platform** dropdown menu, select **Linux**.
3. Click **Build** or **Build and Run**.
## Technical Details
Requirements:
- Unity version 2019.4.1f1
- Linux Build Support (IL2CPP) module
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 169765632ffb0f87cb8b3c23abe48007
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,44 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("756dc4d8-8ba5-4416-9c4f-d29f993629fe")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: InternalsVisibleTo("Unity.Sysroot.Linux_x86_64")]
[assembly: InternalsVisibleTo("Unity.Sysroot.Linux_arm64")]
[assembly: InternalsVisibleTo("Unity.Toolchain.Linux-x86_64-Linux")]
[assembly: InternalsVisibleTo("Unity.Toolchain.Macos-x86_64-Linux")]
[assembly: InternalsVisibleTo("Unity.Toolchain.Macos-arm64-Linux")]
[assembly: InternalsVisibleTo("Unity.Toolchain.Win-x86_64-Linux")]
[assembly: InternalsVisibleTo("Unity.Toolchain.Win-arm64-Linux")]
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8687db4f8d1c4354eae1e66a957cba30
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 62e4a7846c9ce998f972153a5182676a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,9 @@
{
"name": "Unity.SysrootPackage.Editor",
"references": [
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": []
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 435a4e0ece4e23c4882730a295bbd8cd
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,495 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using UnityEngine;
using UnityEditorInternal;
using UnityEditor;
using NiceIO.Sysroot;
#if UNITY_STANDALONE_LINUX_API
using UnityEditor.LinuxStandalone;
#endif
#if UNITY_EMBEDDED_LINUX_API
using UnityEditor.EmbeddedLinux;
#endif
namespace UnityEditor.Il2Cpp
{
/// <summary>
/// Describes where a sysroot/toolchain payload is located and where it should be installed.
/// </summary>
/// <remarks>
/// <para>
/// <see cref="path"/> points to the compressed payload archive (typically
/// <c>Packages/&lt;name&gt;/data~/payload.tar.7z</c>).
/// </para>
/// <para>
/// <see cref="dir"/> is the destination directory under the sysroot cache where the
/// archive will be extracted.
/// </para>
/// </remarks>
public struct PayloadDescriptor
{
/// <summary>
/// Absolute path to the payload tarball to install (e.g., <c>payload.tar.7z</c>).
/// </summary>
internal NPath path;
/// <summary>
/// Absolute destination directory where the payload will be extracted.
/// </summary>
internal NPath dir;
}
/// <summary>
/// Tracks one-time initialization state for a package.
/// </summary>
enum InitializationStatus
{
/// <summary>Initialization has not been attempted.</summary>
Uninitialized,
/// <summary>Initialization was attempted and failed.</summary>
Failed,
/// <summary>Initialization completed successfully.</summary>
Succeeded
}
/// <summary>
/// Base class for sysroot and toolchain packages.
/// </summary>
/// <remarks>
/// When the <c>UNITY_STANDALONE_LINUX_API</c> or <c>UNITY_EMBEDDED_LINUX_API</c> defines are set,
/// this class implements the <see cref="Sysroot"/> interface consumed by the Linux build pipeline.
/// Derived classes supply platform/arch metadata and the payload locations needed by IL2CPP.
/// </remarks>
public class SysrootPackage
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
: Sysroot
#endif
{
/// <summary>
/// Heuristically checks whether the Linux IL2CPP Players are present in the Editor installation.
/// </summary>
/// <remarks>
/// Used to emit a helpful debug warning when sysroot/toolchain packages are present but
/// the IL2CPP player toolchain for Linux is missing.
/// </remarks>
private static bool IsLinuxIL2CPPPresent()
{
string targetDir = $"{BuildPipeline.GetPlaybackEngineDirectory(BuildTargetGroup.Standalone, BuildTarget.StandaloneLinux64, BuildOptions.None)}/Variations/il2cpp";
if (Directory.Exists(targetDir))
return true;
return false;
}
/// <summary>
/// Returns <see langword="true"/> when verbose debug logging for sysroots is enabled.
/// </summary>
/// <remarks>
/// Controlled by the <c>UNITY_SYSROOT_DEBUG</c> environment variable (any non-empty value).
/// </remarks>
/// <returns>
/// <see langword="true"/> if <c>UNITY_SYSROOT_DEBUG</c> is set to a non-empty string;
/// otherwise, <see langword="false"/>.
/// </returns>
public static bool ShouldLogDebugMessage()
{
return !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("UNITY_SYSROOT_DEBUG"));
}
/// <summary>
/// On editor load, warns (in debug mode) if Linux IL2CPP is missing while Linux toolchain packages are present.
/// </summary>
[InitializeOnLoadMethod]
private static void IssueWarningIfLinuxIL2CPPNotPresent()
{
if (ShouldLogDebugMessage() && !IsLinuxIL2CPPPresent())
{
UnityEngine.Debug.LogWarning($"Linux Compiler Toolchain package(s) present, but required Linux-IL2CPP is missing");
}
}
/// <summary>
/// Package identifier (UPM name).
/// </summary>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string Name => "com.unity.sysroot.base";
/// <summary>
/// Host operating system (e.g., <c>linux</c>, <c>win</c>, <c>macos</c>).
/// </summary>
/// <remarks>
/// Base implementation returns an empty string; derived classes should override with a stable token.
/// </remarks>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string HostPlatform => "";
/// <summary>
/// Host CPU architecture (e.g., <c>x86_64</c>, <c>arm64</c>).
/// </summary>
/// <remarks>Base implementation returns an empty string; override in derived packages.</remarks>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string HostArch => "";
/// <summary>
/// Target operating system (e.g., <c>linux</c>, <c>win</c>, <c>macos</c>).
/// </summary>
/// <remarks>Base implementation returns an empty string; override in derived packages.</remarks>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string TargetPlatform => "";
/// <summary>
/// Target CPU architecture (e.g., <c>x86_64</c>, <c>arm64</c>).
/// </summary>
/// <remarks>Base implementation returns an empty string; override in derived packages.</remarks>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string TargetArch => "";
/// <summary>
/// Additional arguments to append to the IL2CPP invocation.
/// </summary>
/// <remarks>
/// Return <c>null</c> for no extra arguments. Derived classes can yield a sequence of
/// flags (e.g., <c>--sysroot=&lt;path&gt;</c>) that IL2CPP will consume.
/// </remarks>
/// <returns>Enumerable of additional arguments, or <c>null</c>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
IEnumerable<string> GetIl2CppArguments() { return null; }
/// <summary>
/// Absolute path to the installed sysroot to be used by IL2CPP.
/// </summary>
/// <remarks>
/// Return <c>null</c> if this package does not supply a sysroot (e.g., toolchain-only packages).
/// </remarks>
/// <returns>Sysroot directory path, or <c>null</c>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string GetSysrootPath() { return null; }
/// <summary>
/// Absolute path to the installed toolchain to be used by IL2CPP.
/// </summary>
/// <remarks>
/// Return <c>null</c> if this package does not supply a toolchain (e.g., sysroot-only packages).
/// </remarks>
/// <returns>Toolchain directory path, or <c>null</c>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string GetToolchainPath() { return null; }
/// <summary>
/// Extra compiler flags (passed to Clang via IL2CPP) required by this package.
/// </summary>
/// <remarks>
/// Typical use is to supply a target triple (e.g., <c>-target aarch64-unity-linux-gnu</c>)
/// or sysroot/emulation flags. Return <c>null</c> for none.
/// </remarks>
/// <returns>Space-separated compiler flags, or <c>null</c>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string GetIl2CppCompilerFlags() { return null; }
/// <summary>
/// Extra linker flags (passed via IL2CPP) required by this package.
/// </summary>
/// <remarks>
/// Usually mirrors compiler targeting flags so the linker resolves from the same sysroot.
/// Return <c>null</c> for none.
/// </remarks>
/// <returns>Space-separated linker flags, or <c>null</c>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
string GetIl2CppLinkerFlags() { return null; }
/// <summary>
/// Default archive file name used by sysroot/toolchain packages.
/// </summary>
/// <remarks>
/// The file lives under the package’s <c>data~</c> folder by convention (see <see cref="PayloadPath"/>).
/// </remarks>
protected string Payload => "payload.tar.7z";
private List<PayloadDescriptor> _payloads = new List<PayloadDescriptor>();
private InitializationStatus _initStatus = InitializationStatus.Uninitialized;
/// <summary>
/// Ensures all registered payloads are installed. Safe to call multiple times.
/// </summary>
/// <remarks>
/// If a destination directory does not exist, the corresponding payload is extracted into it.
/// On any failure, the method logs an error and returns <see langword="false"/>.
/// </remarks>
/// <returns><see langword="true"/> if initialization completed successfully; otherwise <see langword="false"/>.</returns>
public
#if UNITY_STANDALONE_LINUX_API || UNITY_EMBEDDED_LINUX_API
override
#else
virtual
#endif
bool Initialize()
{
if (_initStatus != InitializationStatus.Uninitialized)
return _initStatus == InitializationStatus.Succeeded;
foreach (PayloadDescriptor pd in _payloads)
{
if (!Directory.Exists(pd.dir.ToString(SlashMode.Native)) && !InstallPayload(pd))
{
UnityEngine.Debug.LogError($"Failed to initialize package: {Name}");
_initStatus = InitializationStatus.Failed;
return false;
}
}
_initStatus = InitializationStatus.Succeeded;
return true;
}
/// <summary>
/// Computes the absolute path to the packaged payload archive inside a UPM package.
/// </summary>
/// <param name="packageName">UPM package name (e.g., <c>com.unity.sdk.linux-arm64</c>).</param>
/// <returns>Absolute path to <c>data~/payload.tar.7z</c> under the package root.</returns>
/// <remarks>
/// The package root is whatever UPM resolved, which is not necessarily
/// <c>Packages/&lt;name&gt;</c>: a registry copy lands in <c>Library/PackageCache</c> and a
/// <c>file:</c> copy is referenced in place, outside the project entirely.
/// </remarks>
internal NPath PayloadPath(string packageName)
{
var packageInfo = PackageManager.PackageInfo.FindForPackageName(packageName);
var packageRoot = packageInfo != null
? packageInfo.resolvedPath
: Path.GetFullPath($"Packages/{packageName}");
return new NPath(packageRoot).Combine("data~/payload.tar.7z");
}
/// <summary>
/// Registers a payload tarball and its installation directory for later initialization.
/// </summary>
/// <param name="packageName">UPM package name that contains the payload.</param>
/// <param name="payloadDir">Destination directory relative to the sysroot cache (see <see cref="PayloadInstallDirectory"/>).</param>
public void RegisterPayload(string packageName, string payloadDir)
{
_payloads.Add(new PayloadDescriptor{path = PayloadPath(packageName).ToString(SlashMode.Native), dir = PayloadInstallDirectory(payloadDir).ToString(SlashMode.Native)});
}
/// <summary>
/// Executes a shell command synchronously.
/// </summary>
/// <param name="command">Command line to run. Quoting is handled by this method for platform differences.</param>
/// <param name="workDir">Optional working directory. Defaults to <see cref="Environment.CurrentDirectory"/>.</param>
/// <returns><see langword="true"/> if the command exits with code 0; otherwise <see langword="false"/>.</returns>
/// <remarks>
/// On Windows this runs under <c>cmd /c</c>; on Unix under <c>/bin/sh -c</c>.
/// When <see cref="ShouldLogDebugMessage"/> is <see langword="true"/>, failures are logged with command details.
/// </remarks>
private bool RunShellCommand(string command, string workDir = null)
{
var p = new Process();
p.StartInfo.UseShellExecute = false;
#if UNITY_EDITOR_WIN
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "cmd";
p.StartInfo.Arguments = $"/c \"{command}\"";
#else
p.StartInfo.FileName = "/bin/sh";
// The whole script has to arrive as one argument; quoting it into Arguments relies on argv splitting
// rules that differ between Mono and .NET.
p.StartInfo.ArgumentList.Add("-c");
p.StartInfo.ArgumentList.Add(command);
#endif
p.StartInfo.WorkingDirectory = string.IsNullOrEmpty(workDir) ? Environment.CurrentDirectory : workDir;
p.Start();
p.WaitForExit();
bool result = p.ExitCode == 0;
if (!result && ShouldLogDebugMessage())
UnityEngine.Debug.LogError($"Failed to execute command command=\"{p.StartInfo.FileName}\" arguments=\"{string.Join(" ", p.StartInfo.ArgumentList)}{p.StartInfo.Arguments}\"");
return result;
}
/// <summary>
/// Creates the destination directory and extracts the payload into it.
/// </summary>
/// <param name="payload">Path to the compressed tarball.</param>
/// <param name="workDir">Destination directory to extract to.</param>
/// <returns><see langword="true"/> on success; otherwise <see langword="false"/>.</returns>
/// <remarks>
/// On failure the partially created directory is cleaned up. Extraction uses 7-Zip on both platforms
/// and pipes to <c>tar</c> on Unix.
/// </remarks>
private bool DecompressSysroot(NPath payload, NPath workDir)
{
if (!RunShellCommand(CommandCreateDirectory(workDir)))
{
UnityEngine.Debug.LogError($"Failed to create directory {workDir}");
return false;
}
if (!RunShellCommand(CommandUncompressTarball(payload, workDir), workDir.ToString(SlashMode.Native)))
{
UnityEngine.Debug.LogError($"Failed to uncompress payload");
RunShellCommand(CommandRemoveDirectoryTree(workDir));
return false;
}
return PostDecompressActions(workDir);
}
/// <summary>
/// Installs a single payload by decompressing it into the configured destination.
/// </summary>
private bool InstallPayload(PayloadDescriptor pd)
{
return DecompressSysroot(pd.path, pd.dir);
}
/// <summary>
/// Returns a platform-appropriate command to create a directory (mkdir).
/// </summary>
private string CommandCreateDirectory(NPath dir)
{
_initStatus = InitializationStatus.Failed;
#if UNITY_EDITOR_WIN
return $"mkdir {dir.InQuotes(SlashMode.Native)}";
#else
return $"mkdir -p {dir.InQuotes()}";
#endif
}
/// <summary>
/// Returns the fully quoted path to the 7-Zip binary Unity ships with the Editor.
/// </summary>
private string Get7zPath()
{
#if UNITY_EDITOR_WIN
string command = $"{EditorApplication.sevenZipPath}";
#else
string command = EditorApplication.sevenZipPath;
#endif
return new NPath($"{command}").InQuotes(SlashMode.Native);
}
/// <summary>
/// Builds a command that extracts <paramref name="tarball"/> into <paramref name="destDir"/>.
/// </summary>
/// <remarks>
/// Windows: <c>7z x -so | 7z x -ttar -si</c> (7-Zip for both layers).<br/>
/// Unix: <c>7z x -so | tar xf -</c> (7-Zip then system <c>tar</c>).
/// </remarks>
private string CommandUncompressTarball(NPath tarball, NPath destDir)
{
#if UNITY_EDITOR_WIN
return $"{Get7zPath()} x -y {tarball.InQuotes(SlashMode.Native)} -so | {Get7zPath()} x -y -aoa -ttar -si";
#else
return $"{Get7zPath()} x -y {tarball.InQuotes()} -so | tar xf - --directory={destDir.InQuotes()}";
#endif
}
/// <summary>
/// Returns a platform-appropriate command to remove an entire directory tree.
/// </summary>
private string CommandRemoveDirectoryTree(NPath dir)
{
#if UNITY_EDITOR_WIN
return $"rd /s /q {dir.InQuotes(SlashMode.Native)}";
#else
return $"rm -rf {dir.InQuotes()}";
#endif
}
/// <summary>
/// Hook for subclasses to perform additional fixups after extraction (e.g., symlinks, RPATH tweaks).
/// </summary>
/// <param name="workDir">The directory the payload was extracted to.</param>
/// <returns><see langword="true"/> to continue initialization; <see langword="false"/> to fail.</returns>
private bool PostDecompressActions(NPath workDir)
{
return true;
}
/// <summary>
/// Returns the base folder used for per-user Unity data on the current OS.
/// </summary>
/// <remarks>
/// macOS: <c>~/Library/Unity</c><br/>
/// Windows/Linux: <c>%LOCALAPPDATA%/unity3d</c>
/// </remarks>
private string UserAppDataFolder()
{
return
#if UNITY_EDITOR_OSX
$"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Library/Unity";
#else
$"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}/unity3d";
#endif
}
/// <summary>
/// Computes the absolute installation directory for a given payload under the sysroot cache.
/// </summary>
/// <param name="payloadDir">Relative path (e.g., <c>linux-arm64/&lt;version&gt;</c>).</param>
/// <returns>Absolute cache path where the payload should be installed.</returns>
/// <remarks>
/// Uses the <c>UNITY_SYSROOT_CACHE</c> environment variable if set; otherwise defaults to
/// <c>{UserAppDataFolder}/cache/sysroots</c>.
/// </remarks>
internal NPath PayloadInstallDirectory(string payloadDir)
{
string cacheDir = Environment.GetEnvironmentVariable("UNITY_SYSROOT_CACHE");
if (string.IsNullOrEmpty(cacheDir))
cacheDir = $"{UserAppDataFolder()}/cache/sysroots";
return new NPath($"{cacheDir}/{payloadDir}");
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 646b84aea2c7ef2a7813536ed00c02c8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,5 @@
com.unity.sysroot.base copyright © 2024 Unity Technologies ApS
Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License).
Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e76167c495d53ba6abcbb8df07973457
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,3 @@
# com.unity.sysroot.base
This is the base sysroot package, containing common code. It is intended to be used only as a dependency by sysroot or toolchain packages.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 51f3a1b7b38fe39689977681fe22df32
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 21355b98f3d94d714ad8c543adb3c7ef
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4cac27dd0398cfe66aa1f1eb45442a1a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,22 @@
using NUnit.Framework;
using UnityEditor.Il2Cpp;
/// <summary>
/// EditMode tests for the base sysroot package scaffold.
/// </summary>
/// <remarks>
/// Sanity-checks that the base <see cref="SysrootPackage"/> type can be instantiated
/// in the current compile configuration.
/// </remarks>
/// <seealso cref="SysrootPackage"/>
class SysrootBaseTest
{
/// <summary>
/// Verifies that <see cref="SysrootPackage"/> can be constructed without throwing.
/// </summary>
[Test]
public void TestPackageInitialization()
{
Assert.NotNull(new SysrootPackage());
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 94da573212a9b3278a42dcd34fba767b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,18 @@
{
"name": "Unity.Sysroot.EditorTests",
"references": [
"Unity.Sysroot.Editor",
"Unity.Sysroot",
"Unity.SysrootPackage.Editor"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": []
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4b746f9393832b79384ac03cddf8eb94
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,36 @@
This package contains third-party software components governed by the license(s) indicated below:
---------
Component Name: NiceIO
License Type: MIT
Copyright (c) 2015-2017 Lucas Meijer
https://github.com/lucasmeijer/NiceIO
The MIT License (MIT)
=====================
Copyright © `2015-2017` `Lucas Meijer`
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 77480111a80ad46e7b0d10da3fd3a092
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,27 @@
{
"name": "com.unity.sysroot.base",
"displayName": "Sysroot Base",
"version": "1.1.1",
"unity": "6000.3",
"unityRelease": "0b8",
"keywords": [
"unity",
"linux",
"sysroot"
],
"description": "This is the base sysroot package required by all sysroot and toolchain packages",
"dependencies": {},
"_upm": {
"changelog": "### Fixed\n- Fixed payload extraction failing on CoreCLR Editors: shell commands are now passed as a single argument and the payload path is resolved from the package's resolved location"
},
"upmCi": {
"footprint": "6539ab104cd711f4c022368b73058a11cbb06cd9"
},
"documentationUrl": "https://docs.unity3d.com/Packages/com.unity.sysroot.base@1.1/manual/index.html",
"repository": {
"url": "https://github.com/Unity-Technologies/com.unity.sysroot.git",
"type": "git",
"revision": "9c70b3c5d02ba7fb2000bffd29ea721c94c74422"
},
"_fingerprint": "0a249da1e1ab453a94cc00ecfb7c87e38d2c154a"
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0445a7983a983d97f848d19d5eeebf7b
PackageManifestImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: