Skip to content

Build and CI improvements, building on vcpkg - #487

Merged
kring merged 18 commits into
vcpkgfrom
vcpkg-swl
Aug 14, 2024
Merged

Build and CI improvements, building on vcpkg#487
kring merged 18 commits into
vcpkgfrom
vcpkg-swl

Conversation

@kring

@kring kring commented Aug 14, 2024

Copy link
Copy Markdown
Member

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

kring added 18 commits August 12, 2024 18:13
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
@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