Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dyninst/dyninst
Browse files Browse the repository at this point in the history
  • Loading branch information
ssunny7 committed Jun 27, 2016
2 parents ae5df2f + 36f5a72 commit 4e4f312
Show file tree
Hide file tree
Showing 95 changed files with 4,219 additions and 19,238 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -68,9 +68,13 @@ callgrind.out.*
cscope.*
luftags
tags
*.VC.db
*.VC.opendb
*.sdf
*.opensdf
*.suo
*.sln
*.vcxproj
*.vcxproj.user
ipch/*
*.swp
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -16,13 +16,15 @@ addons:
# - clang-3.7
- cmake
- libelf-dev
- g++-4.9

compiler:
- gcc
# - clang

script:
- if [ "$CC" == "clang" ]; then export CC=clang-3.7; export CXX=clang++-3.7; fi
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; export CXX=g++-4.9; fi
- mkdir work
- cd work
- cmake ..
Expand Down
259 changes: 0 additions & 259 deletions ALL_BUILD.vcxproj

This file was deleted.

27 changes: 16 additions & 11 deletions CMakeLists.txt
Expand Up @@ -63,6 +63,7 @@ if(NOT ${PLATFORM} MATCHES nt)
add_subdirectory (elf)
add_subdirectory (dwarf)
add_subdirectory (symlite)
add_subdirectory (parseThat)
# DynC is not compatible with Windows when
# we use bison on linux to generate source
# TODO: generate with bison configured for
Expand All @@ -80,7 +81,6 @@ add_subdirectory (patchAPI)
if(${SYMREADER} MATCHES symtabAPI)
add_subdirectory (dyninstAPI)
endif()
add_subdirectory (parseThat)

# Build the RT library as a seperate project so we can change compilers
message(STATUS "Configuring DyninstAPI_RT")
Expand Down Expand Up @@ -120,19 +120,22 @@ if(BUILD_RTLIB)
-G ${CMAKE_GENERATOR}
${RT_SOURCE_DIR})

add_custom_target(DyninstRT
ALL
# COMMAND ${CMAKE_COMMAND} -E chdir ${RT_BINARY_DIR} ${ACTUAL_BUILD}
$(MAKE)
WORKING_DIRECTORY ${RT_BINARY_DIR}
COMMENT "Building DyninstRT")
if(MSVC)
include_external_msproject(DyninstAPI_RT dyninstAPI_RT/dyninstAPI_RT.vcxproj)
else()
add_custom_target(DyninstRT
ALL
$(MAKE)
WORKING_DIRECTORY ${RT_BINARY_DIR}
COMMENT "Building DyninstRT")
add_dependencies(dyninstAPI DyninstRT)
if(TARGET dyninstAPI-static)
add_dependencies(dyninstAPI-static DyninstRT)
endif()
endif()

install(SCRIPT "${RT_BINARY_DIR}/cmake_install.cmake")

add_dependencies(dyninstAPI DyninstRT)
if(TARGET dyninstAPI-static)
add_dependencies(dyninstAPI-static DyninstRT)
endif()
else()
message(STATUS "Skipping DyninstAPI_RT. Be sure to build this library if you're using instrumentation.")
endif()
Expand Down Expand Up @@ -162,6 +165,7 @@ if(BUILD_DOCS)
DEPENDS ${CMAKE_SOURCE_DIR}/dyninstAPI/doc/dyninstAPI.pdf)
foreach(COMPONENT ${WORD_DOCS})
add_dependencies(doc ${COMPONENT}-doc)
set_target_properties(${COMPONENT}-doc PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
install(FILES ${CMAKE_SOURCE_DIR}/${COMPONENT}/doc/${COMPONENT}.pdf
DESTINATION ${INSTALL_DOC_DIR}
RENAME ${COMPONENT}-${VERSION_STRING}.pdf
Expand Down Expand Up @@ -204,6 +208,7 @@ if(BUILD_DOCS)
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${COMPONENT}/doc/${COMPONENT}.log
)
add_dependencies(doc ${COMPONENT}-doc)
set_target_properties(${COMPONENT}-doc PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
#add_dependencies(${COMPONENT} ${COMPONENT}-doc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${COMPONENT}/doc/${COMPONENT}.pdf
DESTINATION ${INSTALL_DOC_DIR}
Expand Down
311 changes: 0 additions & 311 deletions Dyninst.sln

This file was deleted.

74 changes: 0 additions & 74 deletions DyninstAPI.sln

This file was deleted.

0 comments on commit 4e4f312

Please sign in to comment.