CMake: Make Ladybird and all Services executables console applications
We set bInheritHandles to TRUE for all child processes we spawn. Some of the types of objects that support handle inheritence is all of the STD handles (STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, STD_ERROR_HANDLE) and the console screen buffer. This means if Ladybird and all the child service processes it launches/communicates with our console apps, only a single console needs to be allocated and all child process output their logs to that single console.
This commit is contained in:
parent
e3407d68d4
commit
782cf581e4
5 changed files with 5 additions and 5 deletions
|
|
@ -26,5 +26,5 @@ target_link_libraries(ImageDecoder PRIVATE imagedecoderservice LibCore LibMain L
|
|||
target_link_libraries(imagedecoderservice PRIVATE LibCore LibGfx LibIPC LibImageDecoderClient LibMain LibThreading)
|
||||
|
||||
if (WIN32)
|
||||
lagom_windows_bin(ImageDecoder)
|
||||
lagom_windows_bin(ImageDecoder CONSOLE)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ target_link_libraries(requestserverservice PUBLIC LibCore LibDatabase LibDNS Lib
|
|||
target_link_libraries(requestserverservice PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
||||
|
||||
if (WIN32)
|
||||
lagom_windows_bin(RequestServer)
|
||||
lagom_windows_bin(RequestServer CONSOLE)
|
||||
endif()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ add_executable(WebContent main.cpp)
|
|||
target_link_libraries(WebContent PRIVATE webcontentservice LibURL)
|
||||
|
||||
if(WIN32)
|
||||
lagom_windows_bin(WebContent)
|
||||
lagom_windows_bin(WebContent CONSOLE)
|
||||
endif()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ target_link_libraries(WebWorker PRIVATE webworkerservice)
|
|||
if(WIN32)
|
||||
find_package(pthread REQUIRED)
|
||||
target_include_directories(WebWorker PRIVATE $<BUILD_INTERFACE:${PTHREAD_INCLUDE_DIR}>)
|
||||
lagom_windows_bin(WebWorker)
|
||||
lagom_windows_bin(WebWorker CONSOLE)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ target_link_libraries(ladybird PRIVATE Qt::Core Qt::Gui Qt::Widgets)
|
|||
create_ladybird_bundle(ladybird)
|
||||
|
||||
if (WIN32)
|
||||
lagom_windows_bin(ladybird)
|
||||
lagom_windows_bin(ladybird CONSOLE)
|
||||
qt_generate_deploy_script(
|
||||
TARGET ladybird
|
||||
OUTPUT_SCRIPT ladybird_deploy_script
|
||||
|
|
|
|||
Loading…
Reference in a new issue