1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
set(cpp_sources
ambiguous.h
birthdayparty.cpp birthdayparty.h
cppbaseclass.h
dynamicmeta.h
gadgetwithenum.h
invisible.h
objectwithmethod.h
person.cpp person.h
state.h
theme.cpp theme.h
timelinetheme.cpp timelinetheme.h
)
set(qml_files
AccessModelMethodsFromOutside.qml
BadType.qml
BaseMember.qml
BindingExpression.qml
Cycle1.qml
Cycle2.qml
Cycle3.qml
Dummy.qml
Enums.qml
Foozle.qml
Loopy.qml
OkType.qml
Panel.qml
ProgressBar/Keyframe.qml
ProgressBar/KeyframeGroup.qml
ProgressBar/ProgressBar.ui.qml
ProgressBar/Root.qml
ProgressBar/Timeline.qml
ProgressBar/TimelineAnimation.qml
RootWithoutId.qml
SelectionRectangle.qml
Test.qml
TestCase.qml
WindowDerived.qml
aliasLookup.qml
ambiguous1/Ambiguous.qml
ambiguous2/Ambiguous.qml
anchorsFill.qml
argumentConversion.qml
array.qml
asCast.qml
attachedBaseEnum.qml
badSequence.qml
bindToValueType.qml
blockComments.qml
boundComponents.qml
callContextPropertyLookupResult.qml
childobject.qml
colorAsVariant.qml
colorString.qml
componentReturnType.qml
compositeTypeMethod.qml
compositesingleton.qml
construct.qml
contextParam.qml
conversionDecrement.qml
conversions.qml
conversions2.qml
curlygrouped.qml
cycleHead.qml
deadShoeSize.qml
deadStoreLoop.qml
dialog.qml
dynamicscene.qml
enumInvalid.qml
enumLookup.qml
enumScope.qml
enumsInOtherObject.qml
enumsUser.qml
equalsUndefined.qml
excessiveParameters.qml
extendedTypes.qml
failures.qml
fallbacklookups.qml
fileDialog.qml
fromBoolValue.qml
functionLookup.qml
funcWithParams.qml
functionReturningVoid.qml
functionTakingVar.qml
globals.qml
idAccess.qml
immediateQuit.qml
imports/QmlBench/Globals.qml
importsFromImportPath.qml
infinities.qml
invisibleBase.qml
invisibleTypes.qml
invisibleListElementType.qml
intEnumCompare.qml
intOverflow.qml
interactive.qml
interceptor.qml
isnan.qml
javaScriptArgument.qml
jsMathObject.qml
jsimport.qml
jsmoduleimport.qml
layouts.qml
library.js
listIndices.qml
listPropertyAsModel.qml
listlength.qml
math.qml
methods.qml
modulePrefix.qml
moveRegVoid.qml
noBindingLoop.qml
noQQmlData.qml
nonNotifyable.qml
noscope.qml
notEqualsInt.qml
notNotString.qml
nullAccess.qml
nullComparison.qml
objectInVar.qml
outOfBounds.qml
overriddenMember.qml
ownProperty.qml
page.qml
parentProp.qml
popContextAfterRet.qml
prefixedMetaType.qml
pressAndHoldButton.qml
registerelimination.qml
registerPropagation.qml
revisions.qml
scopeVsObject.qml
script.js
script.mjs
shared/Slider.qml
shifts.qml
signal.qml
signalHandler.qml
signalIndexMismatch.qml
specificParent.qml
stringLength.qml
stringToByteArray.qml
testlogger.js
text.qml
themerbad.qml
themergood.qml
throwObjectName.qml
toString.qml
typePropagationLoop.qml
typePropertyClash.qml
typedArray.qml
undefinedResets.qml
unknownAttached.qml
unknownParameter.qml
unstoredUndefined.qml
unusedAttached.qml
urlString.qml
valueTypeLists.qml
valueTypeProperty.qml
variantlist.qml
versionmismatch.qml
voidfunction.qml
)
set(resource_files
ProgressBar/built-with-Qt_Large.png
imports/QmlBench/qmldir
)
set_source_files_properties("shared/Slider.qml"
PROPERTIES QT_RESOURCE_ALIAS "Slider.qml"
)
qt_add_library(codegen_test_module STATIC)
qt_autogen_tools_initial_setup(codegen_test_module)
set_target_properties(codegen_test_module PROPERTIES
# We really want qmlcachegen here, even if qmlsc is available
QT_QMLCACHEGEN_EXECUTABLE qmlcachegen
)
qt6_add_qml_module(codegen_test_module
VERSION 1.5
URI TestTypes
IMPORT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/imports/"
DEPENDENCIES
QtQuick
QtQuick.Templates
QtQuick.Shapes
SOURCES
${cpp_sources}
QML_FILES
${qml_files}
RESOURCES
${resource_files}
OUTPUT_DIRECTORY TestTypes # Make sure tst_qmlcachegen doesn't see our output
)
add_dependencies(codegen_test_module Qt::Quick Qt::QuickTemplates2 Qt::QuickShapesPrivate)
qt_autogen_tools_initial_setup(codegen_test_moduleplugin)
|