Commit b6dcf9b7 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

Collect all the PCBNew Save() and ReadDesc...() functions into new file item_io.cpp,

which should eventually go away in favor of kicad_plugin.cpp.
Add CMake options USE_NEW_PCBNEW_LOAD and USE_NEW_PCBNEW_SAVE, which should not be
used yet, and both default to OFF accordingly.
parents 539f4e1e c4979318
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules)

option(USE_PNG_BITMAPS "use PNG bitmaps instead of XPM (default ON)" ON)

option(USE_NEW_PCBNEW_LOAD "use new plugin support for legacy file format (default OFF)" OFF)
option(USE_NEW_PCBNEW_SAVE "use new plugin support for legacy file format (default OFF)" OFF)

# Russian GOST patch
option(wxUSE_UNICODE "enable/disable building unicode (default OFF)")
option(KICAD_GOST "enable/disable building using GOST notation for multiple gates per package (default OFF)")
+3 −0
Original line number Diff line number Diff line
@@ -54,4 +54,7 @@

#cmakedefine USE_PNG_BITMAPS 1

#cmakedefine USE_NEW_PCBNEW_LOAD
#cmakedefine USE_NEW_PCBNEW_SAVE

#endif  /* __CONFIG_H__ */
+8 −0
Original line number Diff line number Diff line
@@ -107,6 +107,14 @@ set(PCB_COMMON_SRCS
    ../pcbnew/sel_layer.cpp
)


if ( USE_NEW_PCBNEW_LOAD OR USE_NEW_PCBNEW_SAVE )
    set( PCB_COMMON_SRCS ${PCB_COMMON_SRCS} ../pcbnew/item_io.cpp ../pcbnew/io_mgr.cpp ../pcbnew/kicad_plugin.cpp )
else()
    set( PCB_COMMON_SRCS ${PCB_COMMON_SRCS} ../pcbnew/item_io.cpp )
endif()


add_library(pcbcommon ${PCB_COMMON_SRCS})

# auto-generate netlist_lexer.h and netlist_keywords.cpp
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ set(CVPCB_SRCS
    savecmp.cpp
    setvisu.cpp
    tool_cvpcb.cpp
    writenetlistpcbnew.cpp)
    writenetlistpcbnew.cpp
    )

###
# Windows resource file
+0 −2
Original line number Diff line number Diff line
@@ -126,9 +126,7 @@ set(PCBNEW_SRCS
    hotkeys_board_editor.cpp
    hotkeys_module_editor.cpp
    initpcb.cpp
    io_mgr.cpp
    ioascii.cpp
    kicad_plugin.cpp
    layer_widget.cpp
    librairi.cpp
    loadcmp.cpp
Loading