9d94e11e2b
Update Dyninst submodule
Refactoring of build scripts to build TBB, Boost, ElfUtils, and LibIberty, since Dyninst build scripts no longer do.
Workflows are now building Dyninst and its dependencies.
---------
Co-authored-by: marantic-amd <marantic@amd.com>
Co-authored-by: David Galiffi <David.Galiffi@amd.com>
[ROCm/rocprofiler-systems commit: 96df9b6d3e]
44 lines
1.5 KiB
CMake
44 lines
1.5 KiB
CMake
# ########################################################################################
|
|
# ThreadingBuildingBlocks.cmake
|
|
#
|
|
# Install Intel's Threading Building Blocks for Dyninst
|
|
#
|
|
# The default TBB build does not have an 'install' target, so we have to do it manually.
|
|
# This file contains the necessary CMake commands to complete the installation assuming it
|
|
# has been built using ExternalProject_Add.
|
|
#
|
|
# ########################################################################################
|
|
|
|
cmake_minimum_required(VERSION 3.13.0)
|
|
|
|
if(NOT CMAKE_STRIP)
|
|
find_program(CMAKE_STRIP NAMES strip)
|
|
endif()
|
|
|
|
file(MAKE_DIRECTORY ${LIBDIR} ${INCDIR})
|
|
file(
|
|
COPY ${PREFIX}/src/tbb_release/
|
|
DESTINATION ${LIBDIR}
|
|
FILES_MATCHING
|
|
PATTERN "*.so.*")
|
|
file(COPY ${PREFIX}/src/rocprofiler-systems-tbb-build/include/tbb DESTINATION ${INCDIR})
|
|
file(GLOB _tbb_libs ${LIBDIR}/libtbb*.so.*)
|
|
|
|
foreach(_lib ${_tbb_libs})
|
|
string(REGEX REPLACE "\\.2$" "" _lib_short ${_lib})
|
|
get_filename_component(_lib "${_lib}" NAME)
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${_lib} ${_lib_short}
|
|
WORKING_DIRECTORY ${LIBDIR})
|
|
endforeach()
|
|
|
|
foreach(_lib ${_tbb_libs})
|
|
get_filename_component(_lib_realpath "${_lib}" REALPATH)
|
|
if(NOT "${_lib_realpath}" IN_LIST _tbb_libs_realpath)
|
|
list(APPEND _tbb_libs_realpath ${_lib_realpath})
|
|
endif()
|
|
endforeach()
|
|
|
|
foreach(_lib ${_tbb_libs_realpath})
|
|
execute_process(COMMAND ${CMAKE_STRIP} ${_lib})
|
|
endforeach()
|