BROWSER = 2
class Consts:
- def __init__(self, DEBUG: bool, target: Target, **kwargs):
-
+ def __init__(self, DEBUG: bool, target: Target, outdir: str, **kwargs):
+ self.outdir = outdir
self.c_type_map = dict(
uint8_t = ['number', 'Uint8Array'],
uint16_t = ['number', 'Uint16Array'],
self.hu_struct_file_prefix = f"""
import CommonBase from './CommonBase';
-import * as bindings from '../bindings' // TODO: figure out location
+import * as bindings from '../bindings.mjs'
"""
self.c_fn_ty_pfx = ""
- self.file_ext = ".ts"
+ self.file_ext = ".mts"
self.ptr_c_ty = "uint32_t"
self.ptr_native_ty = "number"
self.result_c_ty = "uint32_t"
out_java_struct += ("\t}\n\n")
return (out_java, out_c, out_java_struct)
+
+ def cleanup(self):
+ pass