mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
build: Add QMacStyle support
This commit is contained in:
parent
e674e94302
commit
1be8e0f238
2 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
|
||||||
_BITCOIN_QT_CHECK_STATIC_LIBS
|
_BITCOIN_QT_CHECK_STATIC_LIBS
|
||||||
|
|
||||||
if test "x$qt_plugin_path" != x; then
|
if test "x$qt_plugin_path" != x; then
|
||||||
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
|
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms -L$qt_plugin_path/styles"
|
||||||
if test -d "$qt_plugin_path/accessible"; then
|
if test -d "$qt_plugin_path/accessible"; then
|
||||||
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
|
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
|
||||||
fi
|
fi
|
||||||
|
@ -154,6 +154,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
|
||||||
AX_CHECK_LINK_FLAG([[-framework Metal]],[QT_LIBS="$QT_LIBS -framework Metal"],[AC_MSG_ERROR(could not link against Metal framework)])
|
AX_CHECK_LINK_FLAG([[-framework Metal]],[QT_LIBS="$QT_LIBS -framework Metal"],[AC_MSG_ERROR(could not link against Metal framework)])
|
||||||
AX_CHECK_LINK_FLAG([[-framework QuartzCore]],[QT_LIBS="$QT_LIBS -framework QuartzCore"],[AC_MSG_ERROR(could not link against QuartzCore framework)])
|
AX_CHECK_LINK_FLAG([[-framework QuartzCore]],[QT_LIBS="$QT_LIBS -framework QuartzCore"],[AC_MSG_ERROR(could not link against QuartzCore framework)])
|
||||||
_BITCOIN_QT_CHECK_STATIC_PLUGIN([QCocoaIntegrationPlugin], [-lqcocoa])
|
_BITCOIN_QT_CHECK_STATIC_PLUGIN([QCocoaIntegrationPlugin], [-lqcocoa])
|
||||||
|
_BITCOIN_QT_CHECK_STATIC_PLUGIN([QMacStylePlugin], [-lqmacstyle])
|
||||||
AC_DEFINE(QT_QPA_PLATFORM_COCOA, 1, [Define this symbol if the qt platform is cocoa])
|
AC_DEFINE(QT_QPA_PLATFORM_COCOA, 1, [Define this symbol if the qt platform is cocoa])
|
||||||
elif test "x$TARGET_OS" = xandroid; then
|
elif test "x$TARGET_OS" = xandroid; then
|
||||||
QT_LIBS="-Wl,--export-dynamic,--undefined=JNI_OnLoad -lqtforandroid -ljnigraphics -landroid -lqtfreetype -lQt5EglSupport $QT_LIBS"
|
QT_LIBS="-Wl,--export-dynamic,--undefined=JNI_OnLoad -lqtforandroid -ljnigraphics -landroid -lqtfreetype -lQt5EglSupport $QT_LIBS"
|
||||||
|
|
|
@ -62,6 +62,7 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
|
||||||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
|
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
|
||||||
#elif defined(QT_QPA_PLATFORM_COCOA)
|
#elif defined(QT_QPA_PLATFORM_COCOA)
|
||||||
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
|
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
|
||||||
|
Q_IMPORT_PLUGIN(QMacStylePlugin);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue