lajos kamocsay compilation patches
This commit is contained in:
parent
0cdc5c59ab
commit
a201522f6b
|
@ -86,13 +86,13 @@ endif(KICAD_STABLE_VERSION )
|
|||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# 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 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 )
|
||||
#Add -DUSE_PNG_BITMAPS to windres.exe command line
|
||||
|
|
|
@ -150,6 +150,6 @@ if(NOT MSVC)
|
|||
# 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} )
|
||||
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} rt )
|
||||
|
||||
endif( NOT MSVC )
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "transform.hpp"
|
||||
#include "detail/transform_detail.hpp"
|
||||
|
||||
#include "detail/polygon_sort_adaptor.hpp"
|
||||
|
||||
//interval
|
||||
#include "interval_data.hpp"
|
||||
#include "interval_traits.hpp"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
add_definitions(-DPCBNEW)
|
||||
|
||||
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" )
|
||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripting)
|
||||
|
@ -392,6 +392,7 @@ target_link_libraries(pcbnew
|
|||
${OPENGL_LIBRARIES}
|
||||
${GDI_PLUS_LIBRARIES}
|
||||
${PYTHON_LIBRARIES}
|
||||
rt
|
||||
)
|
||||
|
||||
###
|
||||
|
@ -433,12 +434,12 @@ endif(KICAD_SCRIPTING_MODULES)
|
|||
if(NOT MSVC)
|
||||
# This one gets made only when testing.
|
||||
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)
|
||||
|
||||
# This one gets made only when testing.
|
||||
add_executable(layer_widget_test WIN32 EXCLUDE_FROM_ALL
|
||||
layer_widget.cpp
|
||||
)
|
||||
target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES})
|
||||
target_link_libraries(layer_widget_test common ${wxWidgets_LIBRARIES} rt)
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <Python.h>
|
||||
#include <fctsys.h>
|
||||
#include <pcbnew.h>
|
||||
#include <wxPcbStruct.h>
|
||||
#include <pcbcommon.h>
|
||||
#include <dialog_scripting.h>
|
||||
#include <Python.h>
|
||||
|
||||
|
||||
DIALOG_SCRIPTING::DIALOG_SCRIPTING( wxWindow* parent )
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue