Loading CMakeLists.txt +19 −8 Original line number Original line Diff line number Diff line Loading @@ -91,6 +91,16 @@ endif(KICAD_STABLE_VERSION ) #================================================ #================================================ if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX) if(WIN32) # under Windows/mingw, -fPIC option is enabled by default # Set default flags for Release build. set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") # Set default flags for Debug build. set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG") else(WIN32) # Set default flags for Release build. # Set default flags for Release build. set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") Loading @@ -99,6 +109,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) # Set default flags for Debug build. # Set default flags for Debug build. set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") endif(WIN32) endif(CMAKE_COMPILER_IS_GNUCXX) endif(CMAKE_COMPILER_IS_GNUCXX) Loading pcbnew/CMakeLists.txt +25 −19 Original line number Original line Diff line number Diff line Loading @@ -337,6 +337,11 @@ if (KICAD_SCRIPTING_MODULES) endif (KICAD_SCRIPTING_MODULES) endif (KICAD_SCRIPTING_MODULES) if (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES) set ( PCBNEW_EXTRA_LIBS "rt" ) endif (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES) ### ### # Windows resource file # Windows resource file ### ### Loading Loading @@ -410,6 +415,7 @@ endif(APPLE) ### ### # Link executable target pcbnew with correct libraries # Link executable target pcbnew with correct libraries ### ### target_link_libraries(pcbnew target_link_libraries(pcbnew 3d-viewer 3d-viewer pcbcommon pcbcommon Loading @@ -421,7 +427,7 @@ target_link_libraries(pcbnew ${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES} ${GDI_PLUS_LIBRARIES} ${GDI_PLUS_LIBRARIES} ${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES} rt ${PCBNEW_EXTRA_LIBS} ) ) ### ### Loading Loading @@ -463,12 +469,12 @@ endif(KICAD_SCRIPTING_MODULES) if(NOT MSVC) if(NOT MSVC) # This one gets made only when testing. # This one gets made only when testing. add_executable(specctra_test EXCLUDE_FROM_ALL specctra_test.cpp specctra.cpp) add_executable(specctra_test EXCLUDE_FROM_ALL specctra_test.cpp specctra.cpp) target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES} rt) target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES}) endif(NOT MSVC) endif(NOT MSVC) # This one gets made only when testing. # This one gets made only when testing. add_executable(layer_widget_test WIN32 EXCLUDE_FROM_ALL add_executable(layer_widget_test WIN32 EXCLUDE_FROM_ALL layer_widget.cpp layer_widget.cpp ) ) target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES} rt) target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES}) pcbnew/dialogs/dialog_footprint_wizard_list.cpp +2 −2 Original line number Original line Diff line number Diff line /** /** * @file dialog_scripting.cpp * @file dialog_footprint_wizard_list.cpp */ */ #include <wx-2.8/wx/generic/grid.h> #include <wx/grid.h> Loading pcbnew/footprint_wizard.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -87,6 +87,9 @@ void FOOTPRINT_WIZARD_FRAME::DisplayWizardInfos() void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() { { if( m_FootprintWizard == NULL ) return; SetCurItem( NULL ); SetCurItem( NULL ); // Delete the current footprint // Delete the current footprint GetBoard()->m_Modules.DeleteAll(); GetBoard()->m_Modules.DeleteAll(); Loading Loading
CMakeLists.txt +19 −8 Original line number Original line Diff line number Diff line Loading @@ -91,6 +91,16 @@ endif(KICAD_STABLE_VERSION ) #================================================ #================================================ if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX) if(WIN32) # under Windows/mingw, -fPIC option is enabled by default # Set default flags for Release build. set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") # Set default flags for Debug build. set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG") else(WIN32) # Set default flags for Release build. # Set default flags for Release build. set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC") Loading @@ -99,6 +109,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) # Set default flags for Debug build. # Set default flags for Debug build. set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC") endif(WIN32) endif(CMAKE_COMPILER_IS_GNUCXX) endif(CMAKE_COMPILER_IS_GNUCXX) Loading
pcbnew/CMakeLists.txt +25 −19 Original line number Original line Diff line number Diff line Loading @@ -337,6 +337,11 @@ if (KICAD_SCRIPTING_MODULES) endif (KICAD_SCRIPTING_MODULES) endif (KICAD_SCRIPTING_MODULES) if (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES) set ( PCBNEW_EXTRA_LIBS "rt" ) endif (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES) ### ### # Windows resource file # Windows resource file ### ### Loading Loading @@ -410,6 +415,7 @@ endif(APPLE) ### ### # Link executable target pcbnew with correct libraries # Link executable target pcbnew with correct libraries ### ### target_link_libraries(pcbnew target_link_libraries(pcbnew 3d-viewer 3d-viewer pcbcommon pcbcommon Loading @@ -421,7 +427,7 @@ target_link_libraries(pcbnew ${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES} ${GDI_PLUS_LIBRARIES} ${GDI_PLUS_LIBRARIES} ${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES} rt ${PCBNEW_EXTRA_LIBS} ) ) ### ### Loading Loading @@ -463,12 +469,12 @@ endif(KICAD_SCRIPTING_MODULES) if(NOT MSVC) if(NOT MSVC) # This one gets made only when testing. # This one gets made only when testing. add_executable(specctra_test EXCLUDE_FROM_ALL specctra_test.cpp specctra.cpp) add_executable(specctra_test EXCLUDE_FROM_ALL specctra_test.cpp specctra.cpp) target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES} rt) target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES}) endif(NOT MSVC) endif(NOT MSVC) # This one gets made only when testing. # This one gets made only when testing. add_executable(layer_widget_test WIN32 EXCLUDE_FROM_ALL add_executable(layer_widget_test WIN32 EXCLUDE_FROM_ALL layer_widget.cpp layer_widget.cpp ) ) target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES} rt) target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES})
pcbnew/dialogs/dialog_footprint_wizard_list.cpp +2 −2 Original line number Original line Diff line number Diff line /** /** * @file dialog_scripting.cpp * @file dialog_footprint_wizard_list.cpp */ */ #include <wx-2.8/wx/generic/grid.h> #include <wx/grid.h> Loading
pcbnew/footprint_wizard.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -87,6 +87,9 @@ void FOOTPRINT_WIZARD_FRAME::DisplayWizardInfos() void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() void FOOTPRINT_WIZARD_FRAME::ReloadFootprint() { { if( m_FootprintWizard == NULL ) return; SetCurItem( NULL ); SetCurItem( NULL ); // Delete the current footprint // Delete the current footprint GetBoard()->m_Modules.DeleteAll(); GetBoard()->m_Modules.DeleteAll(); Loading