Kind of fix the qml module
This commit is contained in:
parent
bd600d4117
commit
a50d30687c
|
@ -20,4 +20,9 @@
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# I have no idea why qt's cmake module refuses to set this correctly, I give up.
|
||||||
|
cp $out/lib/qt-6/qml/org/kde/layershell/libLayerShellQtQml.so $out/lib/qt-6/qml/org/kde/layershell/libLayerShellQtQmlplugin.so
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,27 @@
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
qt_add_qml_module(LayerShellQtQml
|
qt_add_qml_module(LayerShellQtQml
|
||||||
URI "org.kde.layershell"
|
URI "org.kde.layershell" SHARED
|
||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
SOURCES layershellqtplugin.cpp)
|
SOURCES layershellqtplugin.cpp)
|
||||||
|
|
||||||
target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface)
|
target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface)
|
||||||
|
|
||||||
install(TARGETS LayerShellQtQml LIBRARY DESTINATION ${KDE_INSTALL_QMLDIR})
|
qt6_query_qml_module(LayerShellQtQml
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qmldir DESTINATION ${KDE_INSTALL_QMLDIR})
|
PLUGIN_TARGET module_plugin_target
|
||||||
|
TARGET_PATH module_target_path
|
||||||
|
QMLDIR module_qmldir
|
||||||
|
TYPEINFO module_typeinfo
|
||||||
|
)
|
||||||
|
|
||||||
|
set(module_dir ${KDE_INSTALL_QMLDIR}/${module_target_path})
|
||||||
|
|
||||||
|
install(TARGETS LayerShellQtQml
|
||||||
|
LIBRARY DESTINATION "${module_dir}"
|
||||||
|
RUNTIME DESTINATION "${module_dir}"
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES "${module_qmldir}" DESTINATION "${module_dir}")
|
||||||
|
install(FILES "${module_typeinfo}" DESTINATION "${module_dir}")
|
||||||
|
|
||||||
#ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR})
|
#ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR})
|
||||||
|
|
Loading…
Reference in a new issue