Add KICAD_SCRIPTING_PYTHON3 flag to about dialog and doc

This commit is contained in:
Thomas Pointhuber 2018-08-04 16:12:43 +02:00 committed by Maciej Suminski
parent e9da6811a6
commit 7548a3b1bf
3 changed files with 16 additions and 0 deletions

View File

@ -374,6 +374,10 @@ if( KICAD_SCRIPTING_MODULES )
add_definitions( -DKICAD_SCRIPTING_MODULES ) add_definitions( -DKICAD_SCRIPTING_MODULES )
endif() endif()
if( KICAD_SCRIPTING_PYTHON3 )
add_definitions( -DKICAD_SCRIPTING_PYTHON3 )
endif()
if( KICAD_SCRIPTING_WXPYTHON ) if( KICAD_SCRIPTING_WXPYTHON )
add_definitions( -DKICAD_SCRIPTING_WXPYTHON ) add_definitions( -DKICAD_SCRIPTING_WXPYTHON )
endif() endif()

View File

@ -156,6 +156,11 @@ This options is enabled by default.
The KICAD_SCRIPTING_MODULES option is used to enable building and installing the Python modules The KICAD_SCRIPTING_MODULES option is used to enable building and installing the Python modules
supplied by KiCad. This option is enabled by default. supplied by KiCad. This option is enabled by default.
## Python 3 Scripting Support ## {#python3}
The KICAD_SCRIPTING_PYTHON3 option is used to enable building of the Python 3 interface instead
of Python 2. This option is disabled by default.
## wxPython Scripting Support ## {#wxpython_opt} ## wxPython Scripting Support ## {#wxpython_opt}
The KICAD_SCRIPTING_WXPYTHON option is used to enable building the wxPython interface into The KICAD_SCRIPTING_WXPYTHON option is used to enable building the wxPython interface into

View File

@ -540,6 +540,13 @@ void DIALOG_ABOUT::buildVersionInfoData( wxString& aMsg, bool aFormatHtml )
aMsg << OFF; aMsg << OFF;
#endif #endif
aMsg << indent4 << "KICAD_SCRIPTING_PYTHON3=";
#ifdef KICAD_SCRIPTING_PYTHON3
aMsg << ON;
#else
aMsg << OFF;
#endif
aMsg << indent4 << "KICAD_SCRIPTING_WXPYTHON="; aMsg << indent4 << "KICAD_SCRIPTING_WXPYTHON=";
#ifdef KICAD_SCRIPTING_WXPYTHON #ifdef KICAD_SCRIPTING_WXPYTHON
aMsg << ON; aMsg << ON;