More build time optimizations.

This commit is contained in:
Alex Shvartzkop 2024-05-06 04:39:25 +03:00
parent 4ecca01392
commit 5475359d00
31 changed files with 69 additions and 17 deletions

View File

@ -31,6 +31,7 @@
#include <wx/bmpbuttn.h> #include <wx/bmpbuttn.h>
#include <wx/button.h> #include <wx/button.h>
#include <wx/checkbox.h> #include <wx/checkbox.h>
#include <wx/log.h>
PANEL_GIT_REPOS::PANEL_GIT_REPOS( wxWindow* aParent ) : PANEL_GIT_REPOS_BASE( aParent) PANEL_GIT_REPOS::PANEL_GIT_REPOS( wxWindow* aParent ) : PANEL_GIT_REPOS_BASE( aParent)

View File

@ -26,6 +26,7 @@
#include <bitmaps.h> #include <bitmaps.h>
#include <tool/conditional_menu.h> #include <tool/conditional_menu.h>
#include <tool/action_menu.h> #include <tool/action_menu.h>
#include <tool/selection.h>
#include <kiface_base.h> #include <kiface_base.h>
#include <widgets/ui_common.h> #include <widgets/ui_common.h>

View File

@ -26,11 +26,12 @@
#ifndef NETLIST_EXPORTER_H #ifndef NETLIST_EXPORTER_H
#define NETLIST_EXPORTER_H #define NETLIST_EXPORTER_H
#include <sch_symbol.h>
#include <sch_label.h>
#include <sch_sheet.h>
#include <schematic.h> #include <schematic.h>
class SCH_SYMBOL;
class LIB_SYMBOL;
class REPORTER;
/** /**
* Track unique wxStrings and is useful in telling if a string has been seen before. * Track unique wxStrings and is useful in telling if a string has been seen before.
*/ */

View File

