Consolidate WASM bindings into a single C++ file.
PiperOrigin-RevId: 827850819 Change-Id: I23e099d4e72557d79354339953246ac4eeee7ca3
This commit is contained in:
committed by
Copybara-Service
parent
7d7648f7ed
commit
10130297c0
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user