mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Add option to toggle qt quick compiler
This commit is contained in:
parent
aa6db65cca
commit
5e04c65550
2 changed files with 11 additions and 1 deletions
|
|
@ -17,6 +17,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||
|
||||
option(QUICK_COMPILER "Use QtQuick compiler to improve performance" TRUE)
|
||||
|
||||
include(KDEInstallDirs)
|
||||
include(KDECMakeSettings)
|
||||
include(KDECompilerSettings NO_POLICY_SCOPE)
|
||||
|
|
@ -41,6 +43,10 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED
|
|||
QuickCompiler
|
||||
)
|
||||
|
||||
if (QUICK_COMPILER)
|
||||
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED QuickCompiler)
|
||||
endif()
|
||||
|
||||
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
||||
I18n
|
||||
KIO
|
||||
|
|
|
|||
|
|
@ -19,7 +19,11 @@ set(mobileshellplugin_SRCS
|
|||
${DBUS_SRCS}
|
||||
)
|
||||
|
||||
qtquick_compiler_add_resources(RESOURCES resources.qrc)
|
||||
if(QUICK_COMPILER)
|
||||
qtquick_compiler_add_resources(RESOURCES resources.qrc)
|
||||
else()
|
||||
qt5_add_resources(RESOURCES resources.qrc)
|
||||
endif()
|
||||
|
||||
add_library(mobileshellplugin ${mobileshellplugin_SRCS} ${RESOURCES})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue