Skip to content

Commit f48ec5c

Browse files
mszabo-wikiameta-codesync[bot]
authored andcommitted
Install hhvm_wrapper.php and tc-print (#9713)
Summary: It's useful to have these debugging tools available in HHVM installs. Pull Request resolved: #9713 Reviewed By: paulbiss Differential Revision: D92165832 fbshipit-source-id: 6cc2bee1b04af4ef98109a1dbd4bb54094140e61
1 parent b30eb7e commit f48ec5c

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

hphp/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ add_library(hhvm_base_headers INTERFACE)
7171
hphp_link(hhvm_base_headers INTERFACE)
7272
target_include_directories(hhvm_base_headers INTERFACE ${CMAKE_SOURCE_DIR})
7373

74-
# Only thing to do directly in tools is install this one script. Tools also has
75-
# its own Makefile, so just do it here instead of dealing with moving that all
76-
# around.
77-
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/tools/oss-repo-mode
78-
RENAME hhvm-repo-mode
79-
DESTINATION bin
80-
COMPONENT dev)
81-
8274
add_definitions("-DUSE_CMAKE")
8375

8476
enable_language(ASM)
@@ -87,10 +79,6 @@ if (NOT PCRE_LIBRARY)
8779
link_libraries(pcre)
8880
endif()
8981

90-
add_subdirectory(tools/hfsort)
91-
add_subdirectory(tools/version)
92-
add_subdirectory(tools/tc-print)
93-
9482
add_subdirectory(compiler)
9583
add_subdirectory(hack)
9684
add_subdirectory(hhbbc)
@@ -117,7 +105,5 @@ if (TEST_BIN)
117105
add_subdirectory(test)
118106
endif ()
119107

120-
add_subdirectory(tools/gdb)
121-
122108
# Keep this last
123-
add_subdirectory(tools/hphpize)
109+
add_subdirectory(tools)

hphp/tools/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/oss-repo-mode
2+
RENAME hhvm-repo-mode
3+
DESTINATION bin
4+
COMPONENT dev)
5+
6+
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/hhvm_wrapper.php
7+
DESTINATION bin
8+
COMPONENT dev)
9+
10+
add_subdirectory(hfsort)
11+
add_subdirectory(version)
12+
add_subdirectory(tc-print)
13+
add_subdirectory(gdb)
14+
# Keep this last
15+
add_subdirectory(hphpize)

hphp/tools/tc-print/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ link_object_libraries(tc-print ${HHVM_WHOLE_ARCHIVE_LIBRARIES})
3333
target_link_libraries(tc-print ${HHVM_LINK_LIBRARIES})
3434
embed_all_systemlibs(tc-print "${CMAKE_CURRENT_BINARY_DIR}/../.."
3535
"${CMAKE_CURRENT_BINARY_DIR}/tc-print")
36+
37+
install(TARGETS tc-print)

0 commit comments

Comments
 (0)