tags include .i files

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2023-12-31 14:07:11 -07:00
parent 7e329b10de
commit 6ee4340de8
1 changed files with 12 additions and 10 deletions

View File

@ -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
@ -337,22 +336,24 @@ set_property(SOURCE ${STA_SWIG_FILE}
${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
LANGUAGE tcl LANGUAGE tcl
TYPE STATIC TYPE STATIC
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}