mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Fix installing and loading plugins
This commit is contained in:
parent
d3f4b59d66
commit
9c3f38fa11
|
@ -25,6 +25,13 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
|||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
set(FALKON_INSTALL_PLUGINDIR "${KDE_INSTALL_PLUGINDIR}/falkon")
|
||||
else()
|
||||
set(FALKON_INSTALL_PLUGINDIR "${KDE_INSTALL_PLUGINDIR}")
|
||||
endif()
|
||||
add_definitions(-DPLUGIN_PATH=\"${CMAKE_INSTALL_PREFIX}/${FALKON_INSTALL_PLUGINDIR}\")
|
||||
|
||||
# Version (TODO: move to a generated header once qmake support is dropped, to avoid full recompilations when changing this
|
||||
add_definitions(-DFALKON_VERSION=\"${PROJECT_VERSION}\")
|
||||
|
||||
|
|
|
@ -94,6 +94,10 @@ void DataPaths::init()
|
|||
#endif
|
||||
m_paths[AppData].append(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation));
|
||||
|
||||
#if defined(PLUGIN_PATH)
|
||||
m_paths[Plugins].append(QStringLiteral(PLUGIN_PATH));
|
||||
#endif
|
||||
|
||||
for (const QString &location : qAsConst(m_paths[AppData])) {
|
||||
initAssetsIn(location);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@ set( AccessKeysNavigation_RSCS
|
|||
qt5_add_resources(RSCS ${AccessKeysNavigation_RSCS})
|
||||
|
||||
add_library(AccessKeysNavigation MODULE ${AccessKeysNavigation_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS AccessKeysNavigation DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS AccessKeysNavigation DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(AccessKeysNavigation FalkonPrivate)
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ set( AutoScroll_RSCS
|
|||
qt5_add_resources(RSCS ${AutoScroll_RSCS})
|
||||
|
||||
add_library(AutoScroll MODULE ${AutoScroll_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS AutoScroll DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS AutoScroll DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(AutoScroll FalkonPrivate)
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ set( FlashCookieManager_RSCS
|
|||
qt5_add_resources(RSCS ${FlashCookieManager_RSCS})
|
||||
|
||||
add_library(FlashCookieManager MODULE ${FlashCookieManager_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS FlashCookieManager DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS FlashCookieManager DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(FlashCookieManager FalkonPrivate)
|
||||
|
||||
|
|
|
@ -11,6 +11,6 @@ set( GnomeKeyringPasswords_RSCS
|
|||
qt5_add_resources(RSCS ${GnomeKeyringPasswords_RSCS})
|
||||
|
||||
add_library(GnomeKeyringPasswords MODULE ${GnomeKeyringPasswords_SRCS} ${RSCS})
|
||||
install(TARGETS GnomeKeyringPasswords DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS GnomeKeyringPasswords DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(GnomeKeyringPasswords ${GNOME_KEYRING_LIBRARIES} FalkonPrivate)
|
||||
|
||||
|
|
|
@ -28,6 +28,6 @@ set( GreaseMonkey_RSCS
|
|||
qt5_add_resources(RSCS ${GreaseMonkey_RSCS})
|
||||
|
||||
add_library(GreaseMonkey MODULE ${GreaseMonkey_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS GreaseMonkey DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS GreaseMonkey DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(GreaseMonkey FalkonPrivate)
|
||||
|
||||
|
|
|
@ -15,6 +15,6 @@ set( ImageFinder_RSCS
|
|||
qt5_add_resources(RSCS ${ImageFinder_RSCS})
|
||||
|
||||
add_library(ImageFinder MODULE ${ImageFinder_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS ImageFinder DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS ImageFinder DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(ImageFinder FalkonPrivate)
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@ set( KWalletPasswords_RSCS
|
|||
qt5_add_resources(RSCS ${KWalletPasswords_RSCS})
|
||||
|
||||
add_library(KWalletPasswords MODULE ${KWalletPasswords_SRCS} ${RSCS})
|
||||
install(TARGETS KWalletPasswords DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS KWalletPasswords DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(KWalletPasswords FalkonPrivate KF5::Wallet)
|
||||
|
||||
|
|
|
@ -27,6 +27,6 @@ qt5_add_resources(RSCS ${MouseGestures_RSCS})
|
|||
KDE_ENABLE_EXCEPTIONS()
|
||||
|
||||
add_library(MouseGestures MODULE ${MouseGestures_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS MouseGestures DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS MouseGestures DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(MouseGestures FalkonPrivate)
|
||||
|
||||
|
|
|
@ -15,6 +15,6 @@ set( PIM_RSCS
|
|||
qt5_add_resources(RSCS ${PIM_RSCS})
|
||||
|
||||
add_library(PIM MODULE ${PIM_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS PIM DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS PIM DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(PIM FalkonPrivate)
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@ set( StatusBarIcons_RSCS
|
|||
qt5_add_resources(RSCS ${StatusBarIcons_RSCS})
|
||||
|
||||
add_library(StatusBarIcons MODULE ${StatusBarIcons_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS StatusBarIcons DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS StatusBarIcons DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(StatusBarIcons FalkonPrivate)
|
||||
|
||||
|
|
|
@ -20,6 +20,6 @@ set( TabManager_RSCS
|
|||
qt5_add_resources(RSCS ${TabManager_RSCS})
|
||||
|
||||
add_library(TabManager MODULE ${TabManager_SRCS} ${UIS} ${RSCS})
|
||||
install(TARGETS TabManager DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS TabManager DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(TabManager FalkonPrivate)
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@ set( TestPlugin_SRCS
|
|||
)
|
||||
|
||||
add_library(TestPlugin MODULE ${TestPlugin_SRCS} ${RSCS})
|
||||
install(TARGETS TestPlugin DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
||||
install(TARGETS TestPlugin DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(TestPlugin FalkonPrivate)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user