2016-05-12 16:27:12 +02:00
|
|
|
import qbs
|
|
|
|
|
import QtcFunctions
|
|
|
|
|
|
|
|
|
|
QtcTool {
|
|
|
|
|
name: "qml2puppet"
|
|
|
|
|
installDir: qbs.targetOS.contains("osx")
|
|
|
|
|
? project.ide_libexec_path + "/qmldesigner" : project.ide_libexec_path
|
|
|
|
|
|
|
|
|
|
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")
|
|
|
|
|
}
|
|
|
|
|
bundle.embedInfoPlist: true
|
|
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
"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",
|
|
|
|
|
"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.cpp",
|
|
|
|
|
"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",
|
|
|
|
|
"instances/qmltransitionnodeinstance.cpp",
|
|
|
|
|
"instances/qmltransitionnodeinstance.h",
|
|
|
|
|
"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",
|
|
|
|
|
"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",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|