2022-10-09 03:25:56 +08:00
|
|
|
using UnityEditorInternal;
|
|
|
|
using UnityEngine;
|
|
|
|
namespace HybridCLR.Editor
|
|
|
|
{
|
2022-10-09 20:53:13 +08:00
|
|
|
[FilePath("ProjectSettings/HybridCLRSettings.asset")]
|
|
|
|
public class HybridCLRSettings : ScriptableSingleton<HybridCLRSettings>
|
2022-10-09 03:25:56 +08:00
|
|
|
{
|
|
|
|
[Header("开启HybridCLR插件")]
|
|
|
|
public bool enable = true;
|
|
|
|
|
2022-10-09 20:53:13 +08:00
|
|
|
[Header("使用全局安装的il2cpp")]
|
|
|
|
public bool useGlobalIl2cpp;
|
|
|
|
|
2022-11-28 12:20:52 +08:00
|
|
|
[Header("hybridclr 仓库 URL")]
|
|
|
|
public string hybridclrRepoURL = "https://gitee.com/focus-creative-games/hybridclr";
|
|
|
|
|
|
|
|
[Header("il2cpp_plus 仓库 URL")]
|
|
|
|
public string il2cppPlusRepoURL = "https://gitee.com/focus-creative-games/il2cpp_plus";
|
2022-10-09 03:25:56 +08:00
|
|
|
|
2022-10-09 20:53:13 +08:00
|
|
|
[Header("热更新Assembly Definitions")]
|
2022-10-09 03:25:56 +08:00
|
|
|
public AssemblyDefinitionAsset[] hotUpdateAssemblyDefinitions;
|
|
|
|
|
|
|
|
[Header("热更新dlls")]
|
|
|
|
public string[] hotUpdateAssemblies;
|
|
|
|
|
2022-10-18 13:48:43 +08:00
|
|
|
[Header("预留的热更新dlls")]
|
|
|
|
public string[] preserveHotUpdateAssemblies;
|
|
|
|
|
2022-10-23 17:46:09 +08:00
|
|
|
[Header("热更新dll编译输出根目录")]
|
|
|
|
public string hotUpdateDllCompileOutputRootDir = "HybridCLRData/HotUpdateDlls";
|
|
|
|
|
2022-12-02 10:33:13 +08:00
|
|
|
[Header("外部热更新dll搜索路径")]
|
|
|
|
public string[] externalHotUpdateAssembliyDirs;
|
|
|
|
|
2023-05-20 10:40:58 +08:00
|
|
|
[Header("裁减后AOT dll的输出目录")]
|
|
|
|
public string strippedAOTDllOutputRootDir = "HybridCLRData/AOTDllOutput";
|
|
|
|
|
|
|
|
[Header("裁减后AOT dll的备份目录")]
|
|
|
|
public string strippedAOTDllSnapshotDir = "HybridCLRData/AOTDllSnapshot";
|
2022-10-23 17:46:09 +08:00
|
|
|
|
2022-10-19 11:57:53 +08:00
|
|
|
[Header("补充元数据AOT dlls")]
|
|
|
|
public string[] patchAOTAssemblies;
|
|
|
|
|
2022-10-14 23:20:35 +08:00
|
|
|
[Header("生成的link.xml路径")]
|
2022-10-09 03:25:56 +08:00
|
|
|
public string outputLinkFile = "HybridCLRData/Generated/link.xml";
|
|
|
|
|
|
|
|
[Header("自动扫描生成的AOTGenericReferences.cs路径")]
|
|
|
|
public string outputAOTGenericReferenceFile = "HybridCLRData/Generated/AOTGenericReferences.cs";
|
|
|
|
|
|
|
|
[Header("AOT泛型实例化搜索迭代次数")]
|
2022-10-14 11:44:30 +08:00
|
|
|
public int maxGenericReferenceIteration = 10;
|
2022-10-09 03:25:56 +08:00
|
|
|
|
|
|
|
[Header("MethodBridge泛型搜索迭代次数")]
|
2022-10-14 11:44:30 +08:00
|
|
|
public int maxMethodBridgeGenericIteration = 10;
|
2022-10-09 03:25:56 +08:00
|
|
|
}
|
|
|
|
}
|