Skip to content

Commit

Permalink
i#975 static DR: Add control over installing static DR libs
Browse files Browse the repository at this point in the history
The static DR libs are quite large and an enclosing project (such as
Dr. Memory) may not want to include them.  We add a new variable
DO_DR_INSTALL_STATIC_DR here to control this behavior.

Issue: #975
  • Loading branch information
derekbruening committed Mar 11, 2019
1 parent 5996d64 commit 787ac4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,14 @@ DR_export_target(dynamorio)

# XXX i#1997: not fully supported on Mac yet
if (NOT APPLE)
install_exported_target(dynamorio_static ${INSTALL_LIB})
DR_export_target(dynamorio_static)
# Static DR libs are large so we provide a separate var to control their installation.
if (NOT DEFINED DO_DR_INSTALL_STATIC_DR)
set(DO_DR_INSTALL_STATIC_DR ON)
endif ()
if (DO_DR_INSTALL_STATIC_DR)
install_exported_target(dynamorio_static ${INSTALL_LIB})
DR_export_target(dynamorio_static)
endif ()
endif ()

install_exported_target(drinjectlib ${INSTALL_LIB_BASE})
Expand Down

0 comments on commit 787ac4e

Please sign in to comment.