Files
TheRock/rocm-systems/projects/rocprofiler-systems/external/dyninst/stackwalk/CMakeLists.txt
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

97 lines
2.4 KiB
CMake

include_guard(GLOBAL)
include(DyninstLibrary)
set(_public_headers
h/basetypes.h
h/frame.h
h/framestepper.h
h/local_var.h
h/procstate.h
h/steppergroup.h
h/swk_errors.h
h/symlookup.h
h/walker.h)
set(_private_headers
src/addrRange.h
src/aarch64-swk.h
src/analysis_stepper.h
src/dbgstepper-impl.h
src/framestepper_pimple.h
src/freebsd-swk.h
src/get_trap_instruction.h
src/libstate.h
src/linuxbsd-swk.h
src/linux-swk.h
src/sw.h
src/symtab-swk.h
src/x86-swk.h)
set(_sources
src/frame.C
src/framestepper.C
src/swk_errors.C
src/symlookup.C
src/walker.C
src/procstate.C
src/steppergroup.C
src/libstate.C
src/sw_pcontrol.C
src/symtab-swk.C)
if(DYNINST_ARCH_i386 OR DYNINST_ARCH_x86_64)
list(APPEND _sources src/x86-swk.C src/x86-wanderer.C)
endif()
if(DYNINST_OS_FreeBSD)
list(APPEND _sources src/freebsd-swk.C)
elseif(DYNINST_OS_Windows)
list(APPEND _sources src/win-x86-swk.C)
endif()
if(DYNINST_OS_UNIX)
list(APPEND _sources src/linuxbsd-swk.C src/linux-swk.C)
if(DYNINST_ARCH_ppc64le)
list(APPEND _sources src/linux-ppc-swk.C src/ppc-swk.C)
elseif(DYNINST_ARCH_aarch64)
list(APPEND _sources src/linux-aarch64-swk.C src/aarch64-swk.C src/dbginfo-stepper.C)
elseif(DYNINST_ARCH_i386 OR DYNINST_ARCH_x86_64)
list(APPEND _sources src/linux-x86-swk.C src/linuxbsd-x86-swk.C src/dbginfo-stepper.C)
if(DYNINST_OS_FreeBSD)
list(APPEND _sources src/freebsd-x86-swk.C)
endif()
endif()
endif()
# cmake-format: off
dyninst_library(
stackwalk
PUBLIC_HEADER_FILES ${_public_headers}
PRIVATE_HEADER_FILES ${_private_headers}
SOURCE_FILES ${_sources}
DEFINES STACKWALKER_EXPORTS
DYNINST_DEPS common dynDwarf dynElf instructionAPI pcontrol ${SYMREADER}
PUBLIC_DEPS
PRIVATE_DEPS Dyninst::ElfUtils
)
# cmake-format: on
foreach(t ${stackwalk_TARGETS})
# Force frame pointers in stackwalker, no matter the optimization level
# See commit 2608333f7
target_compile_options(${t} PRIVATE ${DYNINST_FORCE_FRAME_POINTER})
if(SW_ANALYSIS_STEPPER)
target_compile_definitions(${t} PRIVATE USE_PARSE_API)
if(${t} MATCHES "static")
target_link_libraries(${t} PUBLIC parseAPI_static)
else()
target_link_libraries(${t} PUBLIC parseAPI)
endif()
target_sources(${t} PRIVATE src/analysis_stepper.C src/callchecker-IAPI.C)
else()
target_sources(${t} PRIVATE src/callchecker.C)
endif()
endforeach()