File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3737project (godot-cpp)
3838cmake_minimum_required (VERSION 3.6)
3939
40+ option (GENERATE_TEMPLATE_GET_NODE "Generate a template version of the Node class's get_node." ON )
41+
4042# Change the output directory to the bin directory
4143set (BUILD_PATH ${CMAKE_SOURCE_DIR} /bin)
4244set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${BUILD_PATH} " )
@@ -131,8 +133,14 @@ else()
131133endif ()
132134
133135# Generate source from the bindings file
136+ if (GENERATE_TEMPLATE_GET_NODE)
137+ set (GENERATE_BINDING_PARAMETERS "True" )
138+ else ()
139+ set (GENERATE_BINDING_PARAMETERS "False" )
140+ endif ()
141+
134142message (STATUS "Generating Bindings" )
135- execute_process (COMMAND "python" "-c" "import binding_generator; binding_generator.generate_bindings(\" ${GODOT_CUSTOM_API_FILE} \" , True )"
143+ execute_process (COMMAND "python" "-c" "import binding_generator; binding_generator.generate_bindings(\" ${GODOT_CUSTOM_API_FILE} \" , ${GENERATE_BINDING_PARAMETERS} )"
136144 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
137145 RESULT_VARIABLE GENERATION_RESULT
138146 OUTPUT_VARIABLE GENERATION_OUTPUT)
You can’t perform that action at this time.
0 commit comments