Skip to content

Commit

Permalink
build swig outputs in /build
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Nov 12, 2019
1 parent de50cc5 commit c59b2db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Makefile
/util/StaConfig.hh

# /app/
/app/StaApp_wrap.cc
/app/TclInitVar.cc
/app/sta
/app/sta.exe
Expand Down
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}")
#
################################################################

set(STA_WRAP ${CMAKE_CURRENT_BINARY_DIR}/StaApp_wrap.cc)

set(STA_SOURCE
app/StaMain.cc
app/TclInitVar.cc
app/StaApp_wrap.cc
${STA_WRAP}

dcalc/ArcDelayCalc.cc
dcalc/ArnoldiDelayCalc.cc
Expand Down Expand Up @@ -634,9 +636,9 @@ add_flex_bison_dependency(SdfLex SdfParser)

include(FindSWIG)

add_custom_command(OUTPUT ${STA_HOME}/app/StaApp_wrap.cc
COMMAND ${SWIG_EXECUTABLE} -tcl8 -c++ -namespace -prefix sta -I${STA_HOME}/tcl -I${STA_HOME}/sdf -I${STA_HOME}/dcalc -I${STA_HOME}/parasitics -I${STA_HOME}/verilog -o ${STA_HOME}/app/StaApp_wrap.cc ${STA_HOME}/app/StaApp.i
COMMAND ${STA_HOME}/etc/SwigCleanup.tcl ${STA_HOME}/app/StaApp_wrap.cc
add_custom_command(OUTPUT ${STA_WRAP}
COMMAND ${SWIG_EXECUTABLE} -tcl8 -c++ -namespace -prefix sta -I${STA_HOME}/tcl -I${STA_HOME}/sdf -I${STA_HOME}/dcalc -I${STA_HOME}/parasitics -I${STA_HOME}/verilog -o ${STA_WRAP} ${STA_HOME}/app/StaApp.i
COMMAND ${STA_HOME}/etc/SwigCleanup.tcl ${STA_WRAP}
WORKING_DIRECTORY ${STA_HOME}
DEPENDS ${STA_SWIG_FILES}
)
Expand Down

0 comments on commit c59b2db

Please sign in to comment.