Skip to content

Commit

Permalink
Merge pull request #54912 from akien-mga/modules-check-enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Nov 12, 2021
2 parents a54bd6e + 88c4380 commit 0cdd18d
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion editor/doc_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "scene/resources/theme.h"

// Used for a hack preserving Mono properties on non-Mono builds.
#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For mono.

void DocTools::merge_from(const DocTools &p_data) {
for (KeyValue<String, DocData::ClassDoc> &E : class_list) {
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "editor_scale.h"
#include "editor_settings.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For svg.
#ifdef MODULE_SVG_ENABLED
#include "modules/svg/image_loader_svg.h"
#endif
Expand Down
6 changes: 3 additions & 3 deletions editor/import/resource_importer_dynamicfont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

#include "resource_importer_dynamicfont.h"

#include "dynamicfont_import_settings.h"

#include "core/io/file_access.h"
#include "core/io/resource_saver.h"
#include "dynamicfont_import_settings.h"
#include "editor/editor_node.h"
#include "modules/modules_enabled.gen.h"

#include "modules/modules_enabled.gen.h" // For freetype.

String ResourceImporterDynamicFont::get_importer_name() const {
return "font_data_dynamic";
Expand Down
2 changes: 1 addition & 1 deletion editor/plugin_config_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "editor/project_settings_editor.h"
#include "scene/gui/grid_container.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For gdscript.
#ifdef MODULE_GDSCRIPT_ENABLED
#include "modules/gdscript/gdscript.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions editor/rename_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include "rename_dialog.h"

#include "modules/modules_enabled.gen.h" // For regex.
#ifdef MODULE_REGEX_ENABLED

#include "core/string/print_string.h"
Expand Down
7 changes: 3 additions & 4 deletions editor/rename_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@
#ifndef RENAME_DIALOG_H
#define RENAME_DIALOG_H

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For regex.
#ifdef MODULE_REGEX_ENABLED

#include "core/object/undo_redo.h"
#include "editor/scene_tree_editor.h"
#include "scene/gui/check_box.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/option_button.h"
#include "scene/gui/spin_box.h"

#include "core/object/undo_redo.h"
#include "editor/scene_tree_editor.h"

/**
@author Blazej Floch
*/
Expand Down
2 changes: 2 additions & 0 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
#include "servers/display_server.h"
#include "servers/rendering_server.h"

#include "modules/modules_enabled.gen.h" // For regex.

void SceneTreeDock::_nodes_drag_begin() {
if (restore_script_editor_on_drag) {
EditorNode::get_singleton()->set_visible_editor(EditorNode::EDITOR_SCRIPT);
Expand Down
2 changes: 2 additions & 0 deletions editor/scene_tree_dock.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include "scene/gui/tree.h"
#include "scene_tree_editor.h"

#include "modules/modules_enabled.gen.h" // For regex.

class EditorNode;
class ShaderCreateDialog;

Expand Down
5 changes: 2 additions & 3 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#include "main/performance.h"
#include "main/splash.gen.h"
#include "main/splash_editor.gen.h"
#include "modules/modules_enabled.gen.h"
#include "modules/register_module_types.h"
#include "platform/register_platform_apis.h"
#include "scene/main/scene_tree.h"
Expand All @@ -81,16 +80,16 @@
#endif

#ifdef TOOLS_ENABLED

#include "editor/doc_data_class_path.gen.h"
#include "editor/doc_tools.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/progress_dialog.h"
#include "editor/project_manager.h"

#endif

#include "modules/modules_enabled.gen.h" // For mono.

/* Static members */

// Singletons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "gdscript_workspace.h"
#include "lsp.hpp"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For jsonrpc.
#ifdef MODULE_JSONRPC_ENABLED
#include "modules/jsonrpc/jsonrpc.h"
#else
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/gltf_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#include "scene/resources/multimesh.h"
#include "scene/resources/surface_tool.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For csg, gridmap.

#ifdef MODULE_CSG_ENABLED
#include "modules/csg/csg_shape.h"
Expand Down
3 changes: 2 additions & 1 deletion modules/gltf/gltf_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
#include "scene/resources/material.h"
#include "scene/resources/texture.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For csg, gridmap.

#include <cstdint>

class GLTFState;
Expand Down
3 changes: 2 additions & 1 deletion modules/navigation/navigation_mesh_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
#include "editor/editor_settings.h"
#endif

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For csg, gridmap.

#ifdef MODULE_CSG_ENABLED
#include "modules/csg/csg_shape.h"
#endif
Expand Down
2 changes: 2 additions & 0 deletions modules/text_server_adv/text_server_adv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include "thirdparty/icu4c/icudata.gen.h"
#endif

#include "modules/modules_enabled.gen.h" // For freetype, msdfgen.

#ifdef MODULE_MSDFGEN_ENABLED
#include "core/ShapeDistanceFinder.h"
#include "core/contour-combiners.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/text_server_adv/text_server_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <unicode/ustring.h>
#include <unicode/utypes.h>

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For freetype, msdfgen.

#ifdef MODULE_FREETYPE_ENABLED
#include <ft2build.h>
Expand Down
2 changes: 2 additions & 0 deletions modules/text_server_fb/text_server_fb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include "core/error/error_macros.h"
#include "core/string/print_string.h"

#include "modules/modules_enabled.gen.h" // For freetype, msdfgen.

#ifdef MODULE_MSDFGEN_ENABLED
#include "core/ShapeDistanceFinder.h"
#include "core/contour-combiners.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/text_server_fb/text_server_fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "core/templates/thread_work_pool.h"
#include "scene/resources/texture.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For freetype, msdfgen.

#ifdef MODULE_FREETYPE_ENABLED
#include <ft2build.h>
Expand Down
2 changes: 1 addition & 1 deletion platform/javascript/os_javascript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "main/main.h"
#include "platform/javascript/display_server_javascript.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For websocket.
#ifdef MODULE_WEBSOCKET_ENABLED
#include "modules/websocket/remote_debugger_peer_websocket.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "scene/scene_string_names.h"
#include "servers/display_server.h"

#include "modules/modules_enabled.gen.h"
#include "modules/modules_enabled.gen.h" // For regex.
#ifdef MODULE_REGEX_ENABLED
#include "modules/regex/regex.h"
#endif
Expand Down

0 comments on commit 0cdd18d

Please sign in to comment.