Initial preparation for Android XR support #1552
Open
+312
−78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are the first few steps toward support for Android XR devices. This should not narrow support for prior Android operating systems and devices. This adds some v8 toolchain root hints to help make sure that the Android OS-supplied v8 library is used, and not a compile of JSC.
For context, there are multiple targets we care about for shipping our existing WebXR BabylonJS app in a native container (in priority order of important to our goals/customers):
The next step will be to create a WebXR API-compatible N-API native module that can integrate with BabylonNative ether by itself, or coordinated through NativeScript. This should allow for existing BabylonJS WebXR codepaths to remain unchanged and for the JS layer to stay ignorant of the kind of JS+3D runtime container it happens to be executing in.