hybridclr_unity/Editor/Settings/HybridCLRSettings.cs

55 lines
1.9 KiB
C#
Raw Normal View History

using UnityEditorInternal;
using UnityEngine;
namespace HybridCLR.Editor.Settings
{
2022-10-09 20:53:13 +08:00
[FilePath("ProjectSettings/HybridCLRSettings.asset")]
public class HybridCLRSettings : ScriptableSingleton<HybridCLRSettings>
{
[Header("开启HybridCLR插件")]
public bool enable = true;
2022-10-09 20:53:13 +08:00
[Header("使用全局安装的il2cpp")]
public bool useGlobalIl2cpp;
[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 20:53:13 +08:00
[Header("热更新Assembly Definitions")]
public AssemblyDefinitionAsset[] hotUpdateAssemblyDefinitions;
[Header("热更新dlls")]
public string[] hotUpdateAssemblies;
[Header("预留的热更新dlls")]
public string[] preserveHotUpdateAssemblies;
[Header("热更新dll编译输出根目录")]
public string hotUpdateDllCompileOutputRootDir = "HybridCLRData/HotUpdateDlls";
[Header("外部热更新dll搜索路径")]
public string[] externalHotUpdateAssembliyDirs;
[Header("裁减后AOT dll输出根目录")]
public string strippedAOTDllOutputRootDir = "HybridCLRData/AssembliesPostIl2CppStrip";
[Header("补充元数据AOT dlls")]
public string[] patchAOTAssemblies;
[Header("生成的link.xml路径")]
public string outputLinkFile = "HybridCLRGenerate/link.xml";
[Header("自动扫描生成的AOTGenericReferences.cs路径")]
public string outputAOTGenericReferenceFile = "HybridCLRGenerate/AOTGenericReferences.cs";
[Header("AOT泛型实例化搜索迭代次数")]
public int maxGenericReferenceIteration = 10;
[Header("MethodBridge泛型搜索迭代次数")]
public int maxMethodBridgeGenericIteration = 10;
}
}