@@ -11,18 +11,12 @@ This if statement simply silences that warning.
1111if (CMAKE_C_COMPILER)
1212endif ()
1313
14- #[=======================================================================[.rst:
15- Include Platform Files
16- ----------------------
17-
18- Because these files are included into the top level CMakelists.txt before the
14+ #[[ Include Platform Files
15+ Because these files are included into the top level CMakeLists.txt before the
1916project directive, it means that
2017
21- * ``CMAKE_CURRENT_SOURCE_DIR`` is the location of godot-cpp's CMakeLists.txt
22- * ``CMAKE_SOURCE_DIR`` is the location where any prior ``project(...)``
23- directive was
24-
25- ]=======================================================================]
18+ CMAKE_CURRENT_SOURCE_DIR is the location of godot-cpp's CMakeLists.txt
19+ CMAKE_SOURCE_DIR is the location where any prior project() directive was ]]
2620include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/GodotCPPModule.cmake)
2721include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/common_compiler_flags.cmake)
2822include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/android.cmake)
@@ -59,7 +53,8 @@ set(ARCH_LIST
5953 wasm32
6054)
6155
62- # Function to map processors to known architectures
56+ #[=============================[ godot_arch_name ]=============================]
57+ #[[ Function to map CMAKE_SYSTEM_PROCESSOR names to godot arch equivalents ]]
6358function (godot_arch_name OUTVAR)
6459 # Special case for macos universal builds that target both x86_64 and arm64
6560 if (DEFINED CMAKE_OSX_ARCHITECTURES)
@@ -109,7 +104,7 @@ endfunction()
109104function (godotcpp_options)
110105 #NOTE: platform is managed using toolchain files.
111106 #NOTE: arch is managed by using toolchain files.
112- # Except for macos universal, which can be set by GODOTCPP_MACOS_UNIVERSAL=YES
107+ # To create a universal build for macos, set CMAKE_OSX_ARCHITECTURES
113108
114109 # Input from user for GDExtension interface header and the API JSON file
115110 set (GODOTCPP_GDEXTENSION_DIR
@@ -183,7 +178,7 @@ function(godotcpp_options)
183178 windows_options()
184179endfunction ()
185180
186- # Function to configure and generate the targets
181+ #[===========================[ Target Generation ]===========================]
187182function (godotcpp_generate)
188183 #[[ Multi-Threaded MSVC Compilation
189184 When using the MSVC compiler the build command -j <n> only specifies
0 commit comments