pcbnew: Remove 'host' compile info from header
The 'host' tag causes issues with revision control when editing files on two different machines with the same KiCad version but different builds. This replaces the host tag with a simpler 'generator pcbnew' pair that does not include build data.
This commit is contained in:
parent
1e461c2259
commit
e665ad811d
|
@ -358,8 +358,7 @@ void PCB_IO::Save( const wxString& aFileName, BOARD* aBoard, const PROPERTIES* a
|
|||
|
||||
m_out = &formatter; // no ownership
|
||||
|
||||
m_out->Print( 0, "(kicad_pcb (version %d) (host pcbnew %s)\n", SEXPR_BOARD_FILE_VERSION,
|
||||
formatter.Quotew( GetBuildVersion() ).c_str() );
|
||||
m_out->Print( 0, "(kicad_pcb (version %d) (generator pcbnew)\n", SEXPR_BOARD_FILE_VERSION );
|
||||
|
||||
Format( aBoard, 1 );
|
||||
|
||||
|
|
|
@ -79,7 +79,10 @@ class TEXTE_PCB;
|
|||
//#define SEXPR_BOARD_FILE_VERSION 20200809 // Add REMOVE_UNUSED_LAYERS option to vias and THT pads
|
||||
//#define SEXPR_BOARD_FILE_VERSION 20200811 // Add groups
|
||||
//#define SEXPR_BOARD_FILE_VERSION 20200818 // Remove Status flag bitmap and setup counts
|
||||
#define SEXPR_BOARD_FILE_VERSION 20200819 // Add board-level properties
|
||||
//#define SEXPR_BOARD_FILE_VERSION 20200819 // Add board-level properties
|
||||
#define SEXPR_BOARD_FILE_VERSION 20200825 // Remove host information
|
||||
|
||||
#define BOARD_FILE_HOST_VERSION 20200825 ///< Earlier files than this include the host tag
|
||||
|
||||
#define CTL_STD_LAYER_NAMES (1 << 0) ///< Use English Standard layer names
|
||||
#define CTL_OMIT_NETS (1 << 1) ///< Omit pads net names (useless in library)
|
||||
|
|
|
@ -814,11 +814,14 @@ void PCB_PARSER::parseHeader()
|
|||
m_tooRecent = ( m_requiredVersion > SEXPR_BOARD_FILE_VERSION );
|
||||
NeedRIGHT();
|
||||
|
||||
// Skip the host name and host build version information.
|
||||
NeedLEFT();
|
||||
NeedSYMBOL();
|
||||
NeedSYMBOL();
|
||||
NeedSYMBOL();
|
||||
|
||||
// Older formats included build data
|
||||
if( m_requiredVersion < BOARD_FILE_HOST_VERSION )
|
||||
NeedSYMBOL();
|
||||
|
||||
NeedRIGHT();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue