fixed DEBUG build dependency...
This commit is contained in:
parent
9ebe983eaa
commit
cd93e14d7d
|
@ -250,8 +250,10 @@ endif()
|
|||
|
||||
if (KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES)
|
||||
|
||||
set(SWIG_FLAGS -I${CMAKE_CURRENT_SOURCE_DIR}/../.. -I${CMAKE_CURRENT_SOURCE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/../include -I${CMAKE_CURRENT_SOURCE_DIR}/../scripting -DDEBUG)
|
||||
|
||||
set(SWIG_FLAGS -I${CMAKE_CURRENT_SOURCE_DIR}/../.. -I${CMAKE_CURRENT_SOURCE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/../include -I${CMAKE_CURRENT_SOURCE_DIR}/../scripting )
|
||||
if (DEBUG)
|
||||
set(SWIG_FLAGS ${SWIG_FLAGS} -DDEBUG)
|
||||
endif()
|
||||
# collect CFLAGS , and pass them to swig later
|
||||
|
||||
get_directory_property( DirDefs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS )
|
||||
|
|
|
@ -36,8 +36,12 @@
|
|||
%include <std_vector.i>
|
||||
%include <std_string.i>
|
||||
|
||||
%nodefaultctor EDA_ITEM;
|
||||
/* ignore some constructors of EDA_ITEM that will make the build fail */
|
||||
|
||||
%nodefaultctor EDA_ITEM;
|
||||
%ignore EDA_ITEM::EDA_ITEM( EDA_ITEM* parent, KICAD_T idType );
|
||||
%ignore EDA_ITEM::EDA_ITEM( KICAD_T idType );
|
||||
%ignore EDA_ITEM::EDA_ITEM( const EDA_ITEM& base );
|
||||
|
||||
/* swig tries to wrap SetBack/SetNext on derived classes, but this method is
|
||||
private for most childs, so if we don't ignore it it won't compile */
|
||||
|
|
Loading…
Reference in New Issue