Skip to content

Commit

Permalink
Changes from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Aug 14, 2024
1 parent 8a4ed88 commit 8f9ab6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
28 changes: 11 additions & 17 deletions Editor/CompileCesiumForUnityNative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -550,29 +550,23 @@ private static void ConfigureEnvironmentVariables(IDictionary<string, string> en
}
#endif

// If the NDK root has a space in it, this will confuse broken software like OpenSSL's build process.
// So map a drive letter and rewrite the path.
if (ndkRoot != null && ndkRoot.Contains(' '))
{
if (!Directory.Exists("N:\\"))
{
Process.Start("subst", "N: \"" + ndkRoot + "\"").WaitForExit();
}

ndkRoot = "N:\\";
}

// On Windows, use the make program included in the NDK. Because Visual Studio (which is usually
// the default) won't work to build for Android.
if (library.Platform == BuildTarget.Android && Environment.OSVersion.Platform == PlatformID.Win32NT)
{
library.ExtraConfigureArgs.Add("-G Ninja");

// if (!string.IsNullOrEmpty(ndkRoot))
// {
// string make = Path.Combine(ndkRoot, "prebuilt", "windows-x86_64", "bin", "make.exe").Replace('\\', '/');
// library.ExtraConfigureArgs.Add($"-DCMAKE_MAKE_PROGRAM=\"{make}\"");
// }
// If the NDK root has a space in it, this will confuse broken software like OpenSSL's build process.
// So map a drive letter and rewrite the path.
if (ndkRoot != null && ndkRoot.Contains(' '))
{
if (!Directory.Exists("N:\\"))
{
Process.Start("subst", "N: \"" + ndkRoot + "\"").WaitForExit();
}

ndkRoot = "N:\\";
}
}

if (!string.IsNullOrEmpty(ndkRoot))
Expand Down
2 changes: 1 addition & 1 deletion native~/Editor/src/CesiumIonSessionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ CesiumAsync::Future<bool> CesiumIonSessionImpl::ensureAppDataLoaded(
CesiumIonClient::Response<CesiumIonClient::ApplicationData>&&
appData) {
CesiumAsync::Promise<bool> promise =
_asyncSystem.createPromise<bool>();
asyncSystem.createPromise<bool>();

if (session == nullptr) {
UnityEngine::Debug::LogError(
Expand Down

0 comments on commit 8f9ab6e

Please sign in to comment.