Browse Source

lajos kamocsay compilation patches

pull/1/head
Miguel Angel Ajo 14 years ago
parent
commit
a201522f6b
  1. 8
      CMakeLists.txt
  2. 2
      common/CMakeLists.txt
  3. 2
      include/boost/polygon/polygon.hpp
  4. 7
      pcbnew/CMakeLists.txt
  5. 2
      pcbnew/dialogs/dialog_scripting.cpp
  6. 2
      scripting/fixswigimports.py

8
CMakeLists.txt

@ -86,13 +86,13 @@ endif(KICAD_STABLE_VERSION )
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
# Set default flags for Release build. # Set default flags for Release build.
set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG ")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2 -DNDEBUG -fPIC")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s")
# Set default flags for Debug build. # Set default flags for Debug build.
set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG")
set(CMAKE_C_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb3 -DDEBUG -fPIC")
if( USE_PNG_BITMAPS ) if( USE_PNG_BITMAPS )
#Add -DUSE_PNG_BITMAPS to windres.exe command line #Add -DUSE_PNG_BITMAPS to windres.exe command line

2
common/CMakeLists.txt

@ -150,6 +150,6 @@ if(NOT MSVC)
# This one gets made only when testing. # This one gets made only when testing.
# to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp # to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp
add_executable( dsntest EXCLUDE_FROM_ALL dsnlexer.cpp ) add_executable( dsntest EXCLUDE_FROM_ALL dsnlexer.cpp )
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} )
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} rt )
endif( NOT MSVC ) endif( NOT MSVC )

2
include/boost/polygon/polygon.hpp

@ -24,6 +24,8 @@
#include "transform.hpp" #include "transform.hpp"
#include "detail/transform_detail.hpp" #include "detail/transform_detail.hpp"
#include "detail/polygon_sort_adaptor.hpp"
//interval //interval
#include "interval_data.hpp" #include "interval_data.hpp"
#include "interval_traits.hpp" #include "interval_traits.hpp"

7
pcbnew/CMakeLists.txt

@ -1,7 +1,7 @@
add_definitions(-DPCBNEW) add_definitions(-DPCBNEW)
if (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES) if (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES)
EXECUTE_PROCESS(COMMAND python -c "import sys;print\"%s.%s\"%sys.version_info[0:2]" OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
EXECUTE_PROCESS(COMMAND python2 -c "import sys;print\"%s.%s\"%sys.version_info[0:2]" OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
SET(PYTHON_DEST "lib/python${PYTHON_VERSION}/dist-packages" ) SET(PYTHON_DEST "lib/python${PYTHON_VERSION}/dist-packages" )
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripting) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripting)
@ -392,6 +392,7 @@ target_link_libraries(pcbnew
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
${GDI_PLUS_LIBRARIES} ${GDI_PLUS_LIBRARIES}
${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES}
rt
) )
### ###
@ -433,12 +434,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})
target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES} rt)
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})
target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES} rt)

2
pcbnew/dialogs/dialog_scripting.cpp

@ -3,12 +3,12 @@
*/ */
#include <Python.h>
#include <fctsys.h> #include <fctsys.h>
#include <pcbnew.h> #include <pcbnew.h>
#include <wxPcbStruct.h> #include <wxPcbStruct.h>
#include <pcbcommon.h> #include <pcbcommon.h>
#include <dialog_scripting.h> #include <dialog_scripting.h>
#include <Python.h>
DIALOG_SCRIPTING::DIALOG_SCRIPTING( wxWindow* parent ) DIALOG_SCRIPTING::DIALOG_SCRIPTING( wxWindow* parent )

2
scripting/fixswigimports.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# the purpose of this script is rewriting the swig_import_helper # the purpose of this script is rewriting the swig_import_helper
# call so it will not load _xxxxx.so/dso from inside a kicad executable # call so it will not load _xxxxx.so/dso from inside a kicad executable

Loading…
Cancel
Save