Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and CI improvements, building on vcpkg #487

Merged
merged 18 commits into from
Aug 14, 2024
Merged

Build and CI improvements, building on vcpkg #487

merged 18 commits into from
Aug 14, 2024

Conversation

kring
Copy link
Member

@kring kring commented Aug 14, 2024

This is a PR into #479, and I'm going to merge it immediately now that I'm happy with it.

Previously we were assuming all generated code was ours, and including
it all in the built package. In Unity 2022.3, this assumption no longer
holds.
The JDK module name was deduced by running:

```
"C:/Program Files/Unity Hub/Unity Hub.exe" -- --headless install-modules --version 2022.3.41f1 --changeset 0f988161febf --module android android-sdk-ndk-tools android-open-jdk universal-windows-platform uwp-il2cpp
```

And replacing android-sdk-ndk-tools with Unity's recommendation.
Sometimes, during the tests, the managed CesiumIonSession could get
garbage collected before the requests made as part of the "resume"
completed. Because we were using the corresponding Impl class in the
continuations, and the Impl class's lifetime is controlled by the
lifetime of the managed object, this would sometimes cause a crash. The
solution implemented here is to make sure the continuations also keep
the managed instance alive. We also check to see if the held managed
instance becomes nullptr, which handles causes like AppDomain unload.
So hopefully we'll get ARM on ARM.
If we don't specify, it sits there waiting for us to choose.
This will hopefully drastically speed up the macOS build because it
won't have to wait ages for the audio system to time out.
@kring kring merged commit 1a09665 into vcpkg Aug 14, 2024
7 checks passed
@kring kring deleted the vcpkg-swl branch August 14, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant