Move pcbnew swig
Separates the python scripts into those using swig and those needed for other scripting
This commit is contained in:
parent
bf1437899e
commit
adf885b667
|
@ -21,7 +21,7 @@ add_dependencies( pnsrouter pcbcommon )
|
||||||
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swig )
|
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swig )
|
||||||
|
|
||||||
# Infrequently needed headers go at end of search paths, append to INC_AFTER
|
# Infrequently needed headers go at end of search paths, append to INC_AFTER
|
||||||
set( INC_AFTER ${INC_AFTER} swig )
|
set( INC_AFTER ${INC_AFTER} python/scripting )
|
||||||
set( INC_AFTER ${INC_AFTER} ${CMAKE_SOURCE_DIR}/common/swig )
|
set( INC_AFTER ${INC_AFTER} ${CMAKE_SOURCE_DIR}/common/swig )
|
||||||
|
|
||||||
include_directories( BEFORE ${INC_BEFORE} )
|
include_directories( BEFORE ${INC_BEFORE} )
|
||||||
|
@ -366,11 +366,11 @@ set( PCBNEW_COMMON_SRCS
|
||||||
|
|
||||||
set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
||||||
${CMAKE_SOURCE_DIR}/common/swig/wx_python_helpers.cpp
|
${CMAKE_SOURCE_DIR}/common/swig/wx_python_helpers.cpp
|
||||||
swig/pcbnew_action_plugins.cpp
|
python/scripting/pcbnew_action_plugins.cpp
|
||||||
swig/pcbnew_footprint_wizards.cpp
|
python/scripting/pcbnew_footprint_wizards.cpp
|
||||||
swig/pcbnew_scripting_helpers.cpp
|
python/scripting/pcbnew_scripting_helpers.cpp
|
||||||
swig/pcbnew_scripting.cpp
|
python/scripting/pcbnew_scripting.cpp
|
||||||
swig/pcb_scripting_tool.cpp
|
python/scripting/pcb_scripting_tool.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -442,30 +442,30 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx
|
||||||
DEPENDS plotcontroller.h
|
DEPENDS plotcontroller.h
|
||||||
DEPENDS exporters/gendrill_Excellon_writer.h
|
DEPENDS exporters/gendrill_Excellon_writer.h
|
||||||
DEPENDS exporters/export_vrml.h
|
DEPENDS exporters/export_vrml.h
|
||||||
DEPENDS swig/pcbnew.i
|
DEPENDS python/swig/pcbnew.i
|
||||||
DEPENDS swig/board.i
|
DEPENDS python/swig/board.i
|
||||||
DEPENDS swig/board_connected_item.i
|
DEPENDS python/swig/board_connected_item.i
|
||||||
DEPENDS swig/board_design_settings.i
|
DEPENDS python/swig/board_design_settings.i
|
||||||
DEPENDS swig/board_item.i
|
DEPENDS python/swig/board_item.i
|
||||||
DEPENDS swig/board_item_container.i
|
DEPENDS python/swig/board_item_container.i
|
||||||
DEPENDS swig/connectivity.i
|
DEPENDS python/swig/connectivity.i
|
||||||
DEPENDS swig/dimension.i
|
DEPENDS python/swig/dimension.i
|
||||||
DEPENDS swig/pcb_shape.i
|
DEPENDS python/swig/pcb_shape.i
|
||||||
DEPENDS swig/fp_shape.i
|
DEPENDS python/swig/fp_shape.i
|
||||||
DEPENDS swig/marker_pcb.i
|
DEPENDS python/swig/marker_pcb.i
|
||||||
DEPENDS swig/pcb_target.i
|
DEPENDS python/swig/pcb_target.i
|
||||||
DEPENDS swig/pcb_plot_params.i
|
DEPENDS python/swig/pcb_plot_params.i
|
||||||
DEPENDS swig/footprint.i
|
DEPENDS python/swig/footprint.i
|
||||||
DEPENDS swig/netinfo.i
|
DEPENDS python/swig/netinfo.i
|
||||||
DEPENDS swig/pad.i
|
DEPENDS python/swig/pad.i
|
||||||
DEPENDS swig/pcb_text.i
|
DEPENDS python/swig/pcb_text.i
|
||||||
DEPENDS swig/plugins.i
|
DEPENDS python/swig/plugins.i
|
||||||
DEPENDS swig/fp_text.i
|
DEPENDS python/swig/fp_text.i
|
||||||
DEPENDS swig/track.i
|
DEPENDS python/swig/track.i
|
||||||
DEPENDS swig/units.i
|
DEPENDS python/swig/units.i
|
||||||
DEPENDS swig/typeinfo.i
|
DEPENDS python/swig/typeinfo.i
|
||||||
DEPENDS swig/zone.i
|
DEPENDS python/swig/zone.i
|
||||||
DEPENDS swig/zone_settings.i
|
DEPENDS python/swig/zone_settings.i
|
||||||
|
|
||||||
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/kicad.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/kicad.i
|
||||||
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/wx.i
|
DEPENDS ${CMAKE_SOURCE_DIR}/common/swig/wx.i
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <dialog_footprint_wizard_list.h>
|
#include <dialog_footprint_wizard_list.h>
|
||||||
#include <footprint_wizard_frame.h>
|
#include <footprint_wizard_frame.h>
|
||||||
|
|
||||||
#include <swig/pcbnew_scripting.h>
|
#include <python/scripting/pcbnew_scripting.h>
|
||||||
|
|
||||||
enum FPGeneratorRowNames
|
enum FPGeneratorRowNames
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <kiface_i.h>
|
#include <kiface_i.h>
|
||||||
#include <panel_pcbnew_action_plugins.h>
|
#include <panel_pcbnew_action_plugins.h>
|
||||||
#include <pcb_edit_frame.h>
|
#include <pcb_edit_frame.h>
|
||||||
#include <pcbnew_scripting.h>
|
#include <python/scripting/pcbnew_scripting.h>
|
||||||
#include <pcbnew_settings.h>
|
#include <pcbnew_settings.h>
|
||||||
#include <tool/tool_manager.h>
|
#include <tool/tool_manager.h>
|
||||||
#include <tools/pcb_actions.h>
|
#include <tools/pcb_actions.h>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "tools/placement_tool.h"
|
#include "tools/placement_tool.h"
|
||||||
#include "tools/pcb_point_editor.h"
|
#include "tools/pcb_point_editor.h"
|
||||||
#include "tools/pcb_selection_tool.h"
|
#include "tools/pcb_selection_tool.h"
|
||||||
#include <swig/pcb_scripting_tool.h>
|
#include <python/scripting/pcb_scripting_tool.h>
|
||||||
#include <3d_viewer/eda_3d_viewer.h>
|
#include <3d_viewer/eda_3d_viewer.h>
|
||||||
#include <bitmaps.h>
|
#include <bitmaps.h>
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
#include <router/router_tool.h>
|
#include <router/router_tool.h>
|
||||||
#include <router/length_tuner_tool.h>
|
#include <router/length_tuner_tool.h>
|
||||||
#include <autorouter/autoplace_tool.h>
|
#include <autorouter/autoplace_tool.h>
|
||||||
#include <swig/pcb_scripting_tool.h>
|
#include <python/scripting/pcb_scripting_tool.h>
|
||||||
#include <gestfich.h>
|
#include <gestfich.h>
|
||||||
#include <executable_names.h>
|
#include <executable_names.h>
|
||||||
#include <netlist_reader/board_netlist_updater.h>
|
#include <netlist_reader/board_netlist_updater.h>
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
|
#undef HAVE_CLOCK_GETTIME // macro is defined in Python.h and causes redefine warning
|
||||||
|
|
||||||
|
#include "pcbnew_scripting_helpers.h"
|
||||||
|
|
||||||
#include <action_plugin.h>
|
#include <action_plugin.h>
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <pcb_marker.h>
|
#include <pcb_marker.h>
|
Loading…
Reference in New Issue