diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2012-10-26 17:53:52 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-08 16:41:14 +0100 |
commit | 098419dae52b19efd3d2b797decfddfef1983481 (patch) | |
tree | 3c2a625ba2ce215a7a3c9545e9276d5c18e184b9 | |
parent | ecb0a39f4f3ef68fc0fbb07f304268b06eaf4a8a (diff) | |
download | qt3d-098419dae52b19efd3d2b797decfddfef1983481.tar.gz |
remove library.xml and any mention of it
qt creator < 2.2 is kinda irrelevant nowadays.
Change-Id: I5d0f8047a1a0808f234ad711b9a3003305488087
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r-- | src/imports/threed/README.library_xml | 15 | ||||
-rw-r--r-- | src/imports/threed/library.xml | 379 | ||||
-rw-r--r-- | src/imports/threed/threed.pro | 6 | ||||
-rw-r--r-- | src/quick3d/README.library_xml | 15 | ||||
-rw-r--r-- | src/quick3d/library.xml | 54 | ||||
-rw-r--r-- | src/quick3d/quick3d.pro | 5 | ||||
-rw-r--r-- | src/scripts/README | 38 | ||||
-rwxr-xr-x | src/scripts/filter-qmldump.pl | 65 |
8 files changed, 2 insertions, 575 deletions
diff --git a/src/imports/threed/README.library_xml b/src/imports/threed/README.library_xml deleted file mode 100644 index 0399d4aba..000000000 --- a/src/imports/threed/README.library_xml +++ /dev/null @@ -1,15 +0,0 @@ -The library.xml file is required to get syntax highlighting of Qt3D -plugin items in Qt Creator < version 2.2. - -The library.xml file is installed into the imports/Qt3D tree along with -the plugin and the qmldir file. - -When any of the elements - property names, class names or other exports -- in the Qt3D plugin are changed this file will need to be regenerated. - -To generate the library.xml file see the scripts/README file for a -description of how to use the filter-qmldump.pl script. - -This is a less-than-optimal solution but as syntax discovery improves -in Qt Creator better solutions should become available at which time -this temporary script and syntax file may be deprecated. diff --git a/src/imports/threed/library.xml b/src/imports/threed/library.xml deleted file mode 100644 index 1803d9009..000000000 --- a/src/imports/threed/library.xml +++ /dev/null @@ -1,379 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<module> - <type name="QQuickEffect" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="Effect" /> - </exports> - <property name="color" type="QColor" /> - <property name="useLighting" type="bool" /> - <property name="decal" type="bool" /> - <property name="blending" type="bool" /> - <property name="texture" type="QUrl" /> - <property name="textureImage" type="QImage" /> - <property name="material" type="QGLMaterial" /> - <property name="progress" type="qreal" /> - <signal name="effectChanged" /> - <signal name="progressChanged"> - <param name="progress" type="qreal" /> - </signal> - </type> - <type name="QQuickItem3D" defaultProperty="data" extends="QQuickItem"> - <exports> - <export module="Qt3D" version="1.0" type="Item3D" /> - </exports> - <enum name="CullFace"> - <enumerator name="CullDisabled" value="0" /> - <enumerator name="CullFrontFaces" value="1028" /> - <enumerator name="CullBackFaces" value="1029" /> - <enumerator name="CullAllFaces" value="1032" /> - <enumerator name="CullClockwise" value="65536" /> - </enum> - <enum name="CullFaces"> - <enumerator name="CullDisabled" value="0" /> - <enumerator name="CullFrontFaces" value="1028" /> - <enumerator name="CullBackFaces" value="1029" /> - <enumerator name="CullAllFaces" value="1032" /> - <enumerator name="CullClockwise" value="65536" /> - </enum> - <enum name="SortMode"> - <enumerator name="DefaultSorting" value="0" /> - <enumerator name="BackToFront" value="1" /> - </enum> - <property name="position" type="QVector3D" /> - <property name="x" type="qreal" /> - <property name="y" type="qreal" /> - <property name="z" type="qreal" /> - <property name="scale" type="qreal" /> - <property name="transform" type="QQuickQGraphicsTransform3D" isList="true" /> - <property name="pretransform" type="QQuickQGraphicsTransform3D" isList="true" /> - <property name="mesh" type="QQuickMesh" /> - <property name="effect" type="QQuickEffect" /> - <property name="light" type="QGLLightParameters" /> - <property name="resources" type="QObject" isList="true" /> - <property name="data" type="QObject" isList="true" /> - <property name="children" type="QQuickItem3D" isList="true" /> - <property name="cullFaces" type="CullFaces" /> - <property name="sortChildren" type="SortMode" /> - <property name="meshNode" type="string" /> - <property name="inheritEvents" type="bool" /> - <property name="enabled" type="bool" /> - <property name="parent" type="QQuickItem3D" /> - <signal name="positionChanged" /> - <signal name="scaleChanged" /> - <signal name="rotationChanged" /> - <signal name="meshChanged" /> - <signal name="meshNodeChanged" /> - <signal name="effectChanged" /> - <signal name="lightChanged" /> - <signal name="stateChanged"> - <param type="string" /> - </signal> - <signal name="clicked" /> - <signal name="doubleClicked" /> - <signal name="pressed" /> - <signal name="released" /> - <signal name="hoverEnter" /> - <signal name="hoverLeave" /> - <signal name="inheritEventsChanged" /> - <signal name="enabledChanged" /> - <signal name="childrenChanged" /> - <signal name="parentChanged" /> - <signal name="sortChildrenChanged" /> - <method name="update" /> - <method name="localToWorld" type="QVector3D"> - <param name="point" type="QVector3D" /> - </method> - <method name="localToWorld" type="QVector3D" /> - <method name="worldToLocal" type="QVector3D"> - <param name="point" type="QVector3D" /> - </method> - <method name="worldToLocal" type="QVector3D" /> - </type> - <type name="QQuickMesh" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="Mesh" /> - </exports> - <property name="source" type="QUrl" /> - <property name="meshName" type="string" /> - <property name="options" type="string" /> - <property name="dumpInfo" type="bool" /> - <signal name="dataChanged" /> - <signal name="loaded" /> - <signal name="optionsChanged" /> - <signal name="dumpInfoChanged" /> - <method name="material" type="QObject*"> - <param name="nodeName" type="string" /> - <param name="materialName" type="string" /> - </method> - </type> - <type name="QGLCamera" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="Camera" /> - </exports> - <enum name="ProjectionType"> - <enumerator name="Perspective" value="0" /> - <enumerator name="Orthographic" value="1" /> - </enum> - <enum name="RotateOrder"> - <enumerator name="TiltPanRoll" value="0" /> - <enumerator name="TiltRollPan" value="1" /> - <enumerator name="PanTiltRoll" value="2" /> - <enumerator name="PanRollTilt" value="3" /> - <enumerator name="RollTiltPan" value="4" /> - <enumerator name="RollPanTilt" value="5" /> - </enum> - <property name="projectionType" type="ProjectionType" /> - <property name="fieldOfView" type="qreal" /> - <property name="nearPlane" type="qreal" /> - <property name="farPlane" type="qreal" /> - <property name="viewSize" type="QSizeF" /> - <property name="minViewSize" type="QSizeF" /> - <property name="screenRotation" type="int" /> - <property name="eye" type="QVector3D" /> - <property name="upVector" type="QVector3D" /> - <property name="center" type="QVector3D" /> - <property name="eyeSeparation" type="qreal" /> - <property name="motionAdjustment" type="QVector3D" /> - <property name="adjustForAspectRatio" type="bool" /> - <signal name="projectionChanged" /> - <signal name="viewChanged" /> - <method name="translateEye"> - <param name="x" type="qreal" /> - <param name="y" type="qreal" /> - <param name="z" type="qreal" /> - </method> - <method name="translateCenter"> - <param name="x" type="qreal" /> - <param name="y" type="qreal" /> - <param name="z" type="qreal" /> - </method> - <method name="tiltPanRollCenter"> - <param name="tiltAngle" type="qreal" /> - <param name="panAngle" type="qreal" /> - <param name="rollAngle" type="qreal" /> - <param name="order" type="QGLCamera.RotateOrder" /> - </method> - <method name="tiltPanRollCenter"> - <param name="tiltAngle" type="qreal" /> - <param name="panAngle" type="qreal" /> - <param name="rollAngle" type="qreal" /> - </method> - <method name="tiltPanRollEye"> - <param name="tiltAngle" type="qreal" /> - <param name="panAngle" type="qreal" /> - <param name="rollAngle" type="qreal" /> - <param name="order" type="QGLCamera.RotateOrder" /> - </method> - <method name="tiltPanRollEye"> - <param name="tiltAngle" type="qreal" /> - <param name="panAngle" type="qreal" /> - <param name="rollAngle" type="qreal" /> - </method> - </type> - <type name="QGLLightModel" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="LightModel" /> - </exports> - <enum name="Model"> - <enumerator name="OneSided" value="0" /> - <enumerator name="TwoSided" value="1" /> - </enum> - <enum name="ColorControl"> - <enumerator name="SingleColor" value="0" /> - <enumerator name="SeparateSpecularColor" value="1" /> - </enum> - <enum name="ViewerPosition"> - <enumerator name="ViewerAtInfinity" value="0" /> - <enumerator name="LocalViewer" value="1" /> - </enum> - <property name="model" type="Model" /> - <property name="colorControl" type="ColorControl" /> - <property name="viewerPosition" type="ViewerPosition" /> - <property name="ambientSceneColor" type="QColor" /> - <signal name="modelChanged" /> - <signal name="colorControlChanged" /> - <signal name="viewerPositionChanged" /> - <signal name="ambientSceneColorChanged" /> - <signal name="lightModelChanged" /> - </type> - <type name="QGLLightParameters" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="Light" /> - </exports> - <enum name="LightType"> - <enumerator name="Directional" value="0" /> - <enumerator name="Positional" value="1" /> - </enum> - <property name="type" type="LightType" /> - <property name="position" type="QVector3D" /> - <property name="direction" type="QVector3D" /> - <property name="ambientColor" type="QColor" /> - <property name="diffuseColor" type="QColor" /> - <property name="specularColor" type="QColor" /> - <property name="spotDirection" type="QVector3D" /> - <property name="spotExponent" type="qreal" /> - <property name="spotAngle" type="qreal" /> - <property name="constantAttenuation" type="qreal" /> - <property name="linearAttenuation" type="qreal" /> - <property name="quadraticAttenuation" type="qreal" /> - <signal name="positionChanged" /> - <signal name="directionChanged" /> - <signal name="ambientColorChanged" /> - <signal name="diffuseColorChanged" /> - <signal name="specularColorChanged" /> - <signal name="spotDirectionChanged" /> - <signal name="spotExponentChanged" /> - <signal name="spotAngleChanged" /> - <signal name="constantAttenuationChanged" /> - <signal name="linearAttenuationChanged" /> - <signal name="quadraticAttenuationChanged" /> - <signal name="lightChanged" /> - </type> - <type name="QGLMaterial" extends="QGLAbstractMaterial"> - <exports> - <export module="Qt3D" version="1.0" type="Material" /> - </exports> - <enum name="TextureCombineMode"> - <enumerator name="Modulate" value="0" /> - <enumerator name="Decal" value="1" /> - <enumerator name="Replace" value="2" /> - </enum> - <property name="ambientColor" type="QColor" /> - <property name="diffuseColor" type="QColor" /> - <property name="specularColor" type="QColor" /> - <property name="emittedLight" type="QColor" /> - <property name="shininess" type="qreal" /> - <property name="texture" type="QGLTexture2D" /> - <property name="textureCombineMode" type="QGLMaterial.TextureCombineMode" /> - <property name="textureUrl" type="QUrl" /> - <signal name="ambientColorChanged" /> - <signal name="diffuseColorChanged" /> - <signal name="specularColorChanged" /> - <signal name="emittedLightChanged" /> - <signal name="shininessChanged" /> - <signal name="texturesChanged" /> - </type> - <type name="QGLSceneNode" extends="QObject"> - <exports> - <export module="Qt3D" version="1.0" type="SceneNode" /> - </exports> - <property name="position" type="QVector3D" /> - <property name="x" type="qreal" /> - <property name="y" type="qreal" /> - <property name="z" type="qreal" /> - <property name="material" type="QGLMaterial" /> - <property name="backMaterial" type="QGLMaterial" /> - <signal name="updated" /> - <method name="clone" type="QGLSceneNode*"> - <param name="parent" type="QObject" /> - </method> - <method name="clone" type="QGLSceneNode*" /> - <method name="cloneNoChildren" type="QGLSceneNode*"> - <param name="parent" type="QObject" /> - </method> - <method name="cloneNoChildren" type="QGLSceneNode*" /> - <method name="allExcept" type="QGLSceneNode*"> - <param name="name" type="string" /> - <param name="parent" type="QObject" /> - </method> - <method name="allExcept" type="QGLSceneNode*"> - <param name="name" type="string" /> - </method> - <method name="only" type="QGLSceneNode*"> - <param name="name" type="string" /> - <param name="parent" type="QObject" /> - </method> - <method name="only" type="QGLSceneNode*"> - <param name="name" type="string" /> - </method> - <method name="allExcept" type="QGLSceneNode*"> - <param name="names" type="QStringList" /> - <param name="parent" type="QObject" /> - </method> - <method name="allExcept" type="QGLSceneNode*"> - <param name="names" type="QStringList" /> - </method> - <method name="only" type="QGLSceneNode*"> - <param name="names" type="QStringList" /> - <param name="parent" type="QObject" /> - </method> - <method name="only" type="QGLSceneNode*"> - <param name="names" type="QStringList" /> - </method> - </type> - <type name="QGraphicsBillboardTransform" extends="QQuickQGraphicsTransform3D"> - <exports> - <export module="Qt3D" version="1.0" type="BillboardTransform" /> - </exports> - <property name="preserveUpVector" type="bool" /> - <signal name="preserveUpVectorChanged" /> - </type> - <type name="QGraphicsLookAtTransform" extends="QQuickQGraphicsTransform3D"> - <exports> - <export module="Qt3D" version="1.0" type="LookAt" /> - </exports> - <property name="preserveUpVector" type="bool" /> - <property name="subject" type="QQuickItem3D" /> - <signal name="preserveUpVectorChanged" /> - <signal name="subjectChanged" /> - </type> - <type name="QGraphicsRotation3D" extends="QQuickQGraphicsTransform3D"> - <exports> - <export module="Qt3D" version="1.0" type="Rotation3D" /> - </exports> - <property name="origin" type="QVector3D" /> - <property name="angle" type="qreal" /> - <property name="axis" type="QVector3D" /> - <signal name="originChanged" /> - <signal name="angleChanged" /> - <signal name="axisChanged" /> - </type> - <type name="QGraphicsTranslation3D" extends="QQuickQGraphicsTransform3D"> - <exports> - <export module="Qt3D" version="1.0" type="Translation3D" /> - </exports> - <property name="translate" type="QVector3D" /> - <property name="progress" type="qreal" /> - <signal name="translateChanged" /> - <signal name="progressChanged" /> - </type> - <type name="Scale3D" extends="QGraphicsScale3D"> - <exports> - <export module="Qt3D" version="1.0" type="Scale3D" /> - </exports> - <property name="scale" type="QVariant" /> - <signal name="variantScaleChanged" /> - </type> - <type name="ShaderProgram" extends="QQuickEffect"> - <exports> - <export module="Qt3D" version="1.0" type="ShaderProgram" /> - </exports> - <property name="vertexShader" type="string" /> - <property name="fragmentShader" type="string" /> - <signal name="finishedLoading" /> - <signal name="shaderChanged" /> - <method name="markAllPropertiesDirty" /> - <method name="markPropertyDirty"> - <param name="property" type="int" /> - </method> - </type> - <type name="Viewport" defaultProperty="data" extends="QQuickItem"> - <exports> - <export module="Qt3D" version="1.0" type="Viewport" /> - </exports> - <property name="picking" type="bool" /> - <property name="showPicking" type="bool" /> - <property name="navigation" type="bool" /> - <property name="fovzoom" type="bool" /> - <property name="blending" type="bool" /> - <property name="camera" type="QGLCamera" /> - <property name="light" type="QGLLightParameters" /> - <property name="lightModel" type="QGLLightModel" /> - <signal name="viewportChanged" /> - <method name="update3d" /> - <method name="objectForPoint" type="QObject*"> - <param name="x" type="qreal" /> - <param name="y" type="qreal" /> - </method> - </type> -</module> diff --git a/src/imports/threed/threed.pro b/src/imports/threed/threed.pro index 4163eaa4b..5793fa4ae 100644 --- a/src/imports/threed/threed.pro +++ b/src/imports/threed/threed.pro @@ -23,11 +23,7 @@ HEADERS += \ skybox.h \ billboarditem3d.h -QML_FILES += \ - library.xml - OTHER_FILES += \ - README.plugins_types \ - README.library_xml + README.plugins_types load(qml_plugin) diff --git a/src/quick3d/README.library_xml b/src/quick3d/README.library_xml deleted file mode 100644 index 2f46d66dd..000000000 --- a/src/quick3d/README.library_xml +++ /dev/null @@ -1,15 +0,0 @@ -The library.xml file is required to get syntax highlighting of Qt3D.Shapes -plugin items in Qt Creator < version 2.2. - -The library.xml file is installed into the imports/Qt3D.Shapes tree along with -the plugin and the qmldir file. - -When any of the elements - property names, class names or other exports -- in the Qt3D.Shapes plugin are changed this file will need to be regenerated. - -To generate the library.xml file see the scripts/README file for a -description of how to use the filter-qmldump.pl script. - -This is a less-than-optimal solution but as syntax discovery improves -in Qt Creator better solutions should become available at which time -this temporary script and syntax file may be deprecated. diff --git a/src/quick3d/library.xml b/src/quick3d/library.xml deleted file mode 100644 index 6ab8794fd..000000000 --- a/src/quick3d/library.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<module> - <type name="Capsule" defaultProperty="data" extends="QQuickItem3D"> - <exports> - <export module="Qt3D.Shapes" version="1.0" type="Capsule" /> - </exports> - <property name="radius" type="float" /> - <property name="length" type="float" /> - <property name="levelOfDetail" type="int" /> - <signal name="radiusChanged" /> - <signal name="lengthChanged" /> - <signal name="levelOfDetailChanged" /> - </type> - <type name="Cylinder" defaultProperty="data" extends="QQuickItem3D"> - <exports> - <export module="Qt3D.Shapes" version="1.0" type="Cylinder" /> - </exports> - <property name="radius" type="float" /> - <property name="length" type="float" /> - <property name="levelOfDetail" type="int" /> - <signal name="radiusChanged" /> - <signal name="lengthChanged" /> - <signal name="levelOfDetailChanged" /> - </type> - <type name="Line" defaultProperty="data" extends="QQuickItem3D"> - <exports> - <export module="Qt3D.Shapes" version="1.0" type="Line" /> - </exports> - <property name="width" type="float" /> - <property name="vertices" type="QVariant" /> - <signal name="verticesChanged" /> - <signal name="widthChanged" /> - </type> - <type name="Point" defaultProperty="data" extends="QQuickItem3D"> - <exports> - <export module="Qt3D.Shapes" version="1.0" type="Point" /> - </exports> - <property name="pointSize" type="float" /> - <property name="vertices" type="QVariant" /> - <signal name="verticesChanged" /> - <signal name="pointSizeChanged" /> - </type> - <type name="Sphere" defaultProperty="data" extends="QQuickItem3D"> - <exports> - <export module="Qt3D.Shapes" version="1.0" type="Sphere" /> - </exports> - <property name="radius" type="float" /> - <property name="levelOfDetail" type="int" /> - <property name="axis" type="Qt.Axis" /> - <signal name="radiusChanged" /> - <signal name="levelOfDetailChanged" /> - <signal name="axisChanged" /> - </type> -</module> diff --git a/src/quick3d/quick3d.pro b/src/quick3d/quick3d.pro index 8d83c465c..b502dc49b 100644 --- a/src/quick3d/quick3d.pro +++ b/src/quick3d/quick3d.pro @@ -48,12 +48,10 @@ QML_FILES = \ QML_INFRA_FILES += \ $$QML_FILES \ qmldir \ - library.xml \ plugins.qmltypes \ cube.obj \ quad.obj \ teapot.bez - # see the file README.library_xml for more on library.xml copyqmlinfra_install.files = $$QML_INFRA_FILES copyqmlinfra_install.path = $$[QT_INSTALL_IMPORTS]/Qt3D/Shapes @@ -67,7 +65,6 @@ copyqmlinfra.variable_out = PRE_TARGETDEPS QMAKE_EXTRA_COMPILERS += copyqmlinfra OTHER_FILES += \ - README.plugins_types \ - README.library_xml + README.plugins_types OTHER_FILES += $$QML_FILES diff --git a/src/scripts/README b/src/scripts/README index aa49d2823..15fef86b7 100644 --- a/src/scripts/README +++ b/src/scripts/README @@ -1,39 +1 @@ This directory contains miscellaneous utility scripts for use with Qt3D. - -filter-qmldump.pl -================= - -Use this script to regenerate the library.xml files after making changes -to the properties or structure of the QML bindings. - -It expects a file called "library.xml" to be in the current directory, and -requires a single command line argument, which is a string matching the -module name to filter on. - -Typical use: - -1) Build and install Qt3D into a given Qt at $QTDIR -2) Ensure qmldump is available in your $PATH (see below) -3) Run qmldump to generate the library.xml file: - qmldump $QTDIR/imports Qt3D > library.xml -4) Filter the output to just include the Qt3D module: - filter-qmldump.pl Qt3D > library-qt3d.xml - -Repeat 3) & 4) for the Shapes library: - qmldump $QTDIR/imports/Shapes Qt3D.Shapes > library.xml - filter-qmldump.pl Qt3D > library-qt3d.xml - -To generate the plugins.qmltypes, you first need a qmldump binary generated from -sources shipped with Qt Creator version less than 2.2. On Mac these are inside -the app bundle, other platforms vary. If all else fails get the sources from the -Qt Creator repo. - -To build qmldump you need access to private headers, so therefore it must be -built against a source build of Qt. On Mac it is helpful to build qmldump with -"qmake CONFIG-=app_bundle" so that you get a regular command-line binary. - -In the above note that $QTDIR points to the root of the Qt where Qt3D is installed. - -Check the contents of library.xml above and ensure it is XML - not yaml. If you -see some curly braces { } - then the version of qmldump source you used was for -Qt Creator > 2.2 - you somehow have the later version qmldump sources. diff --git a/src/scripts/filter-qmldump.pl b/src/scripts/filter-qmldump.pl deleted file mode 100755 index ca26efd33..000000000 --- a/src/scripts/filter-qmldump.pl +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/perl -############################################################################ -## -## Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). -## Contact: http://www.qt-project.org/legal -## -## This file is part of the Qt3D module of the Qt Toolkit. -## -## $QT_BEGIN_LICENSE:LGPL$ -## Commercial License Usage -## Licensees holding valid commercial Qt licenses may use this file in -## accordance with the commercial license agreement provided with the -## Software or, alternatively, in accordance with the terms contained in -## a written agreement between you and Digia. For licensing terms and -## conditions see http://qt.digia.com/licensing. For further information -## use the contact form at http://qt.digia.com/contact-us. -## -## GNU Lesser General Public License Usage -## Alternatively, this file may be used under the terms of the GNU Lesser -## General Public License version 2.1 as published by the Free Software -## Foundation and appearing in the file LICENSE.LGPL included in the -## packaging of this file. Please review the following information to -## ensure the GNU Lesser General Public License version 2.1 requirements -## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -## -## In addition, as a special exception, Digia gives you certain additional -## rights. These rights are described in the Digia Qt LGPL Exception -## version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -## -## GNU General Public License Usage -## Alternatively, this file may be used under the terms of the GNU -## General Public License version 3.0 as published by the Free Software -## Foundation and appearing in the file LICENSE.GPL included in the -## packaging of this file. Please review the following information to -## ensure the GNU General Public License version 3.0 requirements will be -## met: http://www.gnu.org/copyleft/gpl.html. -## -## -## $QT_END_LICENSE$ -## -############################################################################ - -use strict; -use warnings; - -use XML::XPath; -use XML::XPath::XMLParser; - -my $mod = shift or die "Usage: filter-qmldump.pl <module name>\n"; - -warn "Filtering for modules in $mod\n"; - -my $xp = XML::XPath->new(filename => 'library.xml'); - -my $nodeset = $xp->find("//type/exports/export[\@module=\'$mod\']/../.."); - -print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; -print "<module>\n"; - -foreach my $node ($nodeset->get_nodelist) -{ - print " " . XML::XPath::XMLParser::as_string($node) . "\n"; -} - -print "<\\module>\n"; |