-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2022.6.0' into support/hololens2
2022.6.0
- Loading branch information
Showing
19 changed files
with
1,912 additions
and
1,802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/_source | ||
/_build | ||
/_install | ||
*.swp | ||
/Sora/Generated | ||
/_source | ||
/_build | ||
/_install | ||
*.swp | ||
/Sora/Generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
#if UNITY_IOS | ||
|
||
using UnityEngine; | ||
using UnityEditor; | ||
using UnityEditor.iOS.Xcode; | ||
using UnityEditor.Callbacks; | ||
|
||
public class SoraUnitySdkPostProcessor | ||
{ | ||
[PostProcessBuildAttribute(500)] | ||
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject) | ||
{ | ||
if (buildTarget != BuildTarget.iOS) | ||
{ | ||
return; | ||
} | ||
|
||
var projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj"; | ||
PBXProject proj = new PBXProject(); | ||
proj.ReadFromFile(projPath); | ||
#if UNITY_2019_3_OR_NEWER | ||
string guid = proj.GetUnityFrameworkTargetGuid(); | ||
#else | ||
string guid = proj.TargetGuidByName("Unity-iPhone"); | ||
#endif | ||
|
||
proj.AddBuildProperty(guid, "OTHER_LDFLAGS", "-ObjC"); | ||
proj.SetBuildProperty(guid, "ENABLE_BITCODE", "NO"); | ||
proj.AddFrameworkToProject(guid, "VideoToolbox.framework", false); | ||
proj.AddFrameworkToProject(guid, "GLKit.framework", false); | ||
proj.AddFrameworkToProject(guid, "Network.framework", false); | ||
// libwebrtc.a には新しい libvpx が、libiPhone-lib.a には古い libvpx が入っていて、 | ||
// デフォルトのリンク順序だと古い libvpx が使われてしまう。 | ||
// それを回避するために libiPhone-lib.a を削除して新しく追加し直すことで | ||
// リンク順序を変えてやる。 | ||
string fileGuid = proj.FindFileGuidByProjectPath("Libraries/libiPhone-lib.a"); | ||
proj.RemoveFileFromBuild(guid, fileGuid); | ||
proj.AddFileToBuild(guid, fileGuid); | ||
|
||
proj.WriteToFile(projPath); | ||
} | ||
} | ||
|
||
#endif | ||
#if UNITY_IOS | ||
|
||
using UnityEngine; | ||
using UnityEditor; | ||
using UnityEditor.iOS.Xcode; | ||
using UnityEditor.Callbacks; | ||
|
||
public class SoraUnitySdkPostProcessor | ||
{ | ||
[PostProcessBuildAttribute(500)] | ||
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject) | ||
{ | ||
if (buildTarget != BuildTarget.iOS) | ||
{ | ||
return; | ||
} | ||
|
||
var projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj"; | ||
PBXProject proj = new PBXProject(); | ||
proj.ReadFromFile(projPath); | ||
#if UNITY_2019_3_OR_NEWER | ||
string guid = proj.GetUnityFrameworkTargetGuid(); | ||
#else | ||
string guid = proj.TargetGuidByName("Unity-iPhone"); | ||
#endif | ||
|
||
proj.AddBuildProperty(guid, "OTHER_LDFLAGS", "-ObjC"); | ||
proj.SetBuildProperty(guid, "ENABLE_BITCODE", "NO"); | ||
proj.AddFrameworkToProject(guid, "VideoToolbox.framework", false); | ||
proj.AddFrameworkToProject(guid, "GLKit.framework", false); | ||
proj.AddFrameworkToProject(guid, "Network.framework", false); | ||
// libwebrtc.a には新しい libvpx が、libiPhone-lib.a には古い libvpx が入っていて、 | ||
// デフォルトのリンク順序だと古い libvpx が使われてしまう。 | ||
// それを回避するために libiPhone-lib.a を削除して新しく追加し直すことで | ||
// リンク順序を変えてやる。 | ||
string fileGuid = proj.FindFileGuidByProjectPath("Libraries/libiPhone-lib.a"); | ||
proj.RemoveFileFromBuild(guid, fileGuid); | ||
proj.AddFileToBuild(guid, fileGuid); | ||
|
||
proj.WriteToFile(projPath); | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.