2013-03-01 07:11:46 +08:00
set ( LLVM_NO_RTTI 1 )
add_custom_command (
O U T P U T $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / L L D B W r a p P y t h o n . c p p
D E P E N D S $ { L L D B _ S O U R C E _ D I R } / s c r i p t s / l l d b . s w i g
# swig was directly invoked on Windows (where the Python API is not being generated) but on other platforms, we need to run the *swig-wrapper-classes.sh shell-scripts.
#COMMAND swig -c++ -shadow -python -I${LLDB_SOURCE_DIR}/include -I./. -outdir ${LLDB_SOURCE_DIR}/scripts/Python -o ${LLDB_SOURCE_DIR}/source/LLDBWrapPython.cpp ${LLDB_SOURCE_DIR}/scripts/lldb.swig
2013-03-07 08:52:25 +08:00
C O M M A N D S R C R O O T = $ { L L D B _ S O U R C E _ D I R } $ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / b u i l d - s w i g - w r a p p e r - c l a s s e s . s h $ { L L D B _ S O U R C E _ D I R } $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } $ { C M A K E _ B I N A R Y _ D I R } - m
C O M M A N D S R C R O O T = $ { L L D B _ S O U R C E _ D I R } $ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / f i n i s h - s w i g - w r a p p e r - c l a s s e s . s h $ { L L D B _ S O U R C E _ D I R } $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } $ { C M A K E _ B I N A R Y _ D I R } - m
2013-03-01 07:11:46 +08:00
C O M M E N T " B u i l d i n g l l d b p y t h o n w r a p p e r " )
set_source_files_properties ( ${ CMAKE_CURRENT_BINARY_DIR } /LLDBWrapPython.cpp PROPERTIES GENERATED 1 )
2013-03-07 08:52:25 +08:00
ADD_CUSTOM_TARGET ( swig_wrapper ALL echo -n
2013-03-01 07:11:46 +08:00
D E P E N D S $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / L L D B W r a p P y t h o n . c p p
)