Minor fixes to python build
LEFDEF added to compilation some cmake variables adjusted to adjust relative paths for python package flute LUTs files added to python package
This commit is contained in:
parent
60e7ba1d9b
commit
626766e07c
|
@ -22,6 +22,12 @@ project(build_${target})
|
||||||
|
|
||||||
find_package(Python 3 REQUIRED COMPONENTS Interpreter Development.Module)
|
find_package(Python 3 REQUIRED COMPONENTS Interpreter Development.Module)
|
||||||
|
|
||||||
|
set(POETRY TRUE) # this will prevent looking for python site-packages directory
|
||||||
|
# and next vars will not be overwritten
|
||||||
|
set(Python_CORIOLISARCH coriolis) # relative to install dir
|
||||||
|
set(Python_CORIOLISLIB coriolis) # relative to install dir
|
||||||
|
set(PYTHON_SITE_PACKAGES ..) # python packages directory (relative to coriolis python dir)
|
||||||
|
|
||||||
if(NOT Python_LIBRARIES)
|
if(NOT Python_LIBRARIES)
|
||||||
set(Python_LIBRARIES \"-Wl,--unresolved-symbols=ignore-all\")
|
set(Python_LIBRARIES \"-Wl,--unresolved-symbols=ignore-all\")
|
||||||
endif()
|
endif()
|
||||||
|
@ -69,7 +75,7 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${target} ${build_dir})
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
build_coriolis_module(lefdef)
|
||||||
build_coriolis_module(coloquinte)
|
build_coriolis_module(coloquinte)
|
||||||
build_coriolis_module(hurricane)
|
build_coriolis_module(hurricane)
|
||||||
build_coriolis_module(crlcore)
|
build_coriolis_module(crlcore)
|
||||||
|
@ -94,24 +100,24 @@ file(GLOB SHARED_LIB_FILES LIST_DIRECTORIES false "${CORIOLIS_TMP_INSTALL_DIR}/l
|
||||||
|
|
||||||
install(FILES ${SHARED_LIB_FILES} DESTINATION coriolis/libs)
|
install(FILES ${SHARED_LIB_FILES} DESTINATION coriolis/libs)
|
||||||
|
|
||||||
file(GLOB CORIOLIS_PACKAGE_SRCDIR "${CORIOLIS_TMP_INSTALL_DIR}/lib/*/*/coriolis")
|
function(coriolis_install_folder dstdir srcdir)
|
||||||
|
file(GLOB_RECURSE files RELATIVE "${srcdir}" "${srcdir}/*.*")
|
||||||
function(coriolis_install_all)
|
foreach(name ${files})
|
||||||
foreach(srcdir ${ARGN})
|
if(NOT IS_DIRECTORY "${srcdir}/${name}")
|
||||||
file(GLOB_RECURSE CORIOLIS_PACKAGE_FILES RELATIVE "${srcdir}" "${srcdir}/*.*")
|
get_filename_component(subdir ${name} DIRECTORY)
|
||||||
foreach(name ${CORIOLIS_PACKAGE_FILES})
|
install(FILES "${srcdir}/${name}" DESTINATION ${dstdir}/${subdir})
|
||||||
if(NOT IS_DIRECTORY "${srcdir}/${name}")
|
endif()
|
||||||
get_filename_component(dstdir ${name} DIRECTORY)
|
|
||||||
install(FILES "${srcdir}/${name}" DESTINATION coriolis/${dstdir})
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
coriolis_install_folder(coriolis/share/flute ${CORIOLIS_TMP_INSTALL_DIR}/share/flute)
|
||||||
|
coriolis_install_folder(coriolis ${CORIOLIS_TMP_INSTALL_DIR}/coriolis)
|
||||||
|
|
||||||
set(CORIOLIS_EXTRAS_DIR ${CMAKE_BINARY_DIR}/extras)
|
set(CORIOLIS_EXTRAS_DIR ${CMAKE_BINARY_DIR}/extras)
|
||||||
file(MAKE_DIRECTORY ${CORIOLIS_EXTRAS_DIR})
|
file(MAKE_DIRECTORY ${CORIOLIS_EXTRAS_DIR})
|
||||||
|
|
||||||
# Put all extra python things into ${CORIOLIS_EXTRAS_DIR} directory
|
# Put all extra python things into ${CORIOLIS_EXTRAS_DIR} directory
|
||||||
|
|
||||||
coriolis_install_all(${CORIOLIS_PACKAGE_SRCDIR} ${CORIOLIS_EXTRAS_DIR})
|
coriolis_install_folder(coriolis ${CORIOLIS_EXTRAS_DIR})
|
||||||
|
|
||||||
install(FILES "${CORIOLIS_TMP_INSTALL_DIR}/bin/cgt" DESTINATION coriolis RENAME __main__.py)
|
install(FILES "${CORIOLIS_TMP_INSTALL_DIR}/bin/cgt" DESTINATION coriolis RENAME __main__.py)
|
||||||
|
|
|
@ -39,6 +39,8 @@ if(UNIX AND NOT POETRY)
|
||||||
mark_as_advanced(Python_CORIOLISLIB)
|
mark_as_advanced(Python_CORIOLISLIB)
|
||||||
mark_as_advanced(Python_SITELIB)
|
mark_as_advanced(Python_SITELIB)
|
||||||
|
|
||||||
|
set(PYTHON_SITE_PACKAGES "${Python_SITELIB}")
|
||||||
|
|
||||||
if(FindPythonSitePackages_FOUND)
|
if(FindPythonSitePackages_FOUND)
|
||||||
if(NOT FindPythonSitePackages_FIND_QUIETLY)
|
if(NOT FindPythonSitePackages_FIND_QUIETLY)
|
||||||
if(FindPythonSitePackages_FOUND)
|
if(FindPythonSitePackages_FOUND)
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
add_definitions ( -DCORIOLIS_TOP="${CORIOLIS_TOP}"
|
add_definitions ( -DCORIOLIS_TOP="${CORIOLIS_TOP}"
|
||||||
-DSYS_CONF_DIR="${SYS_CONF_DIR}"
|
-DSYS_CONF_DIR="${SYS_CONF_DIR}"
|
||||||
-DPYTHON_SITE_PACKAGES="${Python_SITELIB}"
|
-DPYTHON_SITE_PACKAGES="${PYTHON_SITE_PACKAGES}"
|
||||||
)
|
)
|
||||||
|
|
||||||
set ( includes crlcore/Utilities.h
|
set ( includes crlcore/Utilities.h
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "coriolis"
|
name = "coriolis"
|
||||||
version = "2.4.1"
|
version = "2.4.2"
|
||||||
#dynamic = ["version"]
|
#dynamic = ["version"]
|
||||||
description = "Place and Route for semiconductors"
|
description = "Place and Route for semiconductors"
|
||||||
authors = [
|
authors = [
|
||||||
|
|
Loading…
Reference in New Issue