2022-07-05 12:02:29 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-26 08:37:37 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 12:02:29 +00:00
|
|
|
|
2021-11-23 18:00:29 +00:00
|
|
|
set(cpp_sources
|
2022-04-01 12:21:02 +00:00
|
|
|
ambiguous.h
|
2021-12-08 18:11:37 +00:00
|
|
|
birthdayparty.cpp birthdayparty.h
|
2021-11-23 18:00:29 +00:00
|
|
|
cppbaseclass.h
|
2022-03-01 10:37:53 +00:00
|
|
|
dynamicmeta.h
|
2022-08-23 08:42:35 +00:00
|
|
|
gadgetwithenum.h
|
2022-04-22 11:36:23 +00:00
|
|
|
invisible.h
|
2022-11-23 16:20:47 +00:00
|
|
|
multiforeign.h
|
2021-11-23 18:00:29 +00:00
|
|
|
objectwithmethod.h
|
2021-12-08 18:11:37 +00:00
|
|
|
person.cpp person.h
|
2022-03-17 11:34:32 +00:00
|
|
|
state.h
|
2021-12-08 18:11:37 +00:00
|
|
|
theme.cpp theme.h
|
|
|
|
timelinetheme.cpp timelinetheme.h
|
2022-09-23 14:43:58 +00:00
|
|
|
withlength.h
|
2021-11-23 18:00:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(qml_files
|
|
|
|
AccessModelMethodsFromOutside.qml
|
2022-04-28 12:11:51 +00:00
|
|
|
BadType.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
BaseMember.qml
|
|
|
|
BindingExpression.qml
|
2021-12-09 16:03:25 +00:00
|
|
|
Cycle1.qml
|
|
|
|
Cycle2.qml
|
|
|
|
Cycle3.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
Dummy.qml
|
|
|
|
Enums.qml
|
2021-12-17 10:21:35 +00:00
|
|
|
Foozle.qml
|
2021-12-07 13:04:12 +00:00
|
|
|
Loopy.qml
|
2022-04-28 12:11:51 +00:00
|
|
|
OkType.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
Panel.qml
|
|
|
|
ProgressBar/Keyframe.qml
|
|
|
|
ProgressBar/KeyframeGroup.qml
|
|
|
|
ProgressBar/ProgressBar.ui.qml
|
|
|
|
ProgressBar/Root.qml
|
|
|
|
ProgressBar/Timeline.qml
|
|
|
|
ProgressBar/TimelineAnimation.qml
|
|
|
|
RootWithoutId.qml
|
2021-12-02 12:55:16 +00:00
|
|
|
SelectionRectangle.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
Test.qml
|
|
|
|
TestCase.qml
|
2022-03-23 09:04:22 +00:00
|
|
|
WindowDerived.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
aliasLookup.qml
|
2022-04-01 12:21:02 +00:00
|
|
|
ambiguous1/Ambiguous.qml
|
|
|
|
ambiguous2/Ambiguous.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
anchorsFill.qml
|
2022-06-29 12:01:22 +00:00
|
|
|
argumentConversion.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
array.qml
|
|
|
|
asCast.qml
|
|
|
|
attachedBaseEnum.qml
|
2022-07-04 15:31:22 +00:00
|
|
|
badSequence.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
bindToValueType.qml
|
2022-02-17 16:23:10 +00:00
|
|
|
blockComments.qml
|
2022-05-13 13:22:07 +00:00
|
|
|
boundComponents.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
callContextPropertyLookupResult.qml
|
2022-11-15 15:34:27 +00:00
|
|
|
callWithSpread.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
childobject.qml
|
|
|
|
colorAsVariant.qml
|
|
|
|
colorString.qml
|
2022-11-15 09:18:37 +00:00
|
|
|
consoleObject.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
componentReturnType.qml
|
|
|
|
compositeTypeMethod.qml
|
|
|
|
compositesingleton.qml
|
|
|
|
construct.qml
|
|
|
|
contextParam.qml
|
2022-06-24 08:50:51 +00:00
|
|
|
conversionDecrement.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
conversions.qml
|
|
|
|
conversions2.qml
|
|
|
|
curlygrouped.qml
|
2021-12-09 16:03:25 +00:00
|
|
|
cycleHead.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
deadShoeSize.qml
|
2022-02-18 11:31:54 +00:00
|
|
|
deadStoreLoop.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
dialog.qml
|
|
|
|
dynamicscene.qml
|
|
|
|
enumInvalid.qml
|
2022-07-04 15:00:15 +00:00
|
|
|
enumLookup.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
enumScope.qml
|
|
|
|
enumsInOtherObject.qml
|
|
|
|
enumsUser.qml
|
|
|
|
equalsUndefined.qml
|
|
|
|
excessiveParameters.qml
|
|
|
|
extendedTypes.qml
|
|
|
|
failures.qml
|
2022-03-01 10:37:53 +00:00
|
|
|
fallbacklookups.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
fileDialog.qml
|
2022-04-04 14:54:32 +00:00
|
|
|
fromBoolValue.qml
|
2022-02-17 16:46:33 +00:00
|
|
|
functionLookup.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
funcWithParams.qml
|
2021-12-01 18:05:51 +00:00
|
|
|
functionReturningVoid.qml
|
2022-02-22 12:40:09 +00:00
|
|
|
functionTakingVar.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
globals.qml
|
|
|
|
idAccess.qml
|
|
|
|
immediateQuit.qml
|
|
|
|
imports/QmlBench/Globals.qml
|
|
|
|
importsFromImportPath.qml
|
2022-02-17 09:02:51 +00:00
|
|
|
infinities.qml
|
2022-01-21 12:14:20 +00:00
|
|
|
invisibleBase.qml
|
2022-04-22 11:36:23 +00:00
|
|
|
invisibleTypes.qml
|
2022-06-01 09:42:33 +00:00
|
|
|
invisibleListElementType.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
intEnumCompare.qml
|
|
|
|
intOverflow.qml
|
|
|
|
interactive.qml
|
|
|
|
interceptor.qml
|
2022-02-25 10:01:17 +00:00
|
|
|
isnan.qml
|
2022-06-20 12:44:35 +00:00
|
|
|
javaScriptArgument.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
jsMathObject.qml
|
|
|
|
jsimport.qml
|
|
|
|
jsmoduleimport.qml
|
|
|
|
layouts.qml
|
|
|
|
library.js
|
2022-11-10 13:50:18 +00:00
|
|
|
letAndConst.qml
|
2022-10-19 12:35:24 +00:00
|
|
|
listAsArgument.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
listIndices.qml
|
2022-07-25 12:24:19 +00:00
|
|
|
listPropertyAsModel.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
listlength.qml
|
|
|
|
math.qml
|
2022-07-29 14:27:57 +00:00
|
|
|
mathOperations.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
methods.qml
|
|
|
|
modulePrefix.qml
|
2022-03-01 07:44:28 +00:00
|
|
|
moveRegVoid.qml
|
2022-11-23 16:20:47 +00:00
|
|
|
multiforeign.qml
|
2021-12-07 13:04:12 +00:00
|
|
|
noBindingLoop.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
noQQmlData.qml
|
|
|
|
nonNotifyable.qml
|
|
|
|
noscope.qml
|
2022-02-04 14:49:39 +00:00
|
|
|
notEqualsInt.qml
|
2022-07-29 14:19:21 +00:00
|
|
|
notNotString.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
nullAccess.qml
|
2022-11-18 10:40:10 +00:00
|
|
|
nullComparison.qml
|
2022-02-16 09:47:04 +00:00
|
|
|
objectInVar.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
outOfBounds.qml
|
|
|
|
overriddenMember.qml
|
|
|
|
ownProperty.qml
|
|
|
|
page.qml
|
|
|
|
parentProp.qml
|
2022-01-17 10:40:44 +00:00
|
|
|
popContextAfterRet.qml
|
2022-03-17 11:34:32 +00:00
|
|
|
prefixedMetaType.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
pressAndHoldButton.qml
|
|
|
|
registerelimination.qml
|
2022-06-30 08:33:26 +00:00
|
|
|
registerPropagation.qml
|
2021-12-17 13:23:55 +00:00
|
|
|
revisions.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
scopeVsObject.qml
|
|
|
|
script.js
|
|
|
|
script.mjs
|
|
|
|
shared/Slider.qml
|
|
|
|
shifts.qml
|
|
|
|
signal.qml
|
|
|
|
signalHandler.qml
|
2022-11-09 16:39:23 +00:00
|
|
|
signalIndexMismatch.qml
|
2022-09-23 14:43:58 +00:00
|
|
|
signatureIgnored.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
specificParent.qml
|
2022-06-03 08:51:26 +00:00
|
|
|
stringArg.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
stringLength.qml
|
2022-07-18 12:16:11 +00:00
|
|
|
stringToByteArray.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
testlogger.js
|
|
|
|
text.qml
|
2021-12-08 20:45:21 +00:00
|
|
|
themerbad.qml
|
2021-12-08 18:11:37 +00:00
|
|
|
themergood.qml
|
2022-06-20 09:19:58 +00:00
|
|
|
throwObjectName.qml
|
2022-06-03 13:12:10 +00:00
|
|
|
toString.qml
|
2022-05-25 13:46:13 +00:00
|
|
|
translation.qml
|
2022-06-15 12:16:11 +00:00
|
|
|
trivialSignalHandler.qml
|
2022-10-12 09:28:30 +00:00
|
|
|
typePropagationLoop.qml
|
2022-06-09 08:49:03 +00:00
|
|
|
typePropertyClash.qml
|
2022-02-03 13:45:49 +00:00
|
|
|
typedArray.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
undefinedResets.qml
|
2021-12-17 10:21:35 +00:00
|
|
|
unknownAttached.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
unknownParameter.qml
|
2022-06-27 10:54:47 +00:00
|
|
|
unstoredUndefined.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
unusedAttached.qml
|
|
|
|
urlString.qml
|
2022-05-17 08:50:00 +00:00
|
|
|
valueTypeLists.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
valueTypeProperty.qml
|
2022-01-05 12:53:20 +00:00
|
|
|
variantlist.qml
|
2022-09-30 07:23:20 +00:00
|
|
|
versionmismatch.qml
|
2021-11-23 18:00:29 +00:00
|
|
|
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
|
2022-09-30 07:23:20 +00:00
|
|
|
VERSION 1.5
|
2021-11-23 18:00:29 +00:00
|
|
|
URI TestTypes
|
|
|
|
IMPORT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/imports/"
|
2022-05-31 08:38:07 +00:00
|
|
|
AUTO_RESOURCE_PREFIX
|
2022-01-25 10:05:51 +00:00
|
|
|
DEPENDENCIES
|
|
|
|
QtQuick
|
|
|
|
QtQuick.Templates
|
|
|
|
QtQuick.Shapes
|
2021-11-23 18:00:29 +00:00
|
|
|
SOURCES
|
|
|
|
${cpp_sources}
|
|
|
|
QML_FILES
|
|
|
|
${qml_files}
|
|
|
|
RESOURCES
|
|
|
|
${resource_files}
|
|
|
|
OUTPUT_DIRECTORY TestTypes # Make sure tst_qmlcachegen doesn't see our output
|
|
|
|
)
|
2021-12-06 12:39:35 +00:00
|
|
|
|
2022-01-25 10:05:51 +00:00
|
|
|
add_dependencies(codegen_test_module Qt::Quick Qt::QuickTemplates2 Qt::QuickShapesPrivate)
|
|
|
|
|
2021-12-06 12:39:35 +00:00
|
|
|
qt_autogen_tools_initial_setup(codegen_test_moduleplugin)
|