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
108 lines
2.3 KiB
CMake
108 lines
2.3 KiB
CMake
include_guard(GLOBAL)
|
|
|
|
include(DyninstLibrary)
|
|
|
|
set(_public_headers
|
|
h/AddrLookup.h
|
|
h/Aggregate.h
|
|
h/Archive.h
|
|
h/Collections.h
|
|
h/ExceptionBlock.h
|
|
h/Function.h
|
|
h/LineInformation.h
|
|
h/Module.h
|
|
h/RangeLookup.h
|
|
h/Region.h
|
|
h/relocationEntry.h
|
|
h/Statement.h
|
|
h/StringTable.h
|
|
h/Symbol.h
|
|
h/Symtab.h
|
|
h/SymtabReader.h
|
|
h/symutil.h
|
|
h/Type.h
|
|
h/Variable.h)
|
|
|
|
set(_private_headers
|
|
src/annotations.h
|
|
src/debug.h
|
|
src/dwarfWalker.h
|
|
src/emitElf.h
|
|
src/emitElfStatic.h
|
|
src/emitWin.h
|
|
src/LinkMap.h
|
|
src/Object-elf.h
|
|
src/Object.h
|
|
src/Object-nt.h
|
|
src/Type-mem.h
|
|
src/indexed_symbols.hpp
|
|
src/symtab_impl.hpp
|
|
src/indexed_modules.h)
|
|
|
|
set(_sources
|
|
src/AddrLookup.C
|
|
src/Aggregate.C
|
|
src/annotations.C
|
|
src/Collections.C
|
|
src/debug.C
|
|
src/ExceptionBlock.C
|
|
src/Function.C
|
|
src/LineInformation.C
|
|
src/Module.C
|
|
src/Object.C
|
|
src/Region.C
|
|
src/relocationEntry.C
|
|
src/Statement.C
|
|
src/Symbol.C
|
|
src/Symtab-edit.C
|
|
src/Symtab-lookup.C
|
|
src/Symtab.C
|
|
src/SymtabReader.C
|
|
src/Type.C
|
|
src/Variable.C)
|
|
|
|
if(DYNINST_OS_UNIX)
|
|
list(
|
|
APPEND
|
|
_sources
|
|
src/Object-elf.C
|
|
src/Archive.C
|
|
src/Archive-elf.C
|
|
src/parseDwarf.C
|
|
src/LinkMap.C
|
|
src/emitElf.C
|
|
src/emitElfStatic.C
|
|
src/dwarfWalker.C)
|
|
|
|
if(DYNINST_ARCH_x86_64 OR DYNINST_ARCH_i386)
|
|
list(APPEND _sources src/emitElfStatic-x86.C src/relocationEntry-elf-x86.C)
|
|
elseif(DYNINST_ARCH_ppc64le)
|
|
list(APPEND _sources src/emitElfStatic-ppc64.C src/relocationEntry-elf-ppc64.C)
|
|
elseif(DYNINST_ARCH_aarch64)
|
|
list(APPEND _sources src/emitElfStatic-aarch64.C src/relocationEntry-elf-aarch64.C)
|
|
else()
|
|
list(APPEND _sources src/emitElfStatic-stub.C src/relocationEntry-stub.C)
|
|
endif()
|
|
elseif(DYNINST_OS_Windows)
|
|
list(APPEND _sources src/Object-nt.C src/emitWin.C src/relocationEntry-stub.C)
|
|
endif()
|
|
|
|
# cmake-format: off
|
|
dyninst_library(
|
|
symtabAPI
|
|
PUBLIC_HEADER_FILES ${_public_headers}
|
|
PRIVATE_HEADER_FILES ${_private_headers}
|
|
SOURCE_FILES ${_sources}
|
|
DEFINES SYMTAB_LIB
|
|
DYNINST_DEPS common dynElf dynDwarf
|
|
PRIVATE_DEPS OpenMP::OpenMP_CXX
|
|
PUBLIC_DEPS Dyninst::ElfUtils
|
|
)
|
|
# cmake-format: on
|
|
|
|
if(DYNINST_OS_Windows)
|
|
foreach(t ${symtabAPI_TARGETS})
|
|
target_link_libraries(${t} PRIVATE dbghelp)
|
|
endforeach()
|
|
endif()
|