Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f8142538 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri
Browse files

Generate qmltypes file using qmlplugindump

parent f01b0f3b
No related branches found
No related tags found
No related merge requests found
...@@ -42,10 +42,10 @@ _vtk_module_real_target(vtk_guisupportqtquick_target VTK::GUISupportQtQuick) ...@@ -42,10 +42,10 @@ _vtk_module_real_target(vtk_guisupportqtquick_target VTK::GUISupportQtQuick)
# Set VTK_MODULE_PLUGIN_NAME and VTK_MODULE_PLUGIN_DIR for the qmldir configuration # Set VTK_MODULE_PLUGIN_NAME and VTK_MODULE_PLUGIN_DIR for the qmldir configuration
set(vtk_qml_module_dir set(vtk_qml_module_dir
${_vtk_build_PACKAGE}.${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}) ${_vtk_build_PACKAGE}.${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION})
set(vtk_qml_module_superpath
${CMAKE_BINARY_DIR}/$<CONFIG>)
set(vtk_qml_module_path set(vtk_qml_module_path
${CMAKE_BINARY_DIR}/$<CONFIG>/${vtk_qml_module_dir}) ${vtk_qml_module_superpath}/${vtk_qml_module_dir})
# set(vtk_qml_module_path
# ${CMAKE_BINARY_DIR}/${vtk_qml_module_dir})
# We use a three step approach to resolving the QML plugin path for qmldir file # We use a three step approach to resolving the QML plugin path for qmldir file
# during compilation of this module. # during compilation of this module.
...@@ -125,7 +125,7 @@ if(QMLPLUGINDUMP_EXECUTABLE) ...@@ -125,7 +125,7 @@ if(QMLPLUGINDUMP_EXECUTABLE)
COMMAND COMMAND
${QMLPLUGINDUMP_EXECUTABLE} ${_vtk_build_PACKAGE} ${QMLPLUGINDUMP_EXECUTABLE} ${_vtk_build_PACKAGE}
${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION} ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}
${CMAKE_BINARY_DIR} > ${qmltypes_file} ${vtk_qml_module_superpath} > ${qmltypes_file}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
# BYPRODUCTS ${qmltypes_file} # BYPRODUCTS ${qmltypes_file}
COMMENT "Generating qmltypes file using qmlplugindump" COMMENT "Generating qmltypes file using qmlplugindump"
......
...@@ -4,10 +4,25 @@ import QtQuick.tooling 1.2 ...@@ -4,10 +4,25 @@ import QtQuick.tooling 1.2
// It is used for QML tooling purposes only. // It is used for QML tooling purposes only.
// //
// This file was auto-generated by: // This file was auto-generated by:
// 'qmlplugindump VTK 9.0 /home/sankhesh/Projects/vtk/bld' // 'qmlplugindump VTK 9.0 /home/sankhesh/Projects/vtk/bld-release/Release/'
Module { Module {
dependencies: ["QtQuick 2.0"] dependencies: ["QtQuick 2.0"]
Component {
name: "QQuickVTKInteractiveWidget"
prototype: "QObject"
exports: ["VTKWidget 9.0"]
exportMetaObjectRevisions: [0]
Property { name: "enabled"; type: "bool" }
Signal {
name: "enabledChanged"
Parameter { name: "e"; type: "bool" }
}
Method {
name: "sync"
Parameter { name: "ren"; type: "vtkRenderer"; isPointer: true }
}
}
Component { Component {
name: "QQuickVTKRenderItem" name: "QQuickVTKRenderItem"
defaultProperty: "data" defaultProperty: "data"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment