tags include .i files
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
7e329b10de
commit
6ee4340de8
|
|
@ -325,8 +325,7 @@ set_property(SOURCE ${STA_SWIG_FILE}
|
||||||
-I${STA_HOME}/verilog
|
-I${STA_HOME}/verilog
|
||||||
)
|
)
|
||||||
|
|
||||||
set_property(SOURCE ${STA_SWIG_FILE}
|
set(SWIG_FILES
|
||||||
PROPERTY DEPENDS
|
|
||||||
${STA_HOME}/dcalc/DelayCalc.i
|
${STA_HOME}/dcalc/DelayCalc.i
|
||||||
${STA_HOME}/parasitics/Parasitics.i
|
${STA_HOME}/parasitics/Parasitics.i
|
||||||
${STA_HOME}/power/Power.i
|
${STA_HOME}/power/Power.i
|
||||||
|
|
@ -335,6 +334,10 @@ set_property(SOURCE ${STA_SWIG_FILE}
|
||||||
${STA_HOME}/tcl/StaTcl.i
|
${STA_HOME}/tcl/StaTcl.i
|
||||||
${STA_HOME}/tcl/NetworkEdit.i
|
${STA_HOME}/tcl/NetworkEdit.i
|
||||||
${STA_HOME}/verilog/Verilog.i
|
${STA_HOME}/verilog/Verilog.i
|
||||||
|
)
|
||||||
|
|
||||||
|
set_property(SOURCE ${STA_SWIG_FILE}
|
||||||
|
PROPERTY DEPENDS ${SWIG_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
swig_add_library(sta_swig
|
swig_add_library(sta_swig
|
||||||
|
|
@ -343,16 +346,14 @@ swig_add_library(sta_swig
|
||||||
SOURCES ${STA_SWIG_FILE}
|
SOURCES ${STA_SWIG_FILE}
|
||||||
)
|
)
|
||||||
|
|
||||||
get_target_property(SWIG_FILES sta_swig SOURCES)
|
get_target_property(STA_SWIG_CXX_FILE sta_swig SOURCES)
|
||||||
|
|
||||||
foreach(SWIG_FILE ${SWIG_FILES})
|
set_source_files_properties(${STA_SWIG_CXX_FILE}
|
||||||
set_source_files_properties(${SWIG_FILE}
|
PROPERTIES
|
||||||
PROPERTIES
|
# No simple way to modify the swig template that emits code full of warnings
|
||||||
# No simple way to modify the swig template that emits code full of warnings
|
# so suppress them.
|
||||||
# so suppress them.
|
COMPILE_OPTIONS "-Wno-cast-qual;-Wno-missing-braces;-Wno-deprecated-declarations"
|
||||||
COMPILE_OPTIONS "-Wno-cast-qual;-Wno-missing-braces;-Wno-deprecated-declarations"
|
|
||||||
)
|
)
|
||||||
endforeach()
|
|
||||||
|
|
||||||
target_link_libraries(sta_swig
|
target_link_libraries(sta_swig
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
|
@ -578,6 +579,7 @@ add_custom_target(sta_tags etags -o TAGS
|
||||||
${STA_SOURCE}
|
${STA_SOURCE}
|
||||||
*/*.hh
|
*/*.hh
|
||||||
include/sta/*.hh
|
include/sta/*.hh
|
||||||
|
${SWIG_FILES}
|
||||||
${STA_TCL_FILES}
|
${STA_TCL_FILES}
|
||||||
${SWIG_TCL_FILES}
|
${SWIG_TCL_FILES}
|
||||||
WORKING_DIRECTORY ${STA_HOME}
|
WORKING_DIRECTORY ${STA_HOME}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue