fixed build problem for specctra.cpp stand alone.

This commit is contained in:
charras 2010-01-05 08:48:49 +00:00
parent 1b6ad8c7f7
commit 84a0e32865
22 changed files with 38 additions and 29 deletions

View File

@ -12,6 +12,7 @@ set(COMMON_SRCS
basicframe.cpp basicframe.cpp
bezier_curves.cpp bezier_curves.cpp
block_commande.cpp block_commande.cpp
build_version.cpp
class_marker_base.cpp class_marker_base.cpp
class_plotter.cpp class_plotter.cpp
class_undoredo_container.cpp class_undoredo_container.cpp

View File

@ -7,29 +7,9 @@
#include "common.h" #include "common.h"
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "build_version.h"
#ifdef HAVE_SVN_VERSION
#include "version.h" // define the KICAD_BUILD_VERSION
#endif
#ifndef KICAD_BUILD_VERSION
#define KICAD_BUILD_VERSION "(2010-01-04)"
#endif
#define VERSION_STABILITY "unstable"
/** Function GetBuildVersion()
* Return the build date and version
*/
wxString GetBuildVersion()
{
wxString msg;
msg.Printf( wxT("%s-%s"),
wxT( KICAD_BUILD_VERSION ), wxT(VERSION_STABILITY));
return msg;
}
/**********************************/ /**********************************/
wxString SetMsg( const wxString& msg ) wxString SetMsg( const wxString& msg )
/**********************************/ /**********************************/

View File

@ -12,6 +12,8 @@
#include "macros.h" #include "macros.h"
#include "kicad_string.h" #include "kicad_string.h"
#include "build_version.h"
/** function set_viewport /** function set_viewport
* Set the plot offset for the current plotting * Set the plot offset for the current plotting

View File

@ -14,6 +14,7 @@
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "worksheet.h" #include "worksheet.h"
#include "build_version.h"
/* Must be defined in main applications: */ /* Must be defined in main applications: */

View File

@ -16,6 +16,7 @@
#include "cvstruct.h" #include "cvstruct.h"
#include "dialog_cvpcb_config.h" #include "dialog_cvpcb_config.h"
#include "build_version.h"
#define FRAME_MIN_SIZE_X 450 #define FRAME_MIN_SIZE_X 450
#define FRAME_MIN_SIZE_Y 300 #define FRAME_MIN_SIZE_Y 300

View File

@ -15,6 +15,8 @@
#include "protos.h" #include "protos.h"
#include "cvstruct.h" #include "cvstruct.h"
#include "build_version.h"
#include <wx/snglinst.h> #include <wx/snglinst.h>

View File

@ -13,6 +13,7 @@
#include "protos.h" #include "protos.h"
#include "cvstruct.h" #include "cvstruct.h"
#include "build_version.h"
/* /*
* Set the module to the selected component * Set the module to the selected component

View File

@ -15,6 +15,8 @@
#include "protos.h" #include "protos.h"
#include "cvstruct.h" #include "cvstruct.h"
#include "build_version.h"
/* File header. */ /* File header. */
char EnteteCmpMod[] = { "Cmp-Mod V01" }; char EnteteCmpMod[] = { "Cmp-Mod V01" };

View File

@ -13,6 +13,8 @@
#include "general.h" #include "general.h"
#include "build_version.h"
/** function FillFootprintFieldForAllInstancesofComponent /** function FillFootprintFieldForAllInstancesofComponent
* Search for component "aReference", and place a Footprint in Footprint field * Search for component "aReference", and place a Footprint in Footprint field

View File

@ -21,6 +21,8 @@
#include "netlist.h" #include "netlist.h"
#include "protos.h" #include "protos.h"
#include "build_version.h"
#include "dialog_build_BOM.h" #include "dialog_build_BOM.h"

View File

@ -14,6 +14,7 @@
#include "protos.h" #include "protos.h"
#include "class_library.h" #include "class_library.h"
#include "build_version.h"
static EDA_BaseStruct* HighLightStruct = NULL; static EDA_BaseStruct* HighLightStruct = NULL;

View File

@ -16,6 +16,7 @@
#include "protos.h" #include "protos.h"
#include "class_library.h" #include "class_library.h"
#include "build_version.h"
/** /**
* @bug - Every place in this file where fprintf() is used and the return * @bug - Every place in this file where fprintf() is used and the return

View File

@ -17,6 +17,8 @@
#include "zones.h" #include "zones.h"
#include "class_board_design_settings.h" #include "class_board_design_settings.h"
#include "build_version.h"
#include <wx/file.h> #include <wx/file.h>
#include <wx/snglinst.h> #include <wx/snglinst.h>

View File

@ -1,11 +1,11 @@
/* Date for kicad build version */ /* Date for kicad build version */
#ifndef KICAD_BUILD_VERSION #ifndef KICAD_BUILD_VERSION_H
#define KICAD_BUILD_VERSION #define KICAD_BUILD_VERSION_H
/** Function GetBuildVersion() /** Function GetBuildVersion()
* Return the build date and version * Return the build date and version
*/ */
wxString GetBuildVersion(); wxString GetBuildVersion();
#endif // KICAD_BUILD_VERSION #endif // KICAD_BUILD_VERSION_H

View File

@ -266,7 +266,6 @@ void InitKiCadAbout( wxAboutDialogInfo& info );
/**************/ /**************/
/* common.cpp */ /* common.cpp */
/**************/ /**************/
wxString GetBuildVersion(); /* Return the build date */
/** /**
* function Affiche_1_Parametre * function Affiche_1_Parametre

View File

@ -26,6 +26,8 @@
#include "kicad.h" #include "kicad.h"
#include "macros.h" #include "macros.h"
#include "build_version.h"
#ifdef KICAD_PYTHON #ifdef KICAD_PYTHON
#include <pyhandler.h> #include <pyhandler.h>
using namespace boost::python; using namespace boost::python;

View File

@ -15,6 +15,8 @@
#include "prjconfig.h" #include "prjconfig.h"
#include "kicad.h" #include "kicad.h"
#include "build_version.h"
static const wxString GeneralGroupName( wxT( "/general" ) ); static const wxString GeneralGroupName( wxT( "/general" ) );
/* Kicad project file entry names. */ /* Kicad project file entry names. */

View File

@ -13,6 +13,8 @@
#include "wxPcbStruct.h" #include "wxPcbStruct.h"
#include "trigo.h" #include "trigo.h"
#include "build_version.h"
bool CreateHeaderInfoData( FILE* file, WinEDA_PcbFrame* frame ); bool CreateHeaderInfoData( FILE* file, WinEDA_PcbFrame* frame );
static void CreateTracksInfoData( FILE* file, BOARD* pcb ); static void CreateTracksInfoData( FILE* file, BOARD* pcb );
static void CreateBoardSection( FILE* file, BOARD* pcb ); static void CreateBoardSection( FILE* file, BOARD* pcb );

View File

@ -16,6 +16,8 @@
#include "trigo.h" #include "trigo.h"
#include "appl_wxstruct.h" #include "appl_wxstruct.h"
#include "build_version.h"
class LIST_MOD /* Can list the elements of useful modules. */ class LIST_MOD /* Can list the elements of useful modules. */
{ {
public: public:

View File

@ -22,6 +22,8 @@
#include "gendrill.h" #include "gendrill.h"
#include "build_version.h"
const wxString DrillFileExtension( wxT( "drl" ) ); const wxString DrillFileExtension( wxT( "drl" ) );
const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl" ) ); const wxString DrillFileWildcard( _( "Drill files (*.drl)|*.drl" ) );

View File

@ -21,6 +21,8 @@
#include "cvpcb.h" #include "cvpcb.h"
#endif #endif
#include "build_version.h"
#include "pcbnew_id.h" #include "pcbnew_id.h"
/* ASCII format of structures: /* ASCII format of structures:

View File

@ -19,13 +19,13 @@
#include "cell.h" #include "cell.h"
#include "worksheet.h" #include "worksheet.h"
#include "zones.h" #include "zones.h"
#include "drag.h"
#include "eda_dde.h"
#include "build_version.h"
#include "protos.h" #include "protos.h"
#include "drag.h"
#include "eda_dde.h"
bool Drc_On = true; bool Drc_On = true;
bool g_AutoDeleteOldTrack = true; bool g_AutoDeleteOldTrack = true;
bool g_No_Via_Route; bool g_No_Via_Route;