Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:
exclude: |
(?x)^(
gdextension/extension_api\.json|
gdextension/gdextension_interface\.h
gdextension/gdextension_interface\.json
)$

repos:
Expand Down
282 changes: 227 additions & 55 deletions binding_generator.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions cmake/GodotCPPModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ missing. ]]
function(
binding_generator_generate_bindings
API_FILE
INTERFACE_FILE
USE_TEMPLATE_GET_NODE
BITS
PRECISION
Expand All @@ -96,6 +97,7 @@ function(
"from binding_generator import generate_bindings"
"generate_bindings(
api_filepath='${API_FILE}',
interface_filepath='${INTERFACE_FILE}',
use_template_get_node='${USE_TEMPLATE_GET_NODE}',
bits='${BITS}',
precision='${PRECISION}',
Expand Down
2 changes: 2 additions & 0 deletions cmake/common_compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ function(common_compiler_flags)
$<${IS_MSVC}:$<${DISABLE_EXCEPTIONS}:_HAS_EXCEPTIONS=0>>

$<${THREADS_ENABLED}:THREADS_ENABLED>

$<$<NOT:$<BOOL:${GODOTCPP_DEPRECATED}>>:DISABLE_DEPRECATED>
)

target_link_options(
Expand Down
8 changes: 7 additions & 1 deletion cmake/godotcpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ function(godotcpp_options)

#TODO optimize

option(GODOTCPP_DEPRECATED "Enable compatibility code for deprecated and removed features" ON)
option(GODOTCPP_DEV_BUILD "Developer build with dev-only debugging code (DEV_ENABLED)" OFF)

#[[ debug_symbols
Expand Down Expand Up @@ -248,6 +249,9 @@ function(godotcpp_generate)
set(GODOTCPP_GDEXTENSION_API_FILE "${GODOTCPP_CUSTOM_API_FILE}")
endif()

# Interface json file.
set(GODOTCPP_GDEXTENSION_INTERFACE_FILE "${GODOTCPP_GDEXTENSION_DIR}/gdextension_interface.json")

# Build Profile
if(GODOTCPP_BUILD_PROFILE)
message(STATUS "Using build profile to trim api file")
Expand All @@ -262,6 +266,7 @@ function(godotcpp_generate)
endif()

message(STATUS "GODOTCPP_GDEXTENSION_API_FILE = '${GODOTCPP_GDEXTENSION_API_FILE}'")
message(STATUS "GODOTCPP_GDEXTENSION_INTERFACE_FILE = '${GODOTCPP_GDEXTENSION_INTERFACE_FILE}'")

# generate the file list to use
binding_generator_get_file_list( GENERATED_FILES_LIST
Expand All @@ -271,6 +276,7 @@ function(godotcpp_generate)

binding_generator_generate_bindings(
"${GODOTCPP_GDEXTENSION_API_FILE}"
"${GODOTCPP_GDEXTENSION_INTERFACE_FILE}"
"${USE_TEMPLATE_GET_NODE}"
"${BITS}"
"${GODOTCPP_PRECISION}"
Expand Down Expand Up @@ -351,7 +357,7 @@ function(godotcpp_generate)
target_include_directories(
godot-cpp
${GODOTCPP_SYSTEM_HEADERS_ATTRIBUTE}
PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}/gen/include ${GODOTCPP_GDEXTENSION_DIR}
PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}/gen/include
)

# gersemi: off
Expand Down
2 changes: 1 addition & 1 deletion doc_source_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generate_doc_source(dst, source):
g.write("\n")

g.write(
"static godot::internal::DocDataRegistration _doc_data_registration(_doc_data_hash, _doc_data_uncompressed_size, _doc_data_compressed_size, _doc_data_compressed);\n"
"static ::godot::internal::DocDataRegistration _doc_data_registration(_doc_data_hash, _doc_data_uncompressed_size, _doc_data_compressed_size, _doc_data_compressed);\n"
)
g.write("\n")

Expand Down
3,239 changes: 0 additions & 3,239 deletions gdextension/gdextension_interface.h

This file was deleted.

Loading
Loading