make TclInitVar.cc in /build

This commit is contained in:
James Cherry 2019-11-14 22:12:17 -07:00
parent c59b2db038
commit a0107557d1
2 changed files with 5 additions and 5 deletions

1
.gitignore vendored
View File

@ -22,7 +22,6 @@ Makefile
/util/StaConfig.hh
# /app/
/app/TclInitVar.cc
/app/sta
/app/sta.exe
/app/sta.dSYM

View File

@ -61,10 +61,11 @@ message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}")
################################################################
set(STA_WRAP ${CMAKE_CURRENT_BINARY_DIR}/StaApp_wrap.cc)
set(STA_TCL_INIT ${CMAKE_CURRENT_BINARY_DIR}/StaTclInitVar.cc)
set(STA_SOURCE
app/StaMain.cc
app/TclInitVar.cc
${STA_TCL_INIT}
${STA_WRAP}
dcalc/ArcDelayCalc.cc
@ -645,11 +646,11 @@ add_custom_command(OUTPUT ${STA_WRAP}
################################################################
# TCL files included as part of the executable are shoved into TclInitVar.cc.
# TCL files included as part of the executable are shoved into StaTclInitVar.cc.
# These files are encoded and shipped as part of the executable
# so that they do not have to be installed on the client host.
add_custom_command(OUTPUT ${STA_HOME}/app/TclInitVar.cc
COMMAND etc/TclEncode.tcl app/TclInitVar.cc tcl_inits ${STA_TCL_FILES}
add_custom_command(OUTPUT ${STA_TCL_INIT}
COMMAND etc/TclEncode.tcl ${STA_TCL_INIT} tcl_inits ${STA_TCL_FILES}
WORKING_DIRECTORY ${STA_HOME}
DEPENDS ${STA_TCL_FILES} etc/TclEncode.tcl
)