Loading CMakeLists.txt +12 −4 Original line number Diff line number Diff line Loading @@ -74,6 +74,13 @@ else() message("Build testing (unstable) version of KiCad") endif() # All CMake downloads go here. Suggested is up in the source tree, not in the build dir where they # would have to be downloaded over and over again. The default is to choose a directory that is # hidden on linux (starts with a '.') because there is a way to exclude this directory when grepping # the source tree. set( DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/.downloads-by-cmake CACHE PATH "Location of KiCad downloads, suggested is a dir common to all builds, i.e. global." ) #================================================ # Set flags for GCC. Loading Loading @@ -149,6 +156,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS_DEBUG "${KICAD_GCC_DEBUG_BUILD_FLAGS} -Wall -g3 -ggdb3 -DDEBUG") endif() # quiet GCC 4.8.1 while in boost if( GCC_VERSION VERSION_GREATER 4.8 OR GCC_VERSION VERSION_EQUAL 4.8 ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs" ) endif() endif(CMAKE_COMPILER_IS_GNUCXX) if(wxUSE_UNICODE) Loading Loading @@ -239,10 +251,6 @@ include(Functions) include( ExternalProject ) # All CMake downloads go here, up in the source tree, not in the build dir where they # would have to be downloaded over and over again. set( DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/downloads-by-cmake ) #================================================ # Find libraries that are needed to build KiCad. #================================================ Loading common/page_layout_default_description.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -106,16 +106,18 @@ * */ #include <worksheet.h> // defaultPageLayout // height of the band reference grid 2.0 mm // worksheet frame reference text size 1.3 mm // default text size 1.5 mm // default line width 0.15 mm // frame ref pitch 50 mm extern const wxString defaultPageLayout; // Default page layout (sizes are in mm) const wxString defaultPageLayout( wxT( "( page_layout\n" const char defaultPageLayout[] = "( page_layout\n" "(setup (textsize 1.5 1.5) (linewidth 0.15) (textlinewidth 0.15) )" "(rect (comment rect around the title block) (linewidth 0.15) (start 110 34) (end 2 2) )\n" "(rect (start 0 0 ltcorner) (end 0 0 rbcorner) (repeat 2) (incrx 2) (incry 2) )\n" Loading Loading @@ -146,4 +148,5 @@ const wxString defaultPageLayout( wxT( "( page_layout\n" "(tbtext \"%C3\" (comment Comment 0) (pos 108 32) )\n" "(line (start 90 8.5) end 90 5.5) )\n" "(line (start 26 8.5) end 26 2) )\n" ")\n" ) ); ")\n" ; common/page_layout_reader.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -36,10 +36,6 @@ #include <vector2d.h> #include <page_layout_reader_lexer.h> // defaultPageLayout is the default page layout description // using the S expr. // see page_layout_default_shape.cpp extern const wxString defaultPageLayout; using namespace TB_READER_T; Loading Loading @@ -448,7 +444,7 @@ double PAGE_LAYOUT_READER_PARSER::parseDouble() void WORKSHEET_LAYOUT::SetDefaultLayout() { PAGE_LAYOUT_READER_PARSER lp_parser( defaultPageLayout, "default page" ); PAGE_LAYOUT_READER_PARSER lp_parser( defaultPageLayout, wxT( "default page" ) ); try { Loading include/worksheet.h +5 −0 Original line number Diff line number Diff line Loading @@ -47,4 +47,9 @@ void DrawPageLayout( wxDC* aDC, EDA_DRAW_PANEL * aCanvas, int aPenWidth, double aScalar, EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor ); // defaultPageLayout is the default page layout description // using the S expr. // see page_layout_default_shape.cpp extern const char defaultPageLayout[]; #endif // WORKSHEET_H_ pcbnew/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ set(PCBNEW_DIALOGS dialogs/dialog_mask_clearance_base.cpp dialogs/dialog_SVG_print.cpp dialogs/dialog_SVG_print_base.cpp dialogs/dialog_set_grid.cpp dialogs/dialog_set_grid_base.cpp footprint_wizard.cpp footprint_wizard_frame.cpp Loading Loading @@ -192,7 +193,6 @@ set(PCBNEW_CLASS_SRCS print_board_functions.cpp printout_controler.cpp ratsnest.cpp set_grid.cpp specctra.cpp specctra_export.cpp specctra_import.cpp Loading Loading
CMakeLists.txt +12 −4 Original line number Diff line number Diff line Loading @@ -74,6 +74,13 @@ else() message("Build testing (unstable) version of KiCad") endif() # All CMake downloads go here. Suggested is up in the source tree, not in the build dir where they # would have to be downloaded over and over again. The default is to choose a directory that is # hidden on linux (starts with a '.') because there is a way to exclude this directory when grepping # the source tree. set( DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/.downloads-by-cmake CACHE PATH "Location of KiCad downloads, suggested is a dir common to all builds, i.e. global." ) #================================================ # Set flags for GCC. Loading Loading @@ -149,6 +156,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS_DEBUG "${KICAD_GCC_DEBUG_BUILD_FLAGS} -Wall -g3 -ggdb3 -DDEBUG") endif() # quiet GCC 4.8.1 while in boost if( GCC_VERSION VERSION_GREATER 4.8 OR GCC_VERSION VERSION_EQUAL 4.8 ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs" ) endif() endif(CMAKE_COMPILER_IS_GNUCXX) if(wxUSE_UNICODE) Loading Loading @@ -239,10 +251,6 @@ include(Functions) include( ExternalProject ) # All CMake downloads go here, up in the source tree, not in the build dir where they # would have to be downloaded over and over again. set( DOWNLOAD_DIR ${PROJECT_SOURCE_DIR}/downloads-by-cmake ) #================================================ # Find libraries that are needed to build KiCad. #================================================ Loading
common/page_layout_default_description.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -106,16 +106,18 @@ * */ #include <worksheet.h> // defaultPageLayout // height of the band reference grid 2.0 mm // worksheet frame reference text size 1.3 mm // default text size 1.5 mm // default line width 0.15 mm // frame ref pitch 50 mm extern const wxString defaultPageLayout; // Default page layout (sizes are in mm) const wxString defaultPageLayout( wxT( "( page_layout\n" const char defaultPageLayout[] = "( page_layout\n" "(setup (textsize 1.5 1.5) (linewidth 0.15) (textlinewidth 0.15) )" "(rect (comment rect around the title block) (linewidth 0.15) (start 110 34) (end 2 2) )\n" "(rect (start 0 0 ltcorner) (end 0 0 rbcorner) (repeat 2) (incrx 2) (incry 2) )\n" Loading Loading @@ -146,4 +148,5 @@ const wxString defaultPageLayout( wxT( "( page_layout\n" "(tbtext \"%C3\" (comment Comment 0) (pos 108 32) )\n" "(line (start 90 8.5) end 90 5.5) )\n" "(line (start 26 8.5) end 26 2) )\n" ")\n" ) ); ")\n" ;
common/page_layout_reader.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -36,10 +36,6 @@ #include <vector2d.h> #include <page_layout_reader_lexer.h> // defaultPageLayout is the default page layout description // using the S expr. // see page_layout_default_shape.cpp extern const wxString defaultPageLayout; using namespace TB_READER_T; Loading Loading @@ -448,7 +444,7 @@ double PAGE_LAYOUT_READER_PARSER::parseDouble() void WORKSHEET_LAYOUT::SetDefaultLayout() { PAGE_LAYOUT_READER_PARSER lp_parser( defaultPageLayout, "default page" ); PAGE_LAYOUT_READER_PARSER lp_parser( defaultPageLayout, wxT( "default page" ) ); try { Loading
include/worksheet.h +5 −0 Original line number Diff line number Diff line Loading @@ -47,4 +47,9 @@ void DrawPageLayout( wxDC* aDC, EDA_DRAW_PANEL * aCanvas, int aPenWidth, double aScalar, EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor ); // defaultPageLayout is the default page layout description // using the S expr. // see page_layout_default_shape.cpp extern const char defaultPageLayout[]; #endif // WORKSHEET_H_
pcbnew/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ set(PCBNEW_DIALOGS dialogs/dialog_mask_clearance_base.cpp dialogs/dialog_SVG_print.cpp dialogs/dialog_SVG_print_base.cpp dialogs/dialog_set_grid.cpp dialogs/dialog_set_grid_base.cpp footprint_wizard.cpp footprint_wizard_frame.cpp Loading Loading @@ -192,7 +193,6 @@ set(PCBNEW_CLASS_SRCS print_board_functions.cpp printout_controler.cpp ratsnest.cpp set_grid.cpp specctra.cpp specctra_export.cpp specctra_import.cpp Loading