Browse Source

Add KICAD_SCRIPTING_PYTHON3 flag to about dialog and doc

pull/13/head
Thomas Pointhuber 7 years ago
committed by Maciej Suminski
parent
commit
7548a3b1bf
  1. 4
      CMakeLists.txt
  2. 5
      Documentation/development/compiling.md
  3. 7
      common/dialog_about/dialog_about.cpp

4
CMakeLists.txt

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

5
Documentation/development/compiling.md

@ -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
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}
The KICAD_SCRIPTING_WXPYTHON option is used to enable building the wxPython interface into

7
common/dialog_about/dialog_about.cpp

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

Loading…
Cancel
Save