mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
39facb35a0
Implements https://github.com/godotengine/godot-proposals/issues/3371. New `target` presets ==================== The `tools` option is removed and `target` changes to use three new presets, which match the builds users are familiar with. These targets control the default optimization level and enable editor-specific and debugging code: - `editor`: Replaces `tools=yes target=release_debug`. * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2` - `template_debug`: Replaces `tools=no target=release_debug`. * Defines: `DEBUG_ENABLED`, `-O2`/`/O2` - `template_release`: Replaces `tools=no target=release`. * Defines: `-O3`/`/O2` New `dev_build` option ====================== The previous `target=debug` is now replaced by a separate `dev_build=yes` option, which can be used in combination with either of the three targets, and changes the following: - `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`), enables generating debug symbols, does not define `NDEBUG` so `assert()` works in thirdparty libraries, adds a `.dev` suffix to the binary name. Note: Unlike previously, `dev_build` defaults to off so that users who compile Godot from source get an optimized and small build by default. Engine contributors should now set `dev_build=yes` in their build scripts or IDE configuration manually. Changed binary names ==================== The name of generated binaries and object files are changed too, to follow this format: `godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]` For example: - `godot.linuxbsd.editor.dev.arm64` - `godot.windows.template_release.double.x86_64.mono.exe` Be sure to update your links/scripts/IDE config accordingly. More flexible `optimize` and `debug_symbols` options ==================================================== The optimization level and whether to generate debug symbols can be further specified with the `optimize` and `debug_symbols` options. So the default values listed above for the various `target` and `dev_build` combinations are indicative and can be replaced when compiling, e.g.: `scons p=linuxbsd target=template_debug dev_build=yes optimize=debug` will make a "debug" export template with dev-only code enabled, `-Og` optimization level for GCC/Clang, and debug symbols. Perfect for debugging complex crashes at runtime in an exported project. |
||
---|---|---|
.. | ||
debugger | ||
export | ||
fileserver | ||
icons | ||
import | ||
plugins | ||
translations | ||
action_map_editor.cpp | ||
action_map_editor.h | ||
animation_bezier_editor.cpp | ||
animation_bezier_editor.h | ||
animation_track_editor_plugins.cpp | ||
animation_track_editor_plugins.h | ||
animation_track_editor.cpp | ||
animation_track_editor.h | ||
array_property_edit.cpp | ||
array_property_edit.h | ||
audio_stream_preview.cpp | ||
audio_stream_preview.h | ||
code_editor.cpp | ||
code_editor.h | ||
connections_dialog.cpp | ||
connections_dialog.h | ||
create_dialog.cpp | ||
create_dialog.h | ||
dependency_editor.cpp | ||
dependency_editor.h | ||
dictionary_property_edit.cpp | ||
dictionary_property_edit.h | ||
doc_tools.cpp | ||
doc_tools.h | ||
editor_about.cpp | ||
editor_about.h | ||
editor_asset_installer.cpp | ||
editor_asset_installer.h | ||
editor_atlas_packer.cpp | ||
editor_atlas_packer.h | ||
editor_audio_buses.cpp | ||
editor_audio_buses.h | ||
editor_autoload_settings.cpp | ||
editor_autoload_settings.h | ||
editor_build_profile.cpp | ||
editor_build_profile.h | ||
editor_builders.py | ||
editor_command_palette.cpp | ||
editor_command_palette.h | ||
editor_data.cpp | ||
editor_data.h | ||
editor_dir_dialog.cpp | ||
editor_dir_dialog.h | ||
editor_feature_profile.cpp | ||
editor_feature_profile.h | ||
editor_file_dialog.cpp | ||
editor_file_dialog.h | ||
editor_file_system.cpp | ||
editor_file_system.h | ||
editor_folding.cpp | ||
editor_folding.h | ||
editor_fonts.cpp | ||
editor_fonts.h | ||
editor_help_search.cpp | ||
editor_help_search.h | ||
editor_help.cpp | ||
editor_help.h | ||
editor_inspector.cpp | ||
editor_inspector.h | ||
editor_layouts_dialog.cpp | ||
editor_layouts_dialog.h | ||
editor_locale_dialog.cpp | ||
editor_locale_dialog.h | ||
editor_log.cpp | ||
editor_log.h | ||
editor_native_shader_source_visualizer.cpp | ||
editor_native_shader_source_visualizer.h | ||
editor_node.cpp | ||
editor_node.h | ||
editor_path.cpp | ||
editor_path.h | ||
editor_paths.cpp | ||
editor_paths.h | ||
editor_plugin_settings.cpp | ||
editor_plugin_settings.h | ||
editor_plugin.cpp | ||
editor_plugin.h | ||
editor_properties_array_dict.cpp | ||
editor_properties_array_dict.h | ||
editor_properties.cpp | ||
editor_properties.h | ||
editor_property_name_processor.cpp | ||
editor_property_name_processor.h | ||
editor_quick_open.cpp | ||
editor_quick_open.h | ||
editor_resource_picker.cpp | ||
editor_resource_picker.h | ||
editor_resource_preview.cpp | ||
editor_resource_preview.h | ||
editor_run_native.cpp | ||
editor_run_native.h | ||
editor_run_script.cpp | ||
editor_run_script.h | ||
editor_run.cpp | ||
editor_run.h | ||
editor_scale.cpp | ||
editor_scale.h | ||
editor_sectioned_inspector.cpp | ||
editor_sectioned_inspector.h | ||
editor_settings_dialog.cpp | ||
editor_settings_dialog.h | ||
editor_settings.cpp | ||
editor_settings.h | ||
editor_spin_slider.cpp | ||
editor_spin_slider.h | ||
editor_themes.cpp | ||
editor_themes.h | ||
editor_title_bar.cpp | ||
editor_title_bar.h | ||
editor_toaster.cpp | ||
editor_toaster.h | ||
editor_translation_parser.cpp | ||
editor_translation_parser.h | ||
editor_translation.cpp | ||
editor_translation.h | ||
editor_undo_redo_manager.cpp | ||
editor_undo_redo_manager.h | ||
editor_vcs_interface.cpp | ||
editor_vcs_interface.h | ||
editor_zoom_widget.cpp | ||
editor_zoom_widget.h | ||
filesystem_dock.cpp | ||
filesystem_dock.h | ||
find_in_files.cpp | ||
find_in_files.h | ||
groups_editor.cpp | ||
groups_editor.h | ||
import_defaults_editor.cpp | ||
import_defaults_editor.h | ||
import_dock.cpp | ||
import_dock.h | ||
inspector_dock.cpp | ||
inspector_dock.h | ||
localization_editor.cpp | ||
localization_editor.h | ||
multi_node_edit.cpp | ||
multi_node_edit.h | ||
node_dock.cpp | ||
node_dock.h | ||
plugin_config_dialog.cpp | ||
plugin_config_dialog.h | ||
pot_generator.cpp | ||
pot_generator.h | ||
progress_dialog.cpp | ||
progress_dialog.h | ||
project_converter_3_to_4.cpp | ||
project_converter_3_to_4.h | ||
project_manager.cpp | ||
project_manager.h | ||
project_settings_editor.cpp | ||
project_settings_editor.h | ||
property_selector.cpp | ||
property_selector.h | ||
register_exporters.h | ||
rename_dialog.cpp | ||
rename_dialog.h | ||
reparent_dialog.cpp | ||
reparent_dialog.h | ||
scene_create_dialog.cpp | ||
scene_create_dialog.h | ||
scene_tree_dock.cpp | ||
scene_tree_dock.h | ||
scene_tree_editor.cpp | ||
scene_tree_editor.h | ||
script_create_dialog.cpp | ||
script_create_dialog.h | ||
SCsub | ||
shader_create_dialog.cpp | ||
shader_create_dialog.h | ||
shader_globals_editor.cpp | ||
shader_globals_editor.h | ||
template_builders.py |