From 2533fb22b33c9c90a643c64b958ecb47fbb09962 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 4 Jun 2021 12:49:11 +0100 Subject: [PATCH] Add the new pcb item container header to the SWIG wrapper --- pcbnew/CMakeLists.txt | 1 + pcbnew/python/swig/board.i | 1 + pcbnew/python/swig/pcb_item_containers.i | 4 ++++ 3 files changed, 6 insertions(+) create mode 100644 pcbnew/python/swig/pcb_item_containers.i diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 9044d9e78f..6f34094bef 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -443,6 +443,7 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx DEPENDS plotcontroller.h DEPENDS exporters/gendrill_Excellon_writer.h DEPENDS exporters/export_vrml.h + DEPENDS python/swig/pcb_item_containers.i DEPENDS python/swig/pcbnew.i DEPENDS python/swig/board.i DEPENDS python/swig/board_connected_item.i diff --git a/pcbnew/python/swig/board.i b/pcbnew/python/swig/board.i index 499901d6e9..c3de8abd6e 100644 --- a/pcbnew/python/swig/board.i +++ b/pcbnew/python/swig/board.i @@ -48,6 +48,7 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints) %include board_connected_item.i %include board_design_settings.i %include connectivity.i +%include pcb_item_containers.i %include pad.i %include track.i %include zone.i diff --git a/pcbnew/python/swig/pcb_item_containers.i b/pcbnew/python/swig/pcb_item_containers.i new file mode 100644 index 0000000000..a1fcdea9c4 --- /dev/null +++ b/pcbnew/python/swig/pcb_item_containers.i @@ -0,0 +1,4 @@ +%include pcb_item_containers.h +%{ +#include +%}