Beispiel #1
0
 protected virtual void SetupStagingArea()
 {
     Directory.CreateDirectory(this.DataFolder);
     this.CopyNativePlugins();
     this.CopyVirtualRealityDependencies();
     PostprocessBuildPlayer.InstallStreamingAssets(this.DataFolder);
     if (this.UseIl2Cpp)
     {
         this.CopyVariationFolderIntoStagingArea();
         string str1 = this.StagingArea + "/Data";
         string destinationFolder = this.DataFolder + "/Managed";
         string str2 = destinationFolder + "/Resources";
         string str3 = destinationFolder + "/Metadata";
         IL2CPPUtils.RunIl2Cpp(str1, this.GetPlatformProvider(this.m_PostProcessArgs.target), (System.Action <string>)(s => {}), this.m_PostProcessArgs.usedClassRegistry, this.Development);
         FileUtil.CreateOrCleanDirectory(str2);
         IL2CPPUtils.CopyEmbeddedResourceFiles(str1, str2);
         FileUtil.CreateOrCleanDirectory(str3);
         IL2CPPUtils.CopyMetadataFiles(str1, str3);
         IL2CPPUtils.CopySymmapFile(str1 + "/Native", destinationFolder);
     }
     if (this.InstallingIntoBuildsFolder)
     {
         this.CopyDataForBuildsFolder();
     }
     else
     {
         if (!this.UseIl2Cpp)
         {
             this.CopyVariationFolderIntoStagingArea();
         }
         this.RenameFilesInStagingArea();
     }
 }
Beispiel #2
0
        private void CopySymbolMap(string stagingArea, string assetsDataData, AndroidTargetDeviceType targetDeviceType)
        {
            string[] components        = new string[] { assetsDataData, "Managed" };
            string   destinationFolder = Paths.Combine(components);

            IL2CPPUtils.CopySymmapFile(Path.Combine(Path.Combine(Path.Combine(stagingArea, "libs"), targetDeviceType.ABI), "Data"), destinationFolder, "-" + targetDeviceType.Architecture);
        }
Beispiel #3
0
 protected virtual void SetupStagingArea()
 {
     Directory.CreateDirectory(this.DataFolder);
     this.CopyNativePlugins();
     this.CopyVirtualRealityDependencies();
     PostprocessBuildPlayer.InstallStreamingAssets(this.DataFolder);
     if (this.UseIl2Cpp)
     {
         this.CopyVariationFolderIntoStagingArea();
         string text  = this.StagingArea + "/Data";
         string text2 = this.DataFolder + "/Managed";
         string text3 = text2 + "/Resources";
         string text4 = text2 + "/Metadata";
         IL2CPPUtils.RunIl2Cpp(text, this.GetPlatformProvider(this.m_PostProcessArgs.target), delegate(string s)
         {
         }, this.m_PostProcessArgs.usedClassRegistry, this.Development);
         FileUtil.CreateOrCleanDirectory(text3);
         IL2CPPUtils.CopyEmbeddedResourceFiles(text, text3);
         FileUtil.CreateOrCleanDirectory(text4);
         IL2CPPUtils.CopyMetadataFiles(text, text4);
         IL2CPPUtils.CopySymmapFile(text + "/Native", text2);
     }
     if (this.InstallingIntoBuildsFolder)
     {
         this.CopyDataForBuildsFolder();
         return;
     }
     if (!this.UseIl2Cpp)
     {
         this.CopyVariationFolderIntoStagingArea();
     }
     this.RenameFilesInStagingArea();
 }
Beispiel #4
0
 protected virtual void SetupStagingArea()
 {
     Directory.CreateDirectory(this.DataFolder);
     this.CopyNativePlugins();
     if (this.m_PostProcessArgs.target == BuildTarget.StandaloneWindows || this.m_PostProcessArgs.target == BuildTarget.StandaloneWindows64)
     {
         this.CreateApplicationData();
     }
     PostprocessBuildPlayer.InstallStreamingAssets(this.DataFolder);
     if (this.UseIl2Cpp)
     {
         this.CopyVariationFolderIntoStagingArea();
         string text  = this.StagingArea + "/Data";
         string text2 = this.DataFolder + "/Managed";
         string text3 = text2 + "/Resources";
         string text4 = text2 + "/Metadata";
         IL2CPPUtils.RunIl2Cpp(text, this.GetPlatformProvider(this.m_PostProcessArgs.target), delegate(string s)
         {
         }, this.m_PostProcessArgs.usedClassRegistry, this.Development);
         FileUtil.CreateOrCleanDirectory(text3);
         IL2CPPUtils.CopyEmbeddedResourceFiles(text, text3);
         FileUtil.CreateOrCleanDirectory(text4);
         IL2CPPUtils.CopyMetadataFiles(text, text4);
         IL2CPPUtils.CopySymmapFile(text + "/Native/Data", text2);
     }
     if (this.InstallingIntoBuildsFolder)
     {
         this.CopyDataForBuildsFolder();
     }
     else
     {
         if (!this.UseIl2Cpp)
         {
             this.CopyVariationFolderIntoStagingArea();
         }
         this.RenameFilesInStagingArea();
         this.m_PostProcessArgs.report.AddFilesRecursive(this.StagingArea, "");
         this.m_PostProcessArgs.report.RelocateFiles(this.StagingArea, "");
     }
 }