Rename float=64 build option to precision=double

This makes the build system consistent with Godot again.
Also fix CMake build to define REAL_T_IS_DOUBLE when precision=double.
This commit is contained in:
Ricardo Buring
2023-01-09 11:03:07 +01:00
parent 2f785c9da1
commit 47140cdad0
5 changed files with 17 additions and 17 deletions

View File

@@ -10,10 +10,10 @@ from binding_generator import get_file_list, generate_bindings
api_filepath = "gdextension/extension_api.json"
bits = "64"
double = "float"
precision = "single"
output_dir = "self_test"
generate_bindings(api_filepath, use_template_get_node=False, bits=bits, double=double, output_dir=output_dir)
generate_bindings(api_filepath, use_template_get_node=False, bits=bits, precision=precision, output_dir=output_dir)
flist = get_file_list(api_filepath, output_dir, headers=True, sources=True)
p = Path(output_dir) / "gen"