public static HashSet <string> GetNativeModulesToRegister(HashSet <string> nativeClasses) { if (nativeClasses == null) { return(CodeStrippingUtils.GetAllStrippableModules()); } return(CodeStrippingUtils.GetRequiredStrippableModules(nativeClasses)); }
public static HashSet <string> GetNativeModulesToRegister(HashSet <UnityType> nativeClasses, StrippingInfo strippingInfo) { return((nativeClasses != null) ? CodeStrippingUtils.GetRequiredStrippableModules(nativeClasses, strippingInfo) : CodeStrippingUtils.GetAllStrippableModules()); }
public static void WriteModuleAndClassRegistrationFile(string strippedAssemblyDir, string outputDir, RuntimeClassRegistry rcr) { HashSet <string> hashSet = (PlayerSettings.strippingLevel != StrippingLevel.Disabled) ? CodeStrippingUtils.GenerateNativeClassList(rcr, strippedAssemblyDir, CodeStrippingUtils.GetUserAssemblies(strippedAssemblyDir)) : null; if (hashSet != null) { CodeStrippingUtils.ExcludeModuleManagers(ref hashSet); } HashSet <string> nativeModules = (hashSet != null) ? CodeStrippingUtils.GetRequiredStrippableModules(hashSet) : CodeStrippingUtils.GetAllStrippableModules(); string file = Path.Combine(outputDir, "UnityClassRegistration.cpp"); CodeStrippingUtils.WriteModuleAndClassRegistrationFile(file, nativeModules, hashSet); }