@ -26,6 +26,8 @@
#include "netlist_exporter_spice.h" #include "netlist_exporter_spice.h"
enum LABEL_FLAG_SHAPE : unsigned int;
class NETLIST_EXPORTER_SPICE_MODEL : public NETLIST_EXPORTER_SPICE class NETLIST_EXPORTER_SPICE_MODEL : public NETLIST_EXPORTER_SPICE
{ {

View File

@ -49,6 +49,7 @@
#include <tools/ee_selection_tool.h> #include <tools/ee_selection_tool.h>
#include <view/view_controls.h> #include <view/view_controls.h>
#include <wx/choicdlg.h> #include <wx/choicdlg.h>
#include <wx/fswatcher.h>
#include <wx/log.h> #include <wx/log.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>

View File

@ -35,7 +35,6 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <wx/event.h> #include <wx/event.h>
#include <wx/fswatcher.h>
#include <wx/datetime.h> #include <wx/datetime.h>
#include <wx/gdicmn.h> #include <wx/gdicmn.h>
#include <wx/string.h> #include <wx/string.h>
@ -59,6 +58,21 @@ class SYMBOL_EDITOR_SETTINGS;
class NL_SCHEMATIC_PLUGIN; class NL_SCHEMATIC_PLUGIN;
class PANEL_SCH_SELECTION_FILTER; class PANEL_SCH_SELECTION_FILTER;
#ifdef wxHAS_INOTIFY
#define wxFileSystemWatcher wxInotifyFileSystemWatcher
#elif defined( wxHAS_KQUEUE ) && defined( wxHAVE_FSEVENTS_FILE_NOTIFICATIONS )
#define wxFileSystemWatcher wxFsEventsFileSystemWatcher
#elif defined( wxHAS_KQUEUE )
#define wxFileSystemWatcher wxKqueueFileSystemWatcher
#elif defined( __WINDOWS__ )
#define wxFileSystemWatcher wxMSWFileSystemWatcher
#else
#define wxFileSystemWatcher wxPollingFileSystemWatcher
#endif
class wxFileSystemWatcher;
class wxFileSystemWatcherEvent;
/** /**
* Load symbol from symbol library table. * Load symbol from symbol library table.
* *

View File

@ -35,6 +35,7 @@
#include <connection_graph.h> #include <connection_graph.h>
#include <functional> #include <functional>
#include <wx/log.h>
SCH_COMMIT::SCH_COMMIT( TOOL_MANAGER* aToolMgr ) : SCH_COMMIT::SCH_COMMIT( TOOL_MANAGER* aToolMgr ) :

View File

@ -57,8 +57,9 @@
#include <string_utils.h> #include <string_utils.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <wx/mstream.h>
#include <wx/log.h> #include <wx/log.h>
#include <wx/dir.h>
#include <wx/mstream.h>
#include <wx/zstream.h> #include <wx/zstream.h>
#include <wx/wfstream.h> #include <wx/wfstream.h>
#include <magic_enum.hpp> #include <magic_enum.hpp>

View File

@ -40,6 +40,7 @@
#include <string_utils.h> #include <string_utils.h>
#include <bezier_curves.h> #include <bezier_curves.h>
#include <wx/base64.h> #include <wx/base64.h>
#include <wx/log.h>
#include <wx/url.h> #include <wx/url.h>
#include <wx/mstream.h> #include <wx/mstream.h>
#include <gfx_import_utils.h> #include <gfx_import_utils.h>

View File

@ -89,7 +89,7 @@ private:
/* /*
* Label and flag shapes used with text objects. * Label and flag shapes used with text objects.
*/ */
enum LABEL_FLAG_SHAPE enum LABEL_FLAG_SHAPE : unsigned int
{ {
L_INPUT, L_INPUT,
L_OUTPUT, L_OUTPUT,
@ -107,7 +107,7 @@ enum LABEL_FLAG_SHAPE
/* /*
* Specific enums for property manager (not used elsewhere) * Specific enums for property manager (not used elsewhere)
*/ */
enum LABEL_SHAPE enum LABEL_SHAPE : unsigned int
{ {
LABEL_INPUT = L_INPUT, LABEL_INPUT = L_INPUT,
LABEL_OUTPUT = L_OUTPUT, LABEL_OUTPUT = L_OUTPUT,
@ -116,7 +116,7 @@ enum LABEL_SHAPE
LABEL_PASSIVE = L_UNSPECIFIED LABEL_PASSIVE = L_UNSPECIFIED
}; };
enum FLAG_SHAPE enum FLAG_SHAPE : unsigned int
{ {
FLAG_DOT = F_DOT, FLAG_DOT = F_DOT,
FLAG_CIRCLE = F_ROUND, FLAG_CIRCLE = F_ROUND,

View File

@ -26,6 +26,7 @@
#include <stack> #include <stack>
#include <wx/filefn.h> #include <wx/filefn.h>
#include <wx/log.h>
#include <eda_item.h> #include <eda_item.h>
#include <id.h> #include <id.h>

View File

@ -45,12 +45,11 @@
#include <title_block.h> #include <title_block.h>
#include <lib_id.h> #include <lib_id.h>
#include <sch_symbol.h> // SCH_SYMBOL_INSTANCE
#include <sch_reference_list.h> #include <sch_reference_list.h>
#include <sch_rtree.h> #include <sch_rtree.h>
#include <sch_sheet.h> #include <sch_sheet.h>
#include <sch_label.h> #include <sch_label.h>
#include <sch_sheet_path.h> #include <sch_sheet_path.h> // SCH_SYMBOL_INSTANCE
class BUS_ALIAS; class BUS_ALIAS;
class EDA_ITEM; class EDA_ITEM;

View File

@ -36,6 +36,7 @@
#include <tools/ee_selection_tool.h> #include <tools/ee_selection_tool.h>
#include <drawing_sheet/ds_proxy_undo_item.h> #include <drawing_sheet/ds_proxy_undo_item.h>
#include <tool/actions.h> #include <tool/actions.h>
#include <wx/log.h>
/* Functions to undo and redo edit commands. /* Functions to undo and redo edit commands.

View File

@ -30,6 +30,8 @@
#include <wx/wfstream.h> #include <wx/wfstream.h>
#include <wx/stdstream.h> #include <wx/stdstream.h>
#include <wx/debug.h> #include <wx/debug.h>
#include <wx/clipbrd.h>
#include <wx/log.h>
#include <project/project_file.h> #include <project/project_file.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
@ -50,7 +52,6 @@
#include <dialogs/dialog_sim_format_value.h> #include <dialogs/dialog_sim_format_value.h>
#include <eeschema_settings.h> #include <eeschema_settings.h>
#include "kiplatform/app.h" #include "kiplatform/app.h"
#include "wx/clipbrd.h"
SIM_TRACE_TYPE operator|( SIM_TRACE_TYPE aFirst, SIM_TRACE_TYPE aSecond ) SIM_TRACE_TYPE operator|( SIM_TRACE_TYPE aFirst, SIM_TRACE_TYPE aSecond )

View File

@ -79,6 +79,7 @@
#include <panel_sym_lib_table.h> #include <panel_sym_lib_table.h>
#include <string_utils.h> #include <string_utils.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include <wx/log.h>
bool SYMBOL_EDIT_FRAME::m_showDeMorgan = false; bool SYMBOL_EDIT_FRAME::m_showDeMorgan = false;

View File

@ -61,6 +61,7 @@
#include <tools/ee_inspection_tool.h> #include <tools/ee_inspection_tool.h>
#include <view/view_controls.h> #include <view/view_controls.h>
#include <wx/srchctrl.h> #include <wx/srchctrl.h>
#include <wx/log.h>
#include <default_values.h> #include <default_values.h>
#include <string_utils.h> #include <string_utils.h>

View File

@ -78,6 +78,7 @@
#include <wx_filename.h> #include <wx_filename.h>
#include <sch_sheet_path.h> #include <sch_sheet_path.h>
#include <wx/filedlg.h> #include <wx/filedlg.h>
#include <wx/log.h>
#include <wx/treectrl.h> #include <wx/treectrl.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include "sch_edit_table_tool.h" #include "sch_edit_table_tool.h"

View File

@ -43,6 +43,7 @@
#include <wx/splitter.h> #include <wx/splitter.h>
#include <wx/timer.h> #include <wx/timer.h>
#include <wx/wxhtml.h> #include <wx/wxhtml.h>
#include <wx/log.h>
wxString PANEL_SYMBOL_CHOOSER::g_symbolSearchString; wxString PANEL_SYMBOL_CHOOSER::g_symbolSearchString;

View File

@ -29,8 +29,8 @@
#include <memory> #include <memory>
#include <math/box2.h> #include <math/box2.h>
#include <geometry/shape_poly_set.h> #include <geometry/shape_poly_set.h>
#include <geometry/eda_angle.h>
#include <wx/debug.h> #include <wx/debug.h>
#include "../../libs/kimath/include/geometry/eda_angle.h"
#if defined( _MSC_VER ) #if defined( _MSC_VER )
#pragma warning( push ) #pragma warning( push )

View File

@ -37,7 +37,6 @@
#include <pcb_screen.h> #include <pcb_screen.h>
#include <vector> #include <vector>
#include <wx/fswatcher.h>
#include <wx/datetime.h> #include <wx/datetime.h>
#include <wx/timer.h> #include <wx/timer.h>
@ -63,6 +62,21 @@ struct MAGNETIC_SETTINGS;
class NL_PCBNEW_PLUGIN; class NL_PCBNEW_PLUGIN;
class PROGRESS_REPORTER; class PROGRESS_REPORTER;
#ifdef wxHAS_INOTIFY
#define wxFileSystemWatcher wxInotifyFileSystemWatcher
#elif defined( wxHAS_KQUEUE ) && defined( wxHAVE_FSEVENTS_FILE_NOTIFICATIONS )
#define wxFileSystemWatcher wxFsEventsFileSystemWatcher
#elif defined( wxHAS_KQUEUE )
#define wxFileSystemWatcher wxKqueueFileSystemWatcher
#elif defined( __WINDOWS__ )
#define wxFileSystemWatcher wxMSWFileSystemWatcher
#else
#define wxFileSystemWatcher wxPollingFileSystemWatcher
#endif
class wxFileSystemWatcher;
class wxFileSystemWatcherEvent;
wxDECLARE_EVENT( EDA_EVT_BOARD_CHANGED, wxCommandEvent ); wxDECLARE_EVENT( EDA_EVT_BOARD_CHANGED, wxCommandEvent );
/** /**

View File

@ -39,12 +39,12 @@
#include <search_stack.h> #include <search_stack.h>
#include <settings/environment.h> #include <settings/environment.h>
#include <wx/filename.h> #include <wx/filename.h>
#include <wx/snglinst.h>
class wxApp; class wxApp;
class wxMenu; class wxMenu;
class wxWindow; class wxWindow;
class wxSplashScreen; class wxSplashScreen;
class wxSingleInstanceChecker;
class BACKGROUND_JOBS_MONITOR; class BACKGROUND_JOBS_MONITOR;
class NOTIFICATIONS_MANAGER; class NOTIFICATIONS_MANAGER;

View File

@ -30,7 +30,8 @@
#include <functional> #include <functional>
#include <core/typeinfo.h> #include <core/typeinfo.h>
#include <vector> #include <vector>
#include <tool/selection.h>
class SELECTION;
///< Functor type that checks a specific condition for selected items. ///< Functor type that checks a specific condition for selected items.
typedef std::function<bool (const SELECTION&)> SELECTION_CONDITION; typedef std::function<bool (const SELECTION&)> SELECTION_CONDITION;

View File

@ -33,9 +33,9 @@
#include <vector> #include <vector>
#include <deque> #include <deque>
#include <geometry/shape_poly_set.h>
class SEG; class SEG;
class SHAPE_LINE_CHAIN;
class SHAPE_POLY_SET;
namespace KIGFX namespace KIGFX
{ {

View File

@ -20,6 +20,7 @@
#include "command_pcb_export_3d.h" #include "command_pcb_export_3d.h"
#include <cli/exit_codes.h> #include <cli/exit_codes.h>
#include <base_units.h>
#include <kiface_base.h> #include <kiface_base.h>
#include <regex> #include <regex>
#include <string_utils.h> #include <string_utils.h>

View File

@ -25,6 +25,7 @@
#include <layer_ids.h> #include <layer_ids.h>
#include <string_utils.h> #include <string_utils.h>
#include <wx/crt.h> #include <wx/crt.h>
#include <wx/tokenzr.h>
#include <schematic_settings.h> #include <schematic_settings.h>
#include <macros.h> #include <macros.h>

View File

@ -41,6 +41,7 @@
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>
#include <pcb_marker.h> #include <pcb_marker.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <wx/app.h>
#include <wx/filedlg.h> #include <wx/filedlg.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include <wx/wupdlock.h> #include <wx/wupdlock.h>

View File

@ -38,6 +38,7 @@
#include <locale_io.h> #include <locale_io.h>
#include <reporter.h> #include <reporter.h>
#include <exporters/board_exporter_base.h> #include <exporters/board_exporter_base.h>
#include <wx/log.h>
static double iu2hyp( double iu ) static double iu2hyp( double iu )
{ {

View File

@ -57,6 +57,7 @@
#include <math/vector2d.h> #include <math/vector2d.h>
#include <math/vector2wx.h> #include <math/vector2wx.h>
#include <widgets/msgpanel.h> #include <widgets/msgpanel.h>
#include <wx/fswatcher.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <settings/cvpcb_settings.h> #include <settings/cvpcb_settings.h>

View File

@ -41,6 +41,7 @@
#include <tools/pcb_selection_tool.h> #include <tools/pcb_selection_tool.h>
#include <pcb_painter.h> #include <pcb_painter.h>
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
#include <wx/app.h>
#include <kiplatform/app.h> #include <kiplatform/app.h>
#include "../../scripting/python_scripting.h" #include "../../scripting/python_scripting.h"

View File

@ -30,6 +30,7 @@
#include <pcb_item_containers.h> #include <pcb_item_containers.h>
#include <tool/grid_helper.h> #include <tool/grid_helper.h>
class SHAPE_ARC;
class TOOL_MANAGER; class TOOL_MANAGER;
struct MAGNETIC_SETTINGS; struct MAGNETIC_SETTINGS;
struct PCB_SELECTION_FILTER_OPTIONS; struct PCB_SELECTION_FILTER_OPTIONS;

View File

@ -26,6 +26,7 @@
#include <widgets/panel_footprint_chooser.h> #include <widgets/panel_footprint_chooser.h>
#include <wx/button.h> #include <wx/button.h>
#include <wx/clipbrd.h> #include <wx/clipbrd.h>
#include <wx/log.h>
#include <wx/panel.h> #include <wx/panel.h>
#include <wx/sizer.h> #include <wx/sizer.h>
#include <wx/splitter.h> #include <wx/splitter.h>