Add new development build swtiches to version info

Add:
* KICAD_USE_SCH_IO_MANAGER
* KICAD_USE_OCE
This commit is contained in:
Nick Østergaard 2016-09-03 20:36:20 +02:00 committed by Wayne Stambaugh
parent 049e9909ac
commit c784d45ed7
2 changed files with 25 additions and 3 deletions

View File

@ -18,9 +18,9 @@ set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules )
# #
# KiCad build options should be added below. # KiCad build options should be added below.
# #
# If you add a new build option, please add it's state to the CopyVersionInfoToClipboard() # If you add a new build option, please add it's state to the
# function in common/basicframe.cpp so that build option settings can be included in bug # OnCopyVersionInfo() function in common/dialog_about/dialog_about.cpp
# reports. # so that build option settings can be included in bug reports.
# #
option( USE_WX_GRAPHICS_CONTEXT option( USE_WX_GRAPHICS_CONTEXT
@ -259,6 +259,14 @@ if( KICAD_SPICE )
add_definitions( -DKICAD_SPICE ) add_definitions( -DKICAD_SPICE )
endif() endif()
if( KICAD_USE_SCH_IO_MANAGER )
add_definitions( -DKICAD_USE_SCH_IO_MANAGER )
endif()
if( KICAD_USE_OCE )
add_definitions( -DKICAD_USE_OCE )
endif()
if( USE_WX_GRAPHICS_CONTEXT OR APPLE ) if( USE_WX_GRAPHICS_CONTEXT OR APPLE )
add_definitions( -DUSE_WX_GRAPHICS_CONTEXT ) add_definitions( -DUSE_WX_GRAPHICS_CONTEXT )
endif() endif()

View File

@ -534,6 +534,20 @@ void dialog_about::OnCopyVersionInfo( wxCommandEvent& event )
msg_version << OFF; msg_version << OFF;
#endif #endif
msg_version << " KICAD_USE_SCH_IO_MANAGER=";
#ifdef KICAD_USE_SCH_IO_MANAGER
msg_version << ON;
#else
msg_version << OFF;
#endif
msg_version << " KICAD_USE_OCE=";
#ifdef KICAD_USE_OCE
msg_version << ON;
#else
msg_version << OFF;
#endif
wxTheClipboard->SetData( new wxTextDataObject( msg_version ) ); wxTheClipboard->SetData( new wxTextDataObject( msg_version ) );
wxTheClipboard->Close(); wxTheClipboard->Close();
copyVersionInfo->SetLabel( _( "Copied..." ) ); copyVersionInfo->SetLabel( _( "Copied..." ) );