Python stuff: fix an issue to build pcbnew_wrap.cxx (at least on msys2)

- Reorder two include in pcbnew.i
- rename PLUGIN to PCB_IO (missing rename) in footprint.i
This commit is contained in:
jean-pierre charras 2023-12-24 10:41:16 +01:00
parent 9799a7ddcc
commit 408c90d3ae
2 changed files with 4 additions and 7 deletions

View File

@ -101,7 +101,8 @@
%} %}
} }
%extend PLUGIN
%extend PCB_IO
{ {
// This version of FootprintEnumerate is for Python scripts, because the c++ // This version of FootprintEnumerate is for Python scripts, because the c++
// version of FootprintEnumerate is not easy to handle in these Python scripts // version of FootprintEnumerate is not easy to handle in these Python scripts

View File

@ -76,6 +76,8 @@ class BASE_SET {};
#include <exporters/gendrill_Excellon_writer.h> #include <exporters/gendrill_Excellon_writer.h>
#include <exporters/gendrill_gerber_writer.h> #include <exporters/gendrill_gerber_writer.h>
#include <exporters/gerber_jobfile_writer.h> #include <exporters/gerber_jobfile_writer.h>
#include <pcb_io/pcb_io_mgr.h>
#include <pcb_io/pcb_io.h>
BOARD *GetBoard(); /* get current editor board */ BOARD *GetBoard(); /* get current editor board */
wxArrayString GetFootprintLibraries(); wxArrayString GetFootprintLibraries();
@ -84,16 +86,10 @@ wxArrayString GetFootprints(const wxString& aNickName);
%include <pcb_io/pcb_io_mgr.h> %include <pcb_io/pcb_io_mgr.h>
%{
#include <pcb_io/pcb_io_mgr.h>
%}
// ignore RELEASER as nested classes are still unsupported by swig // ignore RELEASER as nested classes are still unsupported by swig
%ignore IO_MGR::RELEASER; %ignore IO_MGR::RELEASER;
%include <pcb_io/pcb_io.h> %include <pcb_io/pcb_io.h>
%{
#include <pcb_io/pcb_io.h>
%}
/* /*