feat: Emscripten WASM bindings + CI (combined)#3
Draft
jdsika wants to merge 2 commits into
Draft
Conversation
196b443 to
5ec4207
Compare
Add Embind-based WebAssembly bindings for libOpenDRIVE, enabling browser-side OpenDRIVE processing. Bindings expose: - OpenDriveMap: createFromXml, get_road_network_mesh, get_roads - Road: get_road_signal_mesh, road signals/objects - Lane: get_lane_outline_indices, lane metadata - RoadNetworkMesh: lanes, roadmarks, road objects, road signals - Helper maps: lane types, road mark colors, junction IDs, road/lane metadata, road/lane linkage Includes fix for compile errors in helper function signatures.
Add emscripten-wasm job to CI workflow: - Uses mymindstorm/setup-emsdk with Emscripten 3.1.61 - Configures with -DOPENDRIVE_BUILD_WASM=ON and Ninja generator - Builds WASM artifacts (libOpenDRIVE.js + .wasm) - Verifies artifact presence after build Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Combined development branch
This draft PR combines all feature branches to validate full CI (native + WASM) passes together.
Included:
feat: add Emscripten WASM bindings with Embindsrc/Embind.cpp, CMakeOPENDRIVE_BUILD_WASMoption, mesh testsci: add Emscripten WASM build job.github/workflows/ci.yamlwithbuild-wasmjobCI Status
All three jobs must pass:
ubuntu-22.04-release— native build + testswindows-2022-release— native build + testsemscripten-wasm— WASM build + artifact verificationMerge strategy
Individual PRs (#1, #2) will be merged separately to
main. This draft is for CI validation only.