Bundle a QRC file instead of installing separate QML files
This commit is contained in:
parent
dedb4b1ed2
commit
27d5fd0600
3 changed files with 9 additions and 10 deletions
|
@ -9,11 +9,7 @@ set(kdeconnectdeclarativeplugin_SRC
|
||||||
objectfactory.cpp
|
objectfactory.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(qml_SRC
|
qt5_add_resources(kdeconnectdeclarativeplugin_SRC resources.qrc)
|
||||||
qml/RemoteKeyboard.qml
|
|
||||||
qml/PluginChecker.qml
|
|
||||||
qml/DBusProperty.qml
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(kdeconnectdeclarativeplugin SHARED ${kdeconnectdeclarativeplugin_SRC})
|
add_library(kdeconnectdeclarativeplugin SHARED ${kdeconnectdeclarativeplugin_SRC})
|
||||||
target_link_libraries(kdeconnectdeclarativeplugin
|
target_link_libraries(kdeconnectdeclarativeplugin
|
||||||
|
@ -21,4 +17,4 @@ target_link_libraries(kdeconnectdeclarativeplugin
|
||||||
kdeconnectinterfaces
|
kdeconnectinterfaces
|
||||||
)
|
)
|
||||||
install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
|
install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
|
||||||
install(FILES qmldir ${qml_SRC} DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
|
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
module org.kde.kdeconnect
|
module org.kde.kdeconnect
|
||||||
plugin kdeconnectdeclarativeplugin
|
plugin kdeconnectdeclarativeplugin
|
||||||
|
|
||||||
PluginChecker 1.0 PluginChecker.qml
|
|
||||||
DBusProperty 1.0 DBusProperty.qml
|
|
||||||
RemoteKeyboard 1.0 RemoteKeyboard.qml
|
|
||||||
|
|
7
declarativeplugin/resources.qrc
Normal file
7
declarativeplugin/resources.qrc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
|
<qresource>
|
||||||
|
<file>qml/DBusProperty.qml</file>
|
||||||
|
<file>qml/PluginChecker.qml</file>
|
||||||
|
<file>qml/RemoteKeyboard.qml</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
Loading…
Reference in a new issue