4
4
# **********************************************************
5
5
6
6
# Dr. Memory: the memory debugger
7
- #
7
+ #
8
8
# This library is free software; you can redistribute it and/or
9
9
# modify it under the terms of the GNU Lesser General Public
10
- # License as published by the Free Software Foundation;
10
+ # License as published by the Free Software Foundation;
11
11
# version 2.1 of the License, and no later version.
12
- #
12
+ #
13
13
# This library is distributed in the hope that it will be useful,
14
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
16
# Library General Public License for more details.
17
- #
17
+ #
18
18
# You should have received a copy of the GNU Lesser General Public
19
19
# License along with this library; if not, write to the Free Software
20
20
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -110,7 +110,7 @@ if (TOOL_DR_HEAPSTAT)
110
110
message (FATAL_ERROR "Can't find Java interpreter: please set JAVA var" )
111
111
endif (JAVA_RUNTIME)
112
112
endif (NOT DEFINED JAVA)
113
-
113
+
114
114
# There is no standard install path so the user must tell us where they
115
115
# installed the Flex SDK, either via env var FLEXROOT or FLEX_SDK CMake var.
116
116
set (FLEX_SDK "$ENV{FLEXROOT} " CACHE PATH "Path to Flex SDK." )
@@ -571,7 +571,7 @@ add_custom_command(
571
571
OUTPUT "${options_for_perl} "
572
572
DEPENDS "${PROJECT_SOURCE_DIR} /common/options-perl.c"
573
573
"${PROJECT_SOURCE_DIR} /${tooldir} /optionsx.h"
574
- COMMAND ${CMAKE_CPP}
574
+ COMMAND ${CMAKE_CPP}
575
575
ARGS -E ${CPP_NO_LINENUM} "${PROJECT_SOURCE_DIR} /common/options-perl.c"
576
576
-I${PROJECT_SOURCE_DIR} /${tooldir} ${DEFINES} > "${options_for_perl} "
577
577
VERBATIM )
@@ -1087,7 +1087,7 @@ endif (NOT cur_flags)
1087
1087
set_property (SOURCE common/alloc_unopt.c
1088
1088
PROPERTY COMPILE_FLAGS "${cur_flags} ${DISABLE_OPTS} " )
1089
1089
1090
- # Though the swf file isn't an executable it is in ${BIN_ARCH} because it isn't
1090
+ # Though the swf file isn't an executable it is in ${BIN_ARCH} because it isn't
1091
1091
# exposed to the users; it isn't in lib because, well, it isn't a lib.
1092
1092
if (TOOL_DR_HEAPSTAT AND BUILD_VISUALIZER)
1093
1093
add_custom_target (vistool ALL DEPENDS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /${toolname} .swf" )
@@ -1235,7 +1235,7 @@ else (WIN32)
1235
1235
else (USER_SPECIFIED_DynamoRIO_DIR)
1236
1236
set (drconfig_copy "${PROJECT_BINARY_DIR} /${BUILD_BIN} /drconfig" )
1237
1237
add_custom_target (drconfig_copy_tgt ALL DEPENDS "${drconfig_copy} " )
1238
- add_custom_command (OUTPUT "${drconfig_copy} "
1238
+ add_custom_command (OUTPUT "${drconfig_copy} "
1239
1239
DEPENDS drconfig
1240
1240
COMMAND ${CMAKE_COMMAND}
1241
1241
ARGS -E copy "${DynamoRIO_DIR} /../${BIN_ARCH} /drconfig"
@@ -1387,7 +1387,7 @@ if (install_override)
1387
1387
else (X64)
1388
1388
set (EXP_DIR exports32)
1389
1389
endif (X64)
1390
- set (CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR} /../${EXP_DIR} "
1390
+ set (CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR} /../${EXP_DIR} "
1391
1391
CACHE PATH "install path" FORCE)
1392
1392
endif (install_override)
1393
1393
@@ -1493,7 +1493,7 @@ install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/
1493
1493
)
1494
1494
install (DIRECTORY ${PROJECT_BINARY_DIR} /${BUILD_BIN} /
1495
1495
DESTINATION "${INSTALL_BIN} "
1496
- FILE_PERMISSIONS OWNER_READ OWNER_EXECUTE
1496
+ FILE_PERMISSIONS OWNER_READ OWNER_EXECUTE
1497
1497
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
1498
1498
FILES_MATCHING
1499
1499
PATTERN "*.debug"
@@ -1675,11 +1675,11 @@ set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
1675
1675
set (CPACK_SOURCE_IGNORE_FILES "~$" "/.svn" "/.git" )
1676
1676
1677
1677
set (CPACK_PACKAGE_VERSION "${TOOL_VERSION_NUMBER} " )
1678
- string (REGEX REPLACE
1678
+ string (REGEX REPLACE
1679
1679
"^([0-9]+)\\ ..*" "\\ 1" CPACK_PACKAGE_VERSION_MAJOR "${TOOL_VERSION_NUMBER} " )
1680
- string (REGEX REPLACE
1680
+ string (REGEX REPLACE
1681
1681
"^[0-9]+\\ .([0-9]+)\\ ..*" "\\ 1" CPACK_PACKAGE_VERSION_MINOR "${TOOL_VERSION_NUMBER} " )
1682
- string (REGEX REPLACE
1682
+ string (REGEX REPLACE
1683
1683
"^[0-9]+\\ .[0-9]+\\ .([0-9]+)" "\\ 1" CPACK_PACKAGE_VERSION_PATCH "${TOOL_VERSION_NUMBER} " )
1684
1684
1685
1685
if (WIN32 AND NOT BUILDING_SUB_PACKAGE)
@@ -1700,11 +1700,11 @@ if (WIN32 AND NOT BUILDING_SUB_PACKAGE)
1700
1700
# don't take time and space copying: user can pass same dr to frontend,
1701
1701
# so we only copy for package target
1702
1702
if (DEBUG_BUILD)
1703
- set (CPACK_INSTALLED_DIRECTORIES
1703
+ set (CPACK_INSTALLED_DIRECTORIES
1704
1704
"${DynamoRIO_DIR} /../${LIB_ARCH} ;${DR_install_dir} /${LIB_ARCH} "
1705
1705
"${DynamoRIO_DIR} /../ext/${LIB_ARCH} ;${DR_install_dir} /ext/${LIB_ARCH} " )
1706
1706
else (DEBUG_BUILD)
1707
- set (CPACK_INSTALLED_DIRECTORIES
1707
+ set (CPACK_INSTALLED_DIRECTORIES
1708
1708
"${DynamoRIO_DIR} /../${LIB_ARCH} /release;${DR_install_dir} /${LIB_ARCH} /release"
1709
1709
"${DynamoRIO_DIR} /../ext/${LIB_ARCH} /release;${DR_install_dir} /ext/${LIB_ARCH} /release" )
1710
1710
endif (DEBUG_BUILD)
@@ -1734,7 +1734,7 @@ if (PERL_TO_EXE OR WIN32 AND USE_DRSYMS AND TOOL_DR_MEMORY)
1734
1734
set (CPACK_PACKAGE_EXECUTABLES "${toolname} " "${toolname_cap_spc} (drag your app here)" )
1735
1735
set (CPACK_CREATE_DESKTOP_LINKS "${toolname} " )
1736
1736
endif (PERL_TO_EXE OR WIN32 AND USE_DRSYMS AND TOOL_DR_MEMORY)
1737
- set (CPACK_NSIS_MENU_LINKS
1737
+ set (CPACK_NSIS_MENU_LINKS
1738
1738
# We automatically get an entry for ${toolname}.exe since it's in the
1739
1739
# CPACK_PACKAGE_EXECUTABLES list, even though we don't want one.
1740
1740
"bin/" "Explore ${toolname_cap_spc} (drag your app onto ${toolname} .exe)"
0 commit comments