Consolidate WASM bindings into a single C++ file.

PiperOrigin-RevId: 827850819
Change-Id: I23e099d4e72557d79354339953246ac4eeee7ca3
This commit is contained in:
Matija Kecman
2025-11-04 01:36:22 -08:00
committed by Copybara-Service
parent 7d7648f7ed
commit 10130297c0
9 changed files with 6969 additions and 7111 deletions
+2 -7
View File
@@ -25,16 +25,11 @@ from wasm.codegen.helpers import common
def generate_all_bindings():
"""Generates WASM bindings for MuJoCo."""
template_path_h, generated_path_h = common.get_file_path(
"templates", "generated", "bindings.h"
)
template_path_cc, generated_path_cc = common.get_file_path(
"templates", "generated", "bindings.cc"
)
builder = binding_builder.BindingBuilder(
template_path_h, template_path_cc, generated_path_h, generated_path_cc
)
builder.set_enums().set_headers().set_structs().set_functions().build()
builder = binding_builder.BindingBuilder(template_path_cc, generated_path_cc)
builder.set_enums().set_structs().set_functions().build()
if __name__ == "__main__":