Merge branch 'master' of https://github.com/jjcherry56/OpenSTA
This commit is contained in:
commit
e16874dc50
|
|
@ -473,7 +473,10 @@ configure_file(${STA_HOME}/util/StaConfig.hh.cmake
|
||||||
# compatibility with configure
|
# compatibility with configure
|
||||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app)
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app)
|
||||||
|
|
||||||
add_library(OpenSTA
|
add_library(OpenSTA)
|
||||||
|
|
||||||
|
target_sources(OpenSTA
|
||||||
|
PRIVATE
|
||||||
${STA_SOURCE}
|
${STA_SOURCE}
|
||||||
|
|
||||||
${STA_TCL_INIT}
|
${STA_TCL_INIT}
|
||||||
|
|
@ -493,6 +496,23 @@ add_library(OpenSTA
|
||||||
${BISON_VerilogParser_OUTPUTS}
|
${BISON_VerilogParser_OUTPUTS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(OpenSTA
|
||||||
|
${TCL_LIBRARY}
|
||||||
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
|
)
|
||||||
|
|
||||||
|
if (TCL_READLINE_LIBRARY)
|
||||||
|
target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ZLIB_LIBRARIES)
|
||||||
|
target_link_libraries(OpenSTA ${ZLIB_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (CUDD_LIB)
|
||||||
|
target_link_libraries(OpenSTA ${CUDD_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories(OpenSTA
|
target_include_directories(OpenSTA
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include
|
include
|
||||||
|
|
@ -534,22 +554,8 @@ add_executable(sta app/Main.cc)
|
||||||
target_link_libraries(sta
|
target_link_libraries(sta
|
||||||
sta_swig
|
sta_swig
|
||||||
OpenSTA
|
OpenSTA
|
||||||
${TCL_LIBRARY}
|
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (TCL_READLINE_LIBRARY)
|
|
||||||
target_link_libraries(sta ${TCL_READLINE_LIBRARY})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ZLIB_LIBRARIES)
|
|
||||||
target_link_libraries(sta ${ZLIB_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (CUDD_LIB)
|
|
||||||
target_link_libraries(sta ${CUDD_LIB})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
message(STATUS "STA executable: ${STA_HOME}/app/sta")
|
message(STATUS "STA executable: ${STA_HOME}/app/sta")
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
|
||||||
|
|
@ -342,7 +342,7 @@ private:
|
||||||
BusPort::BusPort(const char *name,
|
BusPort::BusPort(const char *name,
|
||||||
int from,
|
int from,
|
||||||
PortDirection *direction) :
|
PortDirection *direction) :
|
||||||
name_(name),
|
name_(stringCopy(name)),
|
||||||
from_(from),
|
from_(from),
|
||||||
to_(from),
|
to_(from),
|
||||||
direction_(direction),
|
direction_(direction),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue