2017-02-23 10:40:40 +00:00
|
|
|
# .cpp files are compiled with extra ${WSHADOW_FLAGS}
|
|
|
|
if( COMPILER_SUPPORTS_WSHADOW )
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WSHADOW_FLAGS}")
|
|
|
|
endif()
|
|
|
|
|
2018-11-28 13:46:42 +00:00
|
|
|
add_subdirectory( libeval )
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(
|
|
|
|
./dialogs
|
2016-01-16 01:56:57 +00:00
|
|
|
./widgets
|
2012-01-23 04:33:36 +00:00
|
|
|
./dialog_about
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
${CAIRO_INCLUDE_DIR}
|
2016-12-07 09:20:31 +00:00
|
|
|
${PIXMAN_INCLUDE_DIR}
|
2013-08-10 09:14:16 +00:00
|
|
|
${GLEW_INCLUDE_DIR}
|
2015-12-08 09:56:53 +00:00
|
|
|
${GLM_INCLUDE_DIR}
|
2015-12-21 20:30:33 +00:00
|
|
|
${CURL_INCLUDE_DIRS}
|
2012-01-23 04:33:36 +00:00
|
|
|
../3d-viewer
|
|
|
|
../pcbnew
|
|
|
|
${INC_AFTER}
|
2018-05-16 15:30:37 +00:00
|
|
|
${OCE_INCLUDE_DIRS}
|
|
|
|
${OCC_INCLUDE_DIR}
|
2018-09-10 14:13:02 +00:00
|
|
|
${OPENSSL_INCLUDE_DIR}
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
2016-01-14 15:17:13 +00:00
|
|
|
|
|
|
|
if( NOT APPLE ) # windows and linux use openssl under curl
|
|
|
|
find_package( OpenSSL REQUIRED )
|
|
|
|
endif()
|
|
|
|
|
2014-02-03 21:39:42 +00:00
|
|
|
set( GAL_SRCS
|
2013-07-23 16:39:07 +00:00
|
|
|
# Common part
|
2016-03-25 08:26:11 +00:00
|
|
|
basic_gal.cpp
|
2014-04-04 09:56:04 +00:00
|
|
|
draw_panel_gal.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
gl_context_mgr.cpp
|
2016-03-23 07:41:47 +00:00
|
|
|
newstroke_font.cpp
|
2015-06-18 15:51:53 +00:00
|
|
|
origin_viewitem.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
painter.cpp
|
2017-12-08 07:59:58 +00:00
|
|
|
text_utils.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
worksheet_viewitem.cpp
|
|
|
|
gal/color4d.cpp
|
2016-12-23 15:21:00 +00:00
|
|
|
gal/gal_display_options.cpp
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
gal/graphics_abstraction_layer.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
gal/hidpi_gl_canvas.cpp
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
gal/stroke_font.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
geometry/hetriang.cpp
|
2015-05-18 11:48:10 +00:00
|
|
|
view/view_controls.cpp
|
2018-08-23 21:54:42 +00:00
|
|
|
view/view_overlay.cpp
|
2013-07-23 16:39:07 +00:00
|
|
|
view/wx_view_controls.cpp
|
2018-11-22 16:24:17 +00:00
|
|
|
view/zoom_controller.cpp
|
2013-07-23 16:39:07 +00:00
|
|
|
|
|
|
|
# OpenGL GAL
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
gal/opengl/opengl_gal.cpp
|
2016-12-22 14:26:31 +00:00
|
|
|
gal/opengl/gl_resources.cpp
|
2016-12-22 15:11:28 +00:00
|
|
|
gal/opengl/gl_builtin_shaders.cpp
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
gal/opengl/shader.cpp
|
2013-07-22 08:41:12 +00:00
|
|
|
gal/opengl/vertex_item.cpp
|
|
|
|
gal/opengl/vertex_container.cpp
|
|
|
|
gal/opengl/cached_container.cpp
|
2017-08-08 12:25:03 +00:00
|
|
|
gal/opengl/cached_container_gpu.cpp
|
|
|
|
gal/opengl/cached_container_ram.cpp
|
2013-07-22 08:41:12 +00:00
|
|
|
gal/opengl/noncached_container.cpp
|
|
|
|
gal/opengl/vertex_manager.cpp
|
|
|
|
gal/opengl/gpu_manager.cpp
|
2016-12-22 17:58:29 +00:00
|
|
|
gal/opengl/antialiasing.cpp
|
2013-07-23 16:39:07 +00:00
|
|
|
gal/opengl/opengl_compositor.cpp
|
2016-05-02 13:56:14 +00:00
|
|
|
gal/opengl/utils.cpp
|
2013-07-23 16:39:07 +00:00
|
|
|
|
|
|
|
# Cairo GAL
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
gal/cairo/cairo_gal.cpp
|
2013-07-25 12:40:04 +00:00
|
|
|
gal/cairo/cairo_compositor.cpp
|
2018-09-18 09:07:44 +00:00
|
|
|
gal/cairo/cairo_print.cpp
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
)
|
|
|
|
|
2018-08-03 11:51:41 +00:00
|
|
|
set( LEGACY_GAL_SRCS
|
|
|
|
legacy_gal/block.cpp
|
|
|
|
legacy_gal/eda_draw_frame.cpp
|
|
|
|
legacy_gal/other.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set( LEGACY_WX_SRCS
|
|
|
|
legacy_wx/block.cpp
|
|
|
|
legacy_wx/eda_draw_frame.cpp
|
|
|
|
legacy_wx/eda_draw_panel.cpp
|
|
|
|
legacy_wx/other.cpp
|
|
|
|
)
|
|
|
|
|
2014-02-03 21:39:42 +00:00
|
|
|
add_library( gal STATIC ${GAL_SRCS} )
|
2018-08-03 11:51:41 +00:00
|
|
|
add_library( legacy_gal STATIC ${LEGACY_GAL_SRCS} )
|
|
|
|
add_library( legacy_wx STATIC ${LEGACY_WX_SRCS} )
|
|
|
|
|
|
|
|
target_include_directories( legacy_wx PUBLIC ../include/legacy_wx )
|
2018-11-07 11:34:12 +00:00
|
|
|
target_include_directories( legacy_gal PUBLIC ../include/legacy_gal )
|
2015-04-30 08:46:05 +00:00
|
|
|
|
2019-01-31 11:53:01 +00:00
|
|
|
target_link_libraries( legacy_wx PRIVATE bitmaps polygon )
|
|
|
|
target_link_libraries( legacy_gal PRIVATE bitmaps polygon )
|
2019-01-23 15:58:16 +00:00
|
|
|
|
2015-04-30 08:46:05 +00:00
|
|
|
target_link_libraries( gal
|
2019-01-31 11:53:01 +00:00
|
|
|
polygon
|
2019-01-23 15:58:16 +00:00
|
|
|
bitmaps
|
2015-04-30 08:46:05 +00:00
|
|
|
${GLEW_LIBRARIES}
|
|
|
|
${CAIRO_LIBRARIES}
|
2017-02-04 09:08:54 +00:00
|
|
|
${PIXMAN_LIBRARIES}
|
2015-04-30 08:46:05 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
2018-10-08 06:39:43 +00:00
|
|
|
${GDI_PLUS_LIBRARIES}
|
2015-04-30 08:46:05 +00:00
|
|
|
)
|
2014-02-19 21:39:21 +00:00
|
|
|
|
|
|
|
|
2013-08-10 09:14:16 +00:00
|
|
|
# Only for win32 cross compilation using MXE
|
2014-02-03 21:39:42 +00:00
|
|
|
if( WIN32 AND MSYS )
|
|
|
|
add_definitions( -DGLEW_STATIC )
|
|
|
|
endif()
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
|
|
|
# A shared library subsetted from common which restricts what can go into
|
|
|
|
# a single_top link image. By not linking to common, we control what does
|
|
|
|
# statically go into single_top link images. My current thinking is that only
|
|
|
|
# wxWidgets should be a shared link from single top, everything else should be
|
|
|
|
# statically bound into it. Otherwise you will have DSO loading problems. After it
|
|
|
|
# sets the LIB PATHS however, we want the *.kiface modules to use shared linking.
|
|
|
|
add_library( singletop STATIC EXCLUDE_FROM_ALL
|
|
|
|
confirm.cpp
|
|
|
|
eda_doc.cpp
|
|
|
|
kiway.cpp
|
|
|
|
kiway_holder.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# A shared library used by multiple *.kiface files and one or two program
|
|
|
|
# launchers. Object files can migrate into here over time, but only if they are
|
|
|
|
# surely needed and certainly used from more than one place without recompilation.
|
|
|
|
# Functions and data all need to use the #include <import_export.h> and be declared
|
|
|
|
# as APIEXPORT
|
|
|
|
set( LIB_KICAD_SRCS
|
|
|
|
colors.cpp
|
|
|
|
dlist.cpp
|
|
|
|
string.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if( future )
|
|
|
|
add_library( lib_kicad SHARED
|
|
|
|
)
|
|
|
|
target_link_libraries( lib_kicad
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
|
|
|
set_target_properties( lib_kicad PROPERTIES
|
|
|
|
OUTPUT_NAME ki
|
|
|
|
)
|
|
|
|
install( TARGETS lib_kicad
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2016-11-24 17:37:34 +00:00
|
|
|
# KiCad build version string defaults to "no-vcs-found" which forces the build version header
|
|
|
|
# command to look for git to create the version string header when the .git path is found in
|
|
|
|
# the source path.
|
|
|
|
set( KICAD_BRANCH_NAME "" CACHE STRING "KiCad repository name." )
|
|
|
|
set( KICAD_VERSION_EXTRA "" CACHE STRING
|
|
|
|
"User defined configuration string to append to KiCad version." )
|
2015-07-10 18:47:59 +00:00
|
|
|
|
|
|
|
# Generate version header file.
|
|
|
|
add_custom_target(
|
|
|
|
version_header ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2016-11-24 17:37:34 +00:00
|
|
|
-DKICAD_VERSION=${KICAD_VERSION}
|
|
|
|
-DKICAD_BRANCH_NAME=${KICAD_BRANCH_NAME}
|
|
|
|
-DKICAD_VERSION_EXTRA=${KICAD_VERSION_EXTRA}
|
2015-11-24 10:05:34 +00:00
|
|
|
-DOUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.h
|
2015-07-10 18:47:59 +00:00
|
|
|
-DSRC_PATH=${PROJECT_SOURCE_DIR}
|
|
|
|
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
|
|
|
|
-P ${CMAKE_MODULE_PATH}/WriteVersionHeader.cmake
|
|
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
|
|
COMMENT "Generating version string header"
|
|
|
|
)
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_ABOUT_DLG_SRCS
|
2010-09-01 13:31:20 +00:00
|
|
|
dialog_about/AboutDialog_main.cpp
|
|
|
|
dialog_about/dialog_about.cpp
|
|
|
|
dialog_about/dialog_about_base.cpp
|
2016-01-16 01:56:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set( COMMON_DLG_SRCS
|
2018-09-22 11:54:01 +00:00
|
|
|
dialogs/dialog_color_picker.cpp
|
|
|
|
dialogs/dialog_color_picker_base.cpp
|
2018-03-07 13:05:12 +00:00
|
|
|
dialogs/dialog_configure_paths.cpp
|
|
|
|
dialogs/dialog_configure_paths_base.cpp
|
2010-11-20 10:59:59 +00:00
|
|
|
dialogs/dialog_display_info_HTML_base.cpp
|
2018-07-19 19:15:40 +00:00
|
|
|
dialogs/dialog_edit_library_tables.cpp
|
2012-03-08 17:47:23 +00:00
|
|
|
dialogs/dialog_exit_base.cpp
|
2018-05-23 09:46:25 +00:00
|
|
|
dialogs/dialog_file_dir_picker.cpp
|
2019-01-20 01:45:17 +00:00
|
|
|
dialogs/dialog_global_lib_table_config.cpp
|
|
|
|
dialogs/dialog_global_lib_table_config_base.cpp
|
2018-10-02 21:37:15 +00:00
|
|
|
dialogs/dialog_hotkey_list.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_image_editor.cpp
|
|
|
|
dialogs/dialog_image_editor_base.cpp
|
2013-01-10 12:18:43 +00:00
|
|
|
dialogs/dialog_list_selector_base.cpp
|
2010-11-20 10:59:59 +00:00
|
|
|
dialogs/dialog_page_settings_base.cpp
|
2018-03-12 22:45:17 +00:00
|
|
|
dialogs/dialog_text_entry_base.cpp
|
2018-10-05 14:41:17 +00:00
|
|
|
dialogs/dialog_print_generic.cpp
|
|
|
|
dialogs/dialog_print_generic_base.cpp
|
2018-03-12 22:45:17 +00:00
|
|
|
dialogs/dialog_text_entry.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
dialogs/panel_common_settings.cpp
|
|
|
|
dialogs/panel_common_settings_base.cpp
|
|
|
|
dialogs/panel_hotkeys_editor.cpp
|
2015-06-16 12:20:42 +00:00
|
|
|
dialogs/wx_html_report_panel.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/wx_html_report_panel_base.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2010-09-01 13:31:20 +00:00
|
|
|
|
2016-01-16 01:56:57 +00:00
|
|
|
set( COMMON_WIDGET_SRCS
|
2018-10-01 16:18:29 +00:00
|
|
|
widgets/button_row_panel.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/color_swatch.cpp
|
|
|
|
widgets/footprint_choice.cpp
|
2017-03-10 19:11:41 +00:00
|
|
|
widgets/footprint_preview_widget.cpp
|
2017-03-23 00:59:25 +00:00
|
|
|
widgets/footprint_select_widget.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/gal_options_panel.cpp
|
2018-03-28 17:14:04 +00:00
|
|
|
widgets/grid_combobox.cpp
|
2018-02-08 12:16:07 +00:00
|
|
|
widgets/grid_icon_text_helpers.cpp
|
2018-07-20 15:03:43 +00:00
|
|
|
widgets/grid_text_button_helpers.cpp
|
2017-02-22 12:34:23 +00:00
|
|
|
widgets/indicator_icon.cpp
|
2018-09-22 10:51:18 +00:00
|
|
|
widgets/layer_box_selector.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
widgets/lib_tree.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/mathplot.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
widgets/paged_dialog.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/progress_reporter.cpp
|
2018-05-30 10:52:19 +00:00
|
|
|
widgets/stepped_slider.cpp
|
2019-02-23 13:58:57 +00:00
|
|
|
widgets/tab_traversal.cpp
|
2017-11-23 12:35:03 +00:00
|
|
|
widgets/text_ctrl_eval.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/two_column_tree_list.cpp
|
2018-10-03 10:02:43 +00:00
|
|
|
widgets/ui_common.cpp
|
2017-11-10 23:27:46 +00:00
|
|
|
widgets/unit_binder.cpp
|
2019-01-28 21:37:36 +00:00
|
|
|
widgets/widget_save_restore.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/widget_hotkey_list.cpp
|
2018-05-30 10:52:19 +00:00
|
|
|
widgets/wx_grid.cpp
|
2016-01-16 01:56:57 +00:00
|
|
|
)
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_PAGE_LAYOUT_SRCS
|
2013-07-22 16:45:22 +00:00
|
|
|
page_layout/title_block_shapes.cpp
|
2018-01-29 08:39:13 +00:00
|
|
|
page_layout/worksheet_dataitem.cpp
|
|
|
|
page_layout/worksheet_layout.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
page_layout/page_layout_default_description.cpp
|
|
|
|
page_layout/page_layout_graphic_items.cpp
|
|
|
|
page_layout/page_layout_reader_keywords.cpp
|
|
|
|
page_layout/page_layout_reader.cpp
|
|
|
|
)
|
2013-05-24 08:59:40 +00:00
|
|
|
|
2017-03-10 13:33:00 +00:00
|
|
|
set( COMMON_PREVIEW_ITEMS_SRCS
|
2017-02-26 20:08:45 +00:00
|
|
|
preview_items/arc_assistant.cpp
|
|
|
|
preview_items/arc_geom_manager.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
preview_items/bright_box.cpp
|
2017-02-23 06:23:17 +00:00
|
|
|
preview_items/centreline_rect_item.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
preview_items/polygon_geom_manager.cpp
|
|
|
|
preview_items/polygon_item.cpp
|
2017-03-09 09:09:13 +00:00
|
|
|
preview_items/preview_utils.cpp
|
|
|
|
preview_items/ruler_item.cpp
|
2017-03-10 13:34:06 +00:00
|
|
|
preview_items/selection_area.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
preview_items/simple_overlay_item.cpp
|
2017-03-10 13:33:00 +00:00
|
|
|
)
|
|
|
|
|
2018-01-28 18:12:26 +00:00
|
|
|
set( PLOTTERS_CONTROL_SRCS
|
|
|
|
plotters/plotter.cpp
|
|
|
|
plotters/DXF_plotter.cpp
|
|
|
|
plotters/GERBER_plotter.cpp
|
|
|
|
plotters/HPGL_plotter.cpp
|
|
|
|
plotters/PDF_plotter.cpp
|
|
|
|
plotters/PS_plotter.cpp
|
|
|
|
plotters/SVG_plotter.cpp
|
|
|
|
plotters/common_plot_functions.cpp
|
|
|
|
)
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_SRCS
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
${LIB_KICAD_SRCS}
|
2010-09-01 13:31:20 +00:00
|
|
|
${COMMON_ABOUT_DLG_SRCS}
|
2016-01-16 01:56:57 +00:00
|
|
|
${COMMON_DLG_SRCS}
|
|
|
|
${COMMON_WIDGET_SRCS}
|
2013-07-19 18:27:22 +00:00
|
|
|
${COMMON_PAGE_LAYOUT_SRCS}
|
2017-03-10 13:33:00 +00:00
|
|
|
${COMMON_PREVIEW_ITEMS_SRCS}
|
2018-01-28 18:12:26 +00:00
|
|
|
${PLOTTERS_CONTROL_SRCS}
|
2018-12-10 10:56:28 +00:00
|
|
|
advanced_config.cpp
|
2019-01-24 18:15:21 +00:00
|
|
|
array_options.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
base_struct.cpp
|
2009-06-25 20:45:27 +00:00
|
|
|
bezier_curves.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
bin_mod.cpp
|
2011-08-24 07:33:55 +00:00
|
|
|
bitmap.cpp
|
2018-01-29 08:39:13 +00:00
|
|
|
bitmap_base.cpp
|
2018-09-19 13:06:29 +00:00
|
|
|
board_printout.cpp
|
2010-01-05 08:48:49 +00:00
|
|
|
build_version.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
colors_design_settings.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
colors.cpp
|
2016-05-10 15:57:21 +00:00
|
|
|
commit.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
common.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
config_params.cpp
|
2009-06-21 13:37:27 +00:00
|
|
|
confirm.cpp
|
2014-05-16 19:03:45 +00:00
|
|
|
convert_basic_shapes_to_polygon.cpp
|
2012-03-22 07:02:49 +00:00
|
|
|
dialog_shim.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
displlst.cpp
|
2019-03-22 21:15:26 +00:00
|
|
|
dpi_scaling.cpp
|
2018-01-28 18:12:26 +00:00
|
|
|
draw_graphic_text.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
dsnlexer.cpp
|
2017-04-07 11:40:34 +00:00
|
|
|
eagle_parser.cpp
|
2018-01-29 15:39:40 +00:00
|
|
|
eda_base_frame.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
eda_dde.cpp
|
|
|
|
eda_doc.cpp
|
2018-08-11 16:04:46 +00:00
|
|
|
eda_dockart.cpp
|
2015-12-20 20:52:39 +00:00
|
|
|
eda_pattern_match.cpp
|
2018-06-17 13:50:49 +00:00
|
|
|
eda_size_ctrl.cpp
|
2017-11-14 10:17:16 +00:00
|
|
|
env_paths.cpp
|
2018-09-28 21:08:31 +00:00
|
|
|
env_vars.cpp
|
2016-09-20 15:59:43 +00:00
|
|
|
exceptions.cpp
|
2017-02-09 09:36:38 +00:00
|
|
|
executable_names.cpp
|
2018-03-07 13:05:12 +00:00
|
|
|
filename_resolver.cpp
|
2011-01-14 17:43:30 +00:00
|
|
|
filter_reader.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
footprint_filter.cpp
|
|
|
|
footprint_info.cpp
|
2016-09-19 11:01:36 +00:00
|
|
|
gbr_metadata.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
gestfich.cpp
|
2012-01-13 09:46:02 +00:00
|
|
|
getrunningmicrosecs.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
gr_basic.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
grid_tricks.cpp
|
|
|
|
hash_eda.cpp
|
2018-09-26 14:26:26 +00:00
|
|
|
hotkey_store.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
hotkeys_basic.cpp
|
2011-09-04 18:35:14 +00:00
|
|
|
html_messagebox.cpp
|
2017-02-14 10:03:08 +00:00
|
|
|
incremental_text_ctrl.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
kiface_i.cpp
|
2014-02-03 15:10:37 +00:00
|
|
|
kiway.cpp
|
2014-04-21 06:28:17 +00:00
|
|
|
kiway_express.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
kiway_holder.cpp
|
2014-04-21 06:28:17 +00:00
|
|
|
kiway_player.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
lib_id.cpp
|
2016-11-20 02:22:58 +00:00
|
|
|
lib_table_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
lib_table_keywords.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
lib_tree_model.cpp
|
|
|
|
lib_tree_model_adapter.cpp
|
2014-09-07 19:01:26 +00:00
|
|
|
lockfile.cpp
|
2018-01-29 10:37:29 +00:00
|
|
|
marker_base.cpp
|
2017-11-23 16:20:27 +00:00
|
|
|
md5_hash.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
msgpanel.cpp
|
2010-08-09 02:03:16 +00:00
|
|
|
netlist_keywords.cpp
|
2016-12-22 21:01:05 +00:00
|
|
|
observable.cpp
|
2014-04-18 02:05:40 +00:00
|
|
|
prependpath.cpp
|
2018-10-05 14:41:17 +00:00
|
|
|
printout.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
project.cpp
|
2016-07-06 09:22:56 +00:00
|
|
|
properties.cpp
|
2013-04-08 21:04:45 +00:00
|
|
|
ptree.cpp
|
2019-01-29 10:50:50 +00:00
|
|
|
refdes_utils.cpp
|
2013-04-25 16:29:35 +00:00
|
|
|
reporter.cpp
|
2009-12-11 04:55:24 +00:00
|
|
|
richio.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
search_stack.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
searchhelpfilefullpath.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
selcolor.cpp
|
2017-08-04 12:43:02 +00:00
|
|
|
settings.cpp
|
2018-02-19 11:09:40 +00:00
|
|
|
status_popup.cpp
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
systemdirsappend.cpp
|
2018-04-13 13:58:25 +00:00
|
|
|
trace_helpers.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
undo_redo_container.cpp
|
2013-12-09 18:09:58 +00:00
|
|
|
utf8.cpp
|
2014-12-11 12:00:59 +00:00
|
|
|
validators.cpp
|
2012-02-16 20:03:33 +00:00
|
|
|
wildcards_and_files_ext.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
worksheet.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
wxdataviewctrl_helpers.cpp
|
2010-08-07 15:25:18 +00:00
|
|
|
xnode.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2014-02-03 21:39:42 +00:00
|
|
|
if( TRUE OR NOT USE_KIWAY_DLLS )
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
#if( NOT USE_KIWAY_DLLS )
|
|
|
|
# We DO NOT want pgm_base.cpp linked into the KIFACE, only into the KIWAY.
|
|
|
|
# Check the map files to verify eda_pgm.o not being linked in.
|
|
|
|
list( APPEND COMMON_SRCS pgm_base.cpp )
|
2014-02-03 21:39:42 +00:00
|
|
|
endif()
|
|
|
|
|
2013-12-10 23:41:34 +00:00
|
|
|
if( NOT HAVE_STRTOKR )
|
2014-02-03 21:39:42 +00:00
|
|
|
list( APPEND COMMON_SRCS strtok_r.c )
|
2013-12-10 23:41:34 +00:00
|
|
|
endif()
|
|
|
|
|
2018-09-13 15:13:17 +00:00
|
|
|
if( BUILD_GITHUB_PLUGIN )
|
|
|
|
list( APPEND COMMON_SRCS
|
|
|
|
kicad_curl/kicad_curl.cpp
|
|
|
|
kicad_curl/kicad_curl_easy.cpp
|
|
|
|
)
|
|
|
|
endif()
|
2013-08-02 14:46:53 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_SRCS
|
2013-09-23 15:02:25 +00:00
|
|
|
${COMMON_SRCS}
|
2017-03-07 13:30:15 +00:00
|
|
|
system/libcontext.cpp
|
|
|
|
|
2013-09-23 15:02:25 +00:00
|
|
|
view/view.cpp
|
|
|
|
view/view_item.cpp
|
|
|
|
view/view_group.cpp
|
2013-08-02 14:46:53 +00:00
|
|
|
|
2013-09-30 07:45:42 +00:00
|
|
|
math/math_util.cpp
|
2013-11-18 16:04:23 +00:00
|
|
|
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/action_manager.cpp
|
|
|
|
tool/actions.cpp
|
|
|
|
tool/common_tools.cpp
|
|
|
|
tool/conditional_menu.cpp
|
|
|
|
tool/context_menu.cpp
|
|
|
|
tool/grid_menu.cpp
|
|
|
|
tool/selection_conditions.cpp
|
2014-07-09 11:50:27 +00:00
|
|
|
tool/tool_action.cpp
|
2013-09-11 12:42:12 +00:00
|
|
|
tool/tool_base.cpp
|
|
|
|
tool/tool_dispatcher.cpp
|
|
|
|
tool/tool_event.cpp
|
|
|
|
tool/tool_interactive.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/tool_manager.cpp
|
2017-02-28 03:04:44 +00:00
|
|
|
tool/tool_menu.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/zoom_menu.cpp
|
2017-08-31 02:35:30 +00:00
|
|
|
tool/zoom_tool.cpp
|
2013-09-12 15:42:28 +00:00
|
|
|
|
2017-12-27 16:06:27 +00:00
|
|
|
geometry/convex_hull.cpp
|
2018-03-08 12:48:29 +00:00
|
|
|
geometry/geometry_utils.cpp
|
2013-09-23 15:02:25 +00:00
|
|
|
geometry/seg.cpp
|
2015-06-12 15:12:02 +00:00
|
|
|
geometry/shape.cpp
|
2013-09-23 15:02:25 +00:00
|
|
|
geometry/shape_collisions.cpp
|
2018-02-04 12:09:30 +00:00
|
|
|
geometry/shape_arc.cpp
|
2015-06-12 15:12:02 +00:00
|
|
|
geometry/shape_file_io.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
geometry/shape_line_chain.cpp
|
|
|
|
geometry/shape_poly_set.cpp
|
2018-09-22 11:54:01 +00:00
|
|
|
geometry/trigo.cpp
|
2017-11-23 10:36:24 +00:00
|
|
|
|
|
|
|
libeval/numeric_evaluator.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
2013-12-30 17:53:12 +00:00
|
|
|
add_library( common STATIC ${COMMON_SRCS} )
|
2015-07-10 18:47:59 +00:00
|
|
|
add_dependencies( common version_header )
|
2016-01-10 21:44:37 +00:00
|
|
|
target_link_libraries( common
|
2019-01-11 22:03:45 +00:00
|
|
|
bitmaps
|
2019-01-31 11:53:01 +00:00
|
|
|
polygon
|
2017-02-23 00:45:52 +00:00
|
|
|
gal
|
2016-01-10 21:44:37 +00:00
|
|
|
${Boost_LIBRARIES}
|
2016-01-14 15:17:13 +00:00
|
|
|
${CURL_LIBRARIES}
|
|
|
|
${OPENSSL_LIBRARIES} # empty on Apple
|
2019-03-25 21:45:59 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
2016-01-10 21:44:37 +00:00
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2015-07-10 18:47:59 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( PCB_COMMON_SRCS
|
2012-01-23 04:53:21 +00:00
|
|
|
base_screen.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
eda_text.cpp
|
|
|
|
fp_lib_table.cpp
|
2014-06-24 16:17:18 +00:00
|
|
|
lset.cpp
|
2018-01-29 10:37:29 +00:00
|
|
|
page_info.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
pcb_keywords.cpp
|
|
|
|
pcb_plot_params_keywords.cpp
|
2018-01-29 15:39:40 +00:00
|
|
|
../pcbnew/pcb_base_frame.cpp
|
2017-10-31 10:59:47 +00:00
|
|
|
../pcbnew/board_commit.cpp
|
2018-02-02 20:57:12 +00:00
|
|
|
../pcbnew/board_connected_item.cpp
|
|
|
|
../pcbnew/board_design_settings.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/board_items_to_polygon_shape_transform.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_board.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_board_item.cpp
|
2010-01-18 12:37:53 +00:00
|
|
|
../pcbnew/class_dimension.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_drawsegment.cpp
|
|
|
|
../pcbnew/class_edge_mod.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/class_marker_pcb.cpp
|
|
|
|
../pcbnew/class_module.cpp
|
2018-01-30 14:34:09 +00:00
|
|
|
../pcbnew/netclass.cpp
|
|
|
|
../pcbnew/netinfo_item.cpp
|
|
|
|
../pcbnew/netinfo_list.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_pad.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/class_pcb_target.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_pcb_text.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../pcbnew/class_text_mod.cpp
|
|
|
|
../pcbnew/class_track.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
../pcbnew/class_zone.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/collectors.cpp
|
2018-10-12 06:17:15 +00:00
|
|
|
../pcbnew/connectivity/connectivity_algo.cpp
|
2018-10-12 21:29:16 +00:00
|
|
|
../pcbnew/connectivity/connectivity_items.cpp
|
2018-10-12 06:17:15 +00:00
|
|
|
../pcbnew/connectivity/connectivity_data.cpp
|
2017-03-19 15:38:30 +00:00
|
|
|
../pcbnew/convert_drawsegment_list_to_polygon.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
../pcbnew/drc_item.cpp
|
2012-05-20 13:14:46 +00:00
|
|
|
../pcbnew/eagle_plugin.cpp
|
2012-12-28 20:52:12 +00:00
|
|
|
../pcbnew/gpcb_plugin.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/io_mgr.cpp
|
|
|
|
../pcbnew/kicad_clipboard.cpp
|
|
|
|
../pcbnew/kicad_netlist_reader.cpp
|
|
|
|
../pcbnew/kicad_plugin.cpp
|
|
|
|
../pcbnew/legacy_netlist_reader.cpp
|
|
|
|
../pcbnew/legacy_plugin.cpp
|
|
|
|
../pcbnew/netlist_reader.cpp
|
2018-01-30 19:23:06 +00:00
|
|
|
../pcbnew/pad_custom_shape_functions.cpp
|
|
|
|
../pcbnew/pad_draw_functions.cpp
|
2017-10-30 17:21:07 +00:00
|
|
|
../pcbnew/pcb_display_options.cpp
|
2017-10-31 15:08:18 +00:00
|
|
|
../pcbnew/pcb_draw_panel_gal.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/pcb_general_settings.cpp
|
|
|
|
../pcbnew/pcb_netlist.cpp
|
2017-10-31 15:08:18 +00:00
|
|
|
../pcbnew/pcb_painter.cpp
|
2012-06-09 17:00:13 +00:00
|
|
|
../pcbnew/pcb_parser.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/pcb_plot_params.cpp
|
2018-01-30 14:34:09 +00:00
|
|
|
../pcbnew/pcb_screen.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
../pcbnew/pcb_view.cpp
|
|
|
|
../pcbnew/plugin.cpp
|
|
|
|
../pcbnew/ratsnest_data.cpp
|
|
|
|
../pcbnew/ratsnest_viewitem.cpp
|
|
|
|
../pcbnew/sel_layer.cpp
|
2018-01-30 14:34:09 +00:00
|
|
|
../pcbnew/zone_settings.cpp
|
2018-08-19 16:11:58 +00:00
|
|
|
widgets/net_selector.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2011-12-31 05:44:00 +00:00
|
|
|
# add -DPCBNEW to compilation of these PCBNEW sources
|
|
|
|
set_source_files_properties( ${PCB_COMMON_SRCS} PROPERTIES
|
|
|
|
COMPILE_DEFINITIONS "PCBNEW"
|
|
|
|
)
|
2011-12-07 05:28:49 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
add_library( pcbcommon STATIC ${PCB_COMMON_SRCS} )
|
2014-10-22 23:25:59 +00:00
|
|
|
|
2018-08-03 11:51:41 +00:00
|
|
|
target_include_directories( pcbcommon PUBLIC
|
|
|
|
../include/legacy_wx
|
|
|
|
)
|
|
|
|
|
2019-01-31 11:53:01 +00:00
|
|
|
target_link_libraries( pcbcommon PUBLIC
|
|
|
|
common
|
|
|
|
)
|
|
|
|
|
2018-08-03 11:51:41 +00:00
|
|
|
|
2010-08-09 02:03:16 +00:00
|
|
|
# auto-generate netlist_lexer.h and netlist_keywords.cpp
|
2010-12-27 16:49:39 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/netlist.keywords
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/netlist_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/netlist_keywords.cpp
|
2010-12-27 16:49:39 +00:00
|
|
|
NL_T
|
2013-05-31 21:22:34 +00:00
|
|
|
|
|
|
|
# Pass header file with dependency on *_lexer.h as extra_arg
|
|
|
|
${CMAKE_PROJECT_SOURCE_DIR}/pcbnew/netlist_reader.h
|
2010-08-09 02:03:16 +00:00
|
|
|
)
|
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
add_custom_target(
|
|
|
|
netlist_lexer_source_files ALL
|
|
|
|
DEPENDS
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/netlist_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/netlist_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies( common netlist_lexer_source_files )
|
2015-09-13 19:11:45 +00:00
|
|
|
add_dependencies( pcbcommon netlist_lexer_source_files )
|
2014-10-22 23:25:59 +00:00
|
|
|
|
2011-12-08 18:23:44 +00:00
|
|
|
# auto-generate pcb_plot_params_lexer.h and pcb_plot_params_keywords.cpp
|
|
|
|
make_lexer(
|
2012-01-23 04:33:36 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb_plot_params.keywords
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/pcb_plot_params_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb_plot_params_keywords.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
PCBPLOTPARAMS_T
|
2013-05-31 21:22:34 +00:00
|
|
|
|
2013-09-21 07:30:23 +00:00
|
|
|
# Pass header file with dependencies on *_lexer.h as extra_arg
|
2013-05-31 21:22:34 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/pcbnew/pcb_plot_params.h
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2011-12-08 18:23:44 +00:00
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
add_custom_target(
|
|
|
|
pcb_plot_lexer_source_files ALL
|
|
|
|
DEPENDS
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/pcb_plot_params_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb_plot_params_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies( pcbcommon pcb_plot_lexer_source_files )
|
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
# auto-generate pcbnew_sexpr.h and pcbnew_sexpr.cpp
|
2013-05-31 21:22:34 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb.keywords
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/pcb_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb_keywords.cpp
|
2013-05-31 21:22:34 +00:00
|
|
|
PCB_KEYS_T
|
|
|
|
|
|
|
|
# Pass header file with dependency on *_lexer.h as extra_arg
|
|
|
|
${PROJECT_SOURCE_DIR}/pcbnew/pcb_parser.h
|
|
|
|
)
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
add_custom_target(
|
|
|
|
pcb_lexer_source_files ALL
|
|
|
|
DEPENDS
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/pcb_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/pcb_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies( pcbcommon pcb_lexer_source_files )
|
|
|
|
|
2016-11-20 18:33:07 +00:00
|
|
|
# auto-generate s-expression library table code.
|
2013-05-31 21:22:34 +00:00
|
|
|
make_lexer(
|
2016-11-20 23:35:08 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib_table.keywords
|
|
|
|
${PROJECT_SOURCE_DIR}/include/lib_table_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib_table_keywords.cpp
|
|
|
|
LIB_TABLE_T
|
2013-05-31 21:22:34 +00:00
|
|
|
)
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
add_custom_target(
|
2016-11-20 23:35:08 +00:00
|
|
|
lib_table_lexer_source_files ALL
|
2014-10-22 23:25:59 +00:00
|
|
|
DEPENDS
|
2016-11-20 23:35:08 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/lib_table_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib_table_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
|
|
|
|
2016-11-20 23:35:08 +00:00
|
|
|
add_dependencies( common lib_table_lexer_source_files )
|
2016-11-21 12:38:15 +00:00
|
|
|
add_dependencies( pcbcommon lib_table_lexer_source_files )
|
2014-10-22 23:25:59 +00:00
|
|
|
|
2013-06-05 12:03:16 +00:00
|
|
|
# auto-generate page layout reader s-expression page_layout_reader_lexer.h
|
|
|
|
# and title_block_reader_keywords.cpp.
|
|
|
|
make_lexer(
|
2013-07-19 18:27:22 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/page_layout/page_layout_reader.keywords
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/page_layout_reader_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/page_layout/page_layout_reader_keywords.cpp
|
2013-06-05 12:03:16 +00:00
|
|
|
TB_READER_T
|
|
|
|
)
|
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
add_custom_target(
|
|
|
|
page_layout_lexer_source_files ALL
|
|
|
|
DEPENDS
|
2016-08-30 13:04:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/include/page_layout_reader_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/page_layout/page_layout_reader_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies( common page_layout_lexer_source_files )
|
|
|
|
|
2013-09-21 07:30:23 +00:00
|
|
|
# This one gets made only when testing.
|
|
|
|
# to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp
|
|
|
|
add_executable( dsntest EXCLUDE_FROM_ALL dsnlexer.cpp )
|
|
|
|
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} rt )
|
2014-02-19 21:39:21 +00:00
|
|
|
|
2019-01-23 15:58:16 +00:00
|
|
|
target_link_libraries( pcbcommon PUBLIC bitmaps )
|
2016-09-20 15:59:43 +00:00
|
|
|
|
|
|
|
|
2016-09-19 19:31:26 +00:00
|
|
|
# _kiway.so
|
2016-09-14 23:22:52 +00:00
|
|
|
if( false ) # future
|
|
|
|
#if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
|
2016-09-20 15:59:43 +00:00
|
|
|
|
|
|
|
set( SWIG_FLAGS
|
|
|
|
-I${CMAKE_CURRENT_SOURCE_DIR}/../include
|
|
|
|
)
|
|
|
|
|
|
|
|
if( DEBUG )
|
|
|
|
set( SWIG_FLAGS ${SWIG_FLAGS} -DDEBUG )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# call SWIG in C++ mode: https://cmake.org/cmake/help/v3.2/module/UseSWIG.html
|
|
|
|
set_source_files_properties( swig/kiway.i PROPERTIES CPLUSPLUS ON )
|
|
|
|
|
|
|
|
# collect CFLAGS , and pass them to swig later
|
|
|
|
get_directory_property( DirDefs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS )
|
|
|
|
foreach( d ${DirDefs} )
|
|
|
|
set( SWIG_FLAGS ${SWIG_FLAGS} -D${d} )
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set( CMAKE_SWIG_FLAGS ${SWIG_FLAGS} )
|
|
|
|
|
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
|
|
|
include_directories(
|
|
|
|
../common
|
|
|
|
${INC_AFTER}
|
|
|
|
)
|
|
|
|
|
|
|
|
set( SWIG_MODULE_kiway_EXTRA_DEPS
|
|
|
|
../common/swig/ki_exception.i
|
|
|
|
../common/swig/kicad.i
|
|
|
|
)
|
|
|
|
|
|
|
|
swig_add_module( kiway python
|
|
|
|
swig/kiway.i
|
|
|
|
)
|
|
|
|
|
|
|
|
swig_link_libraries( kiway
|
|
|
|
common
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2016-09-19 19:31:26 +00:00
|
|
|
set_source_files_properties( ${swig_generated_file_fullname} PROPERTIES
|
|
|
|
# See section 16.3 "The SWIG runtime code"
|
|
|
|
# http://www.swig.org/Doc3.0/SWIGDocumentation.html#Modules_nn2
|
|
|
|
COMPILE_FLAGS "-DSWIG_TYPE_TABLE=WXPYTHON_TYPE_TABLE -Wno-delete-non-virtual-dtor"
|
|
|
|
)
|
|
|
|
|
2016-09-20 15:59:43 +00:00
|
|
|
if( MAKE_LINK_MAPS )
|
|
|
|
set_target_properties( _kiway PROPERTIES
|
|
|
|
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_kiway.so.map"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|