Desktop App Toolkit uses GLib as the D-Bus library for quite long time, but GLib is not only a D-Bus library, it's more a basic library providing native Linux APIs implementing various specs. The situation right now is that DESKTOP_APP_DISABLE_DBUS_INTEGRATION disables not only D-Bus code but all the native API integration such as MIME handling or .desktop file parsing. In other words, the option disables native Linux APIs on Linux what is absurd and doesn't have any sense.
48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
# This file is part of Desktop App Toolkit,
|
|
# a set of libraries for developing nice desktop applications.
|
|
#
|
|
# For license and copyright information please follow this link:
|
|
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
|
|
|
add_library(external_qt_static_plugins OBJECT)
|
|
add_library(desktop-app::external_qt_static_plugins ALIAS external_qt_static_plugins)
|
|
init_target(external_qt_static_plugins "(external)")
|
|
|
|
nice_target_sources(external_qt_static_plugins ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PRIVATE
|
|
qt_static_plugins.cpp
|
|
)
|
|
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_qt
|
|
desktop-app::external_kimageformats
|
|
)
|
|
|
|
if (LINUX)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_nimf_qt5
|
|
)
|
|
|
|
if (TARGET Qt::DBus)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_fcitx_qt5
|
|
)
|
|
|
|
if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_fcitx5_qt
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
|
target_link_libraries(external_qt_static_plugins
|
|
PUBLIC
|
|
desktop-app::external_hime_qt
|
|
)
|
|
endif()
|
|
endif()
|