2016-05-12 16:27:12 +02:00
|
|
|
import qbs
|
|
|
|
|
import QtcFunctions
|
|
|
|
|
|
|
|
|
|
QtcTool {
|
|
|
|
|
name: "qml2puppet"
|
2016-07-28 11:29:06 +02:00
|
|
|
installDir: qbs.targetOS.contains("macos")
|
2016-05-17 10:50:51 +02:00
|
|
|
? qtc.ide_libexec_path + "/qmldesigner" : qtc.ide_libexec_path
|
2016-05-12 16:27:12 +02:00
|
|
|
|
2016-10-07 10:00:38 +02:00
|
|
|
Depends { name: "Utils" }
|
2016-05-12 16:27:12 +02:00
|
|
|
Depends { name: "bundle" }
|
|
|
|
|
Depends {
|
|
|
|
|
name: "Qt"
|
|
|
|
|
submodules: [
|
|
|
|
|
"core-private", "gui-private", "network", "qml-private", "quick", "quick-private",
|
|
|
|
|
"widgets"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
cpp.defines: base.filter(function(d) { return d != "QT_CREATOR"; })
|
|
|
|
|
Properties {
|
|
|
|
|
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("bsd")
|
|
|
|
|
cpp.dynamicLibraries: base.concat("rt")
|
|
|
|
|
}
|
2017-08-02 10:03:31 +02:00
|
|
|
Properties {
|
|
|
|
|
condition: qbs.targetOS.contains("darwin")
|
|
|
|
|
bundle.embedInfoPlist: true
|
|
|
|
|
}
|
2016-05-12 16:27:12 +02:00
|
|
|
|
|
|
|
|
property path puppetDir: "../../../share/qtcreator/qml/qmlpuppet"
|
|
|
|
|
cpp.includePaths: base.concat([
|
|
|
|
|
puppetDir + "/commands",
|
|
|
|
|
puppetDir + "/container",
|
|
|
|
|
puppetDir + "/instances",
|
|
|
|
|
puppetDir + "/interfaces",
|
|
|
|
|
puppetDir + "/types",
|
|
|
|
|
puppetDir + "/qml2puppet/instances",
|
|
|
|
|
puppetDir + "/qmlprivategate",
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
// TODO: Put into static lib and share with qmldesigner
|
|
|
|
|
Group {
|
|
|
|
|
name: "puppet sources"
|
|
|
|
|
prefix: puppetDir + '/'
|
|
|
|
|
files: [
|
|
|
|
|
"commands/changeauxiliarycommand.cpp",
|
|
|
|
|
"commands/changeauxiliarycommand.h",
|
|
|
|
|
"commands/changebindingscommand.cpp",
|
|
|
|
|
"commands/changebindingscommand.h",
|
|
|
|
|
"commands/changefileurlcommand.cpp",
|
|
|
|
|
"commands/changefileurlcommand.h",
|
|
|
|
|
"commands/changeidscommand.cpp",
|
|
|
|
|
"commands/changeidscommand.h",
|
|
|
|
|
"commands/changenodesourcecommand.cpp",
|
|
|
|
|
"commands/changenodesourcecommand.h",
|
|
|
|
|
"commands/changestatecommand.cpp",
|
|
|
|
|
"commands/changestatecommand.h",
|
|
|
|
|
"commands/changevaluescommand.cpp",
|
|
|
|
|
"commands/changevaluescommand.h",
|
|
|
|
|
"commands/childrenchangedcommand.cpp",
|
|
|
|
|
"commands/childrenchangedcommand.h",
|
|
|
|
|
"commands/clearscenecommand.cpp",
|
|
|
|
|
"commands/clearscenecommand.h",
|
|
|
|
|
"commands/completecomponentcommand.cpp",
|
|
|
|
|
"commands/completecomponentcommand.h",
|
|
|
|
|
"commands/componentcompletedcommand.cpp",
|
|
|
|
|
"commands/componentcompletedcommand.h",
|
|
|
|
|
"commands/createinstancescommand.cpp",
|
|
|
|
|
"commands/createinstancescommand.h",
|
|
|
|
|
"commands/createscenecommand.cpp",
|
|
|
|
|
"commands/createscenecommand.h",
|
|
|
|
|
"commands/debugoutputcommand.cpp",
|
|
|
|
|
"commands/debugoutputcommand.h",
|
|
|
|
|
"commands/endpuppetcommand.cpp",
|
|
|
|
|
"commands/endpuppetcommand.h",
|
|
|
|
|
"commands/informationchangedcommand.cpp",
|
|
|
|
|
"commands/informationchangedcommand.h",
|
|
|
|
|
"commands/pixmapchangedcommand.cpp",
|
|
|
|
|
"commands/pixmapchangedcommand.h",
|
|
|
|
|
"commands/puppetalivecommand.cpp",
|
|
|
|
|
"commands/puppetalivecommand.h",
|
|
|
|
|
"commands/removeinstancescommand.cpp",
|
|
|
|
|
"commands/removeinstancescommand.h",
|
|
|
|
|
"commands/removepropertiescommand.cpp",
|
|
|
|
|
"commands/removepropertiescommand.h",
|
|
|
|
|
"commands/removesharedmemorycommand.cpp",
|
|
|
|
|
"commands/removesharedmemorycommand.h",
|
|
|
|
|
"commands/reparentinstancescommand.cpp",
|
|
|
|
|
"commands/reparentinstancescommand.h",
|
|
|
|
|
"commands/statepreviewimagechangedcommand.cpp",
|
|
|
|
|
"commands/statepreviewimagechangedcommand.h",
|
|
|
|
|
"commands/synchronizecommand.cpp",
|
|
|
|
|
"commands/synchronizecommand.h",
|
|
|
|
|
"commands/tokencommand.cpp",
|
|
|
|
|
"commands/tokencommand.h",
|
|
|
|
|
"commands/valueschangedcommand.cpp",
|
|
|
|
|
"commands/valueschangedcommand.h",
|
2019-10-17 13:51:57 +02:00
|
|
|
"commands/changeselectioncommand.cpp",
|
|
|
|
|
"commands/changeselectioncommand.h",
|
2019-11-01 10:51:09 +02:00
|
|
|
"commands/drop3dlibraryitemcommand.cpp",
|
|
|
|
|
"commands/drop3dlibraryitemcommand.h",
|
2019-12-11 21:29:10 +02:00
|
|
|
"commands/update3dviewstatecommand.cpp",
|
|
|
|
|
"commands/update3dviewstatecommand.h",
|
|
|
|
|
"commands/enable3dviewcommand.cpp",
|
|
|
|
|
"commands/enable3dviewcommand.h",
|
2016-05-12 16:27:12 +02:00
|
|
|
"container/addimportcontainer.cpp",
|
|
|
|
|
"container/addimportcontainer.h",
|
|
|
|
|
"container/idcontainer.cpp",
|
|
|
|
|
"container/idcontainer.h",
|
|
|
|
|
"container/imagecontainer.cpp",
|
|
|
|
|
"container/imagecontainer.h",
|
|
|
|
|
"container/informationcontainer.cpp",
|
|
|
|
|
"container/informationcontainer.h",
|
|
|
|
|
"container/instancecontainer.cpp",
|
|
|
|
|
"container/instancecontainer.h",
|
2016-10-04 17:25:38 +02:00
|
|
|
"container/mockuptypecontainer.cpp",
|
|
|
|
|
"container/mockuptypecontainer.h",
|
2016-05-12 16:27:12 +02:00
|
|
|
"container/propertyabstractcontainer.cpp",
|
|
|
|
|
"container/propertyabstractcontainer.h",
|
|
|
|
|
"container/propertybindingcontainer.cpp",
|
|
|
|
|
"container/propertybindingcontainer.h",
|
|
|
|
|
"container/propertyvaluecontainer.cpp",
|
|
|
|
|
"container/propertyvaluecontainer.h",
|
|
|
|
|
"container/reparentcontainer.cpp",
|
|
|
|
|
"container/reparentcontainer.h",
|
|
|
|
|
"container/sharedmemory.h",
|
|
|
|
|
"instances/nodeinstanceclientproxy.cpp",
|
|
|
|
|
"instances/nodeinstanceclientproxy.h",
|
|
|
|
|
"interfaces/commondefines.h",
|
|
|
|
|
"interfaces/nodeinstanceclientinterface.h",
|
|
|
|
|
"interfaces/nodeinstanceserverinterface.cpp",
|
|
|
|
|
"interfaces/nodeinstanceserverinterface.h",
|
|
|
|
|
"qmlprivategate/qmlprivategate.h",
|
|
|
|
|
"types/enumeration.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
name: "SharedMemory (Unix)"
|
|
|
|
|
condition: qbs.targetOS.contains("unix")
|
|
|
|
|
prefix: puppetDir + "/container/"
|
|
|
|
|
files: ["sharedmemory_unix.cpp"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
name: "SharedMemory (Generic)"
|
|
|
|
|
condition: !qbs.targetOS.contains("unix")
|
|
|
|
|
prefix: puppetDir + "/container/"
|
|
|
|
|
files: ["sharedmemory_qt.cpp"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
name: "puppet2 sources"
|
|
|
|
|
prefix: puppetDir + "/qml2puppet/"
|
|
|
|
|
files: [
|
|
|
|
|
"../qmlpuppet.qrc",
|
2016-05-17 16:34:31 +02:00
|
|
|
"Info.plist",
|
2016-05-12 16:27:12 +02:00
|
|
|
"instances/anchorchangesnodeinstance.cpp",
|
|
|
|
|
"instances/anchorchangesnodeinstance.h",
|
|
|
|
|
"instances/behaviornodeinstance.cpp",
|
|
|
|
|
"instances/behaviornodeinstance.h",
|
|
|
|
|
"instances/childrenchangeeventfilter.cpp",
|
|
|
|
|
"instances/childrenchangeeventfilter.h",
|
|
|
|
|
"instances/componentnodeinstance.cpp",
|
|
|
|
|
"instances/componentnodeinstance.h",
|
|
|
|
|
"instances/dummycontextobject.cpp",
|
|
|
|
|
"instances/dummycontextobject.h",
|
|
|
|
|
"instances/dummynodeinstance.cpp",
|
|
|
|
|
"instances/dummynodeinstance.h",
|
|
|
|
|
"instances/layoutnodeinstance.cpp",
|
|
|
|
|
"instances/layoutnodeinstance.h",
|
|
|
|
|
"instances/nodeinstanceserver.cpp",
|
|
|
|
|
"instances/nodeinstanceserver.h",
|
|
|
|
|
"instances/nodeinstancesignalspy.cpp",
|
|
|
|
|
"instances/nodeinstancesignalspy.h",
|
|
|
|
|
"instances/objectnodeinstance.cpp",
|
|
|
|
|
"instances/objectnodeinstance.h",
|
|
|
|
|
"instances/positionernodeinstance.cpp",
|
|
|
|
|
"instances/positionernodeinstance.h",
|
|
|
|
|
"instances/quickitemnodeinstance.cpp",
|
|
|
|
|
"instances/quickitemnodeinstance.h",
|
|
|
|
|
"instances/qmlpropertychangesnodeinstance.cpp",
|
|
|
|
|
"instances/qmlpropertychangesnodeinstance.h",
|
|
|
|
|
"instances/qmlstatenodeinstance.cpp",
|
|
|
|
|
"instances/qmlstatenodeinstance.h",
|
2019-10-17 18:27:57 +02:00
|
|
|
"instances/quick3dnodeinstance.cpp",
|
|
|
|
|
"instances/quick3dnodeinstance.h",
|
2016-05-12 16:27:12 +02:00
|
|
|
"instances/qmltransitionnodeinstance.cpp",
|
|
|
|
|
"instances/qmltransitionnodeinstance.h",
|
2018-08-01 11:25:24 +02:00
|
|
|
"instances/qt3dpresentationnodeinstance.cpp",
|
2018-08-01 11:51:02 +02:00
|
|
|
"instances/qt3dpresentationnodeinstance.h",
|
2016-05-12 16:27:12 +02:00
|
|
|
"instances/qt5informationnodeinstanceserver.cpp",
|
|
|
|
|
"instances/qt5informationnodeinstanceserver.h",
|
|
|
|
|
"instances/qt5nodeinstanceclientproxy.cpp",
|
|
|
|
|
"instances/qt5nodeinstanceclientproxy.h",
|
|
|
|
|
"instances/qt5nodeinstanceserver.cpp",
|
|
|
|
|
"instances/qt5nodeinstanceserver.h",
|
|
|
|
|
"instances/qt5previewnodeinstanceserver.cpp",
|
|
|
|
|
"instances/qt5previewnodeinstanceserver.h",
|
|
|
|
|
"instances/qt5rendernodeinstanceserver.cpp",
|
|
|
|
|
"instances/qt5rendernodeinstanceserver.h",
|
|
|
|
|
"instances/qt5testnodeinstanceserver.cpp",
|
|
|
|
|
"instances/qt5testnodeinstanceserver.h",
|
|
|
|
|
"instances/servernodeinstance.cpp",
|
|
|
|
|
"instances/servernodeinstance.h",
|
2019-11-15 15:20:31 +02:00
|
|
|
"editor3d/generalhelper.cpp",
|
|
|
|
|
"editor3d/generalhelper.h",
|
2019-10-23 16:02:56 +03:00
|
|
|
"editor3d/mousearea3d.cpp",
|
|
|
|
|
"editor3d/mousearea3d.h",
|
2019-11-07 10:46:14 +02:00
|
|
|
"editor3d/camerageometry.cpp",
|
|
|
|
|
"editor3d/camerageometry.h",
|
2019-11-13 17:02:52 +02:00
|
|
|
"editor3d/gridgeometry.cpp",
|
|
|
|
|
"editor3d/gridgeometry.h",
|
2019-11-19 17:43:03 +02:00
|
|
|
"editor3d/selectionboxgeometry.cpp",
|
|
|
|
|
"editor3d/selectionboxgeometry.h",
|
2016-05-12 16:27:12 +02:00
|
|
|
"qml2puppetmain.cpp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
name: "qmlprivategate (new)"
|
|
|
|
|
condition: QtcFunctions.versionIsAtLeast(Qt.core.version, "5.6.0")
|
|
|
|
|
prefix: puppetDir + "/qmlprivategate/"
|
|
|
|
|
files: [
|
|
|
|
|
"qmlprivategate_56.cpp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
name: "qmlprivategate (old)"
|
|
|
|
|
condition: !QtcFunctions.versionIsAtLeast(Qt.core.version, "5.6.0")
|
|
|
|
|
prefix: puppetDir + "/qmlprivategate/"
|
|
|
|
|
files: [
|
|
|
|
|
"designercustomobjectdata.cpp",
|
|
|
|
|
"designercustomobjectdata.h",
|
|
|
|
|
"metaobject.cpp",
|
|
|
|
|
"metaobject.h",
|
|
|
|
|
"qmlprivategate.cpp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|