public static void OnAddedExecutable(BuildReport report, int fileIndex)
 {
     IBuildAnalyzer analyzerForTarget = GetAnalyzerForTarget(report.buildTarget);
     if (analyzerForTarget != null)
     {
         analyzerForTarget.OnAddedExecutable(report, fileIndex);
     }
 }
 public WebGlIl2CppPlatformProvider(BuildTarget target, bool isDevelopmentBuild, string dataDirectory, string nativeLibraryFileName, BuildReport _buildReport) : base(target, Path.Combine(dataDirectory, "Libraries"))
 {
     this.LinkerFlags = "";
     this.Libs = new string[0];
     this.JsPre = new string[0];
     this.JsLib = new string[0];
     this.m_IsDevelopmentBuild = isDevelopmentBuild;
     this.m_NativeLibraryFileName = nativeLibraryFileName;
     this.m_BuildReport = _buildReport;
 }
 public static StrippingInfo GetBuildReportData(BuildReport report)
 {
     if (report == null)
     {
         return null;
     }
     StrippingInfo[] appendices = (StrippingInfo[]) report.GetAppendices(typeof(StrippingInfo));
     if (appendices.Length > 0)
     {
         return appendices[0];
     }
     StrippingInfo info2 = ScriptableObject.CreateInstance<StrippingInfo>();
     report.AddAppendix(info2);
     return info2;
 }
 public static void Postprocess(BuildTarget target, string installPath, string companyName, string productName, int width, int height, string downloadWebplayerUrl, string manualDownloadWebplayerUrl, BuildOptions options, RuntimeClassRegistry usedClassRegistry, BuildReport report)
 {
     BuildPostProcessArgs args;
     string str = "Temp/StagingArea";
     string str2 = "Temp/StagingArea/Data";
     string str3 = "Temp/StagingArea/Data/Managed";
     string playbackEngineDirectory = BuildPipeline.GetPlaybackEngineDirectory(target, options);
     bool flag = ((options & BuildOptions.InstallInBuildFolder) != BuildOptions.CompressTextures) && SupportsInstallInBuildFolder(target);
     if ((installPath == string.Empty) && !flag)
     {
         throw new Exception(installPath + " must not be an empty string");
     }
     IBuildPostprocessor buildPostProcessor = ModuleManager.GetBuildPostProcessor(target);
     if (buildPostProcessor == null)
     {
         throw new UnityException(string.Format("Build target '{0}' not supported", target));
     }
     args.target = target;
     args.stagingAreaData = str2;
     args.stagingArea = str;
     args.stagingAreaDataManaged = str3;
     args.playerPackage = playbackEngineDirectory;
     args.installPath = installPath;
     args.companyName = companyName;
     args.productName = productName;
     args.productGUID = PlayerSettings.productGUID;
     args.options = options;
     args.usedClassRegistry = usedClassRegistry;
     args.report = report;
     buildPostProcessor.PostProcess(args);
 }
 internal static void InstallStreamingAssets(string stagingAreaDataPath, BuildReport report)
 {
     if (Directory.Exists("Assets/StreamingAssets"))
     {
         string target = Path.Combine(stagingAreaDataPath, "StreamingAssets");
         FileUtil.CopyDirectoryRecursiveForPostprocess("Assets/StreamingAssets", target, true);
         if (report != null)
         {
             report.AddFilesRecursive(target, "Streaming Assets");
         }
     }
 }