Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | |||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
target_sources(bitcoin-qt-base PRIVATE winshutdownmonitor.cpp) | target_sources(bitcoin-qt-base PRIVATE winshutdownmonitor.cpp) | ||||
# Use windows platform plugin | # Use windows platform plugin | ||||
target_compile_definitions(bitcoin-qt-base INTERFACE | target_compile_definitions(bitcoin-qt-base INTERFACE | ||||
-DQT_QPA_PLATFORM_WINDOWS=1 | -DQT_QPA_PLATFORM_WINDOWS=1 | ||||
) | ) | ||||
# Avoid showing the console when start bitcoin-qt | |||||
target_link_libraries(bitcoin-qt-base -mwindows) | |||||
deadalnix: How this isn't windows only ? What is configure doing ? | |||||
FabienAuthorUnsubmitted Done Inline ActionsYes, this is windows only. Configure does the same in bitcoin_qt.m4: case $host in # [...] *mingw*) BITCOIN_QT_CHECK([ AX_CHECK_LINK_FLAG([[-mwindows]],[QT_LDFLAGS="$QT_LDFLAGS -mwindows"],[AC_MSG_WARN(-mwindows linker support not detected)]) ]) esac Fabien: Yes, this is windows only.
Configure does the same in `bitcoin_qt.m4`:
```
case $host in
# [... | |||||
target_link_libraries(bitcoin-qt-base | target_link_libraries(bitcoin-qt-base | ||||
Qt5::QWindowsIntegrationPlugin | Qt5::QWindowsIntegrationPlugin | ||||
) | ) | ||||
macro(add_qt_dependency) | macro(add_qt_dependency) | ||||
foreach(LIB ${ARGN}) | foreach(LIB ${ARGN}) | ||||
set(LIB_PATH "${LIB}_PATH") | set(LIB_PATH "${LIB}_PATH") | ||||
find_library(${LIB_PATH} ${LIB}) | find_library(${LIB_PATH} ${LIB}) | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |
How this isn't windows only ? What is configure doing ?