Correct dependency problems in lefdef.
This commit is contained in:
parent
c76fa034ba
commit
2b302495ef
|
@ -4,6 +4,7 @@
|
||||||
project(LEFDEF)
|
project(LEFDEF)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.9)
|
cmake_minimum_required(VERSION 2.8.9)
|
||||||
|
set(ignoreVariables "${BUILD_DOC} ${CMAKE_INSTALL_DIR}")
|
||||||
|
|
||||||
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
|
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
|
||||||
find_package(Bootstrap REQUIRED)
|
find_package(Bootstrap REQUIRED)
|
||||||
|
|
|
@ -78,12 +78,12 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
set ( DefParserGrammar ${LEFDEF_SOURCE_DIR}/src/def/def/def.y )
|
set ( DefParserGrammar ${LEFDEF_SOURCE_DIR}/src/def/def/def.y )
|
||||||
add_custom_command ( MAIN_DEPENDENCY ${DefParserGrammar}
|
add_custom_command ( OUTPUT def.tab.cpp
|
||||||
COMMAND ${BISON_EXECUTABLE}
|
DEPENDS ${DefParserGrammar}
|
||||||
ARGS -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp
|
COMMAND ${BISON_EXECUTABLE} -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp
|
||||||
COMMAND mv
|
COMMAND mv def.tab.hpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.h
|
||||||
ARGS def.tab.hpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.h
|
#COMMAND mv def.tab.cpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.cpp
|
||||||
OUTPUT def.tab.cpp
|
COMMENT "Generating DEF parser (bison)"
|
||||||
)
|
)
|
||||||
set_source_files_properties ( def.tab.cpp GENERATED )
|
set_source_files_properties ( def.tab.cpp GENERATED )
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library ( defzlib ${cpps} )
|
add_library ( defzlib ${cpps} )
|
||||||
|
target_link_libraries ( defzlib def )
|
||||||
set_target_properties ( defzlib PROPERTIES VERSION 5.8 SOVERSION 5 )
|
set_target_properties ( defzlib PROPERTIES VERSION 5.8 SOVERSION 5 )
|
||||||
|
|
||||||
install ( TARGETS defzlib DESTINATION lib${LIB_SUFFIX} )
|
install ( TARGETS defzlib DESTINATION lib${LIB_SUFFIX} )
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
lefwWriterCalls.hpp
|
lefwWriterCalls.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set ( cpps crypt.cpp
|
set ( cpps lef.tab.cpp
|
||||||
lef.tab.cpp
|
crypt.cpp
|
||||||
lef_keywords.cpp
|
lef_keywords.cpp
|
||||||
lefiArray.cpp
|
lefiArray.cpp
|
||||||
lefiCrossTalk.cpp
|
lefiCrossTalk.cpp
|
||||||
|
@ -55,17 +55,17 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
set ( LefParserGrammar ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.y )
|
set ( LefParserGrammar ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.y )
|
||||||
add_custom_command ( MAIN_DEPENDENCY ${LefParserGrammar}
|
|
||||||
COMMAND ${BISON_EXECUTABLE}
|
|
||||||
ARGS -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp
|
|
||||||
COMMAND mv
|
|
||||||
ARGS lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h
|
|
||||||
OUTPUT lef.tab.cpp
|
|
||||||
)
|
|
||||||
set_source_files_properties ( lef.tab.cpp GENERATED )
|
|
||||||
|
|
||||||
add_library ( lef ${cpps} )
|
add_library ( lef ${cpps} )
|
||||||
set_target_properties ( lef PROPERTIES VERSION 5.8 SOVERSION 5 )
|
set_target_properties ( lef PROPERTIES VERSION 5.8 SOVERSION 5 )
|
||||||
|
add_custom_command ( OUTPUT lef.tab.cpp
|
||||||
|
DEPENDS ${LefParserGrammar}
|
||||||
|
COMMAND ${BISON_EXECUTABLE} -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp
|
||||||
|
COMMAND mv lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h
|
||||||
|
#COMMAND mv lef.tab.cpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.cpp
|
||||||
|
COMMENT "Generating LEF parser (bison)"
|
||||||
|
)
|
||||||
|
set_source_files_properties ( lef.tab.cpp GENERATED )
|
||||||
|
|
||||||
install ( TARGETS lef DESTINATION lib${LIB_SUFFIX} )
|
install ( TARGETS lef DESTINATION lib${LIB_SUFFIX} )
|
||||||
install ( FILES ${includes} DESTINATION include/lefdef )
|
install ( FILES ${includes} DESTINATION include/lefdef )
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library ( lefzlib ${cpps} )
|
add_library ( lefzlib ${cpps} )
|
||||||
|
target_link_libraries ( lefzlib lef )
|
||||||
set_target_properties ( lefzlib PROPERTIES VERSION 5.8 SOVERSION 5 )
|
set_target_properties ( lefzlib PROPERTIES VERSION 5.8 SOVERSION 5 )
|
||||||
|
|
||||||
install ( TARGETS lefzlib DESTINATION lib${LIB_SUFFIX} )
|
install ( TARGETS lefzlib DESTINATION lib${LIB_SUFFIX} )
|
||||||
|
|
Loading…
Reference in New Issue