-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the launcher core library into its own folder too
Now we have one target per folder, which makes it a lot easier to reason about dependencies here.
- Loading branch information
Showing
75 changed files
with
147 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
add_subdirectory(injector) | ||
|
||
set(gammaray_launcher_shared_srcs | ||
injector/abstractinjector.cpp | ||
injector/processinjector.cpp | ||
injector/injectorfactory.cpp | ||
injector/styleinjector.cpp | ||
|
||
libraryutil.cpp | ||
probeabi.cpp | ||
probeabidetector.cpp | ||
probefinder.cpp | ||
launchoptions.cpp | ||
networkdiscoverymodel.cpp | ||
clientlauncher.cpp | ||
launcherfinder.cpp | ||
launcher.cpp | ||
selftest.cpp | ||
) | ||
|
||
if(WIN32) | ||
list(APPEND gammaray_launcher_shared_srcs | ||
probeabidetector_win.cpp | ||
pefile.cpp | ||
injector/windllinjector.cpp | ||
) | ||
else() | ||
list(APPEND gammaray_launcher_shared_srcs | ||
injector/debuggerinjector.cpp | ||
injector/gdbinjector.cpp | ||
injector/lldbinjector.cpp | ||
injector/preloadcheck.cpp | ||
injector/preloadinjector.cpp | ||
) | ||
if(APPLE) | ||
list(APPEND gammaray_launcher_shared_srcs probeabidetector_mac.cpp) | ||
elseif(UNIX) | ||
list(APPEND gammaray_launcher_shared_srcs probeabidetector_elf.cpp) | ||
else() | ||
list(APPEND gammaray_launcher_shared_srcs probeabidetector_dummy.cpp) | ||
endif() | ||
endif() | ||
|
||
add_library(gammaray_launcher SHARED ${gammaray_launcher_shared_srcs}) | ||
generate_export_header(gammaray_launcher) | ||
set_target_properties(gammaray_launcher PROPERTIES | ||
${GAMMARAY_DEFAULT_LIBRARY_PROPERTIES} | ||
) | ||
|
||
gammaray_target_relocatable_interfaces(gammaray_launcher_ipaths) | ||
target_include_directories(gammaray_launcher PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> $<INSTALL_INTERFACE:${gammaray_launcher_ipaths}>) | ||
target_link_libraries(gammaray_launcher LINK_PUBLIC ${QT_QTCORE_LIBRARIES} LINK_PRIVATE gammaray_common ${QT_QTNETWORK_LIBRARIES}) | ||
if(HAVE_QT_WIDGETS) | ||
target_link_libraries(gammaray_launcher LINK_PRIVATE ${QT_QTGUI_LIBRARIES}) | ||
endif() | ||
if(WIN32) | ||
target_link_libraries(gammaray_launcher LINK_PRIVATE version) | ||
elseif(APPLE) | ||
target_link_libraries(gammaray_launcher LINK_PRIVATE "-framework CoreFoundation") | ||
endif() | ||
if(UNIX AND NOT APPLE AND NOT QNXNTO) | ||
target_link_libraries(gammaray_launcher LINK_PRIVATE dl) # for preload check | ||
endif() | ||
|
||
if(NOT GAMMARAY_PROBE_ONLY_BUILD) | ||
install(TARGETS gammaray_launcher EXPORT GammaRayTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||
|
||
gammaray_install_headers(DESTINATION launcher | ||
${CMAKE_CURRENT_BINARY_DIR}/gammaray_launcher_export.h | ||
launcher.h | ||
launchoptions.h | ||
probeabi.h | ||
probeabidetector.h | ||
probefinder.h | ||
networkdiscoverymodel.h | ||
) | ||
|
||
ecm_generate_pri_file(BASE_NAME GammaRayLauncher | ||
LIB_NAME gammaray_launcher | ||
DEPS "core gui GammaRayCommon" | ||
FILENAME_VAR PRI_FILENAME | ||
INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_DIR} | ||
) | ||
|
||
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR}) | ||
else() | ||
install(TARGETS gammaray_launcher ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||
endif() | ||
if(MSVC) | ||
install(FILES "$<TARGET_PDB_FILE_DIR:gammaray_launcher>/$<TARGET_PDB_FILE_NAME:gammaray_launcher>" DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug RelWithDebInfo) | ||
endif() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.