QmlDesigner: create stub project to build qml2puppet

This allows building qml2puppet as part of Qt Creator,
if Qt Creator is based on Qt 5.

For the moment it has to be build manually.

Change-Id: Ide3490fe09c1543d1e09506403f6de1c0bc3819c
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2012-10-02 16:09:16 +02:00
parent b3c6f7be3f
commit b9e550f702
4 changed files with 59 additions and 32 deletions
@@ -0,0 +1,36 @@
QT += core gui qml quick network v8
contains (QT_CONFIG, webkit) {
QT += webkit
}
QT += core-private qml-private quick-private gui-private script-private v8-private
DEFINES += QWEAKPOINTER_ENABLE_ARROW
include(../../../../../qtcreator.pri)
include(../../../../../src/rpath.pri)
include (../instances/instances.pri)
include (instances/instances.pri)
include (../commands/commands.pri)
include (../container/container.pri)
include (../interfaces/interfaces.pri)
QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH)
!isEmpty(QT_BREAKPAD_ROOT_PATH) {
include($$QT_BREAKPAD_ROOT_PATH/qtbreakpad.pri)
}
SOURCES += $$PWD/main.cpp
RESOURCES += $$PWD/../qmlpuppet.qrc
OTHER_FILES += Info.plist.in
macx {
info.input = Info.plist.in
info.output = $$DESTDIR/$${TARGET}.app/Contents/Info.plist
QMAKE_SUBSTITUTES += info
} else {
target.path = $$QTC_PREFIX/bin
INSTALLS += target
}
@@ -2,39 +2,11 @@ TARGET = qml2puppet
TEMPLATE = app
QT += core gui qml quick network v8
contains (QT_CONFIG, webkit) {
QT += webkit
}
QT += core-private qml-private quick-private gui-private script-private v8-private
DEFINES += QWEAKPOINTER_ENABLE_ARROW
include(../../../../../qtcreator.pri)
DESTDIR = $$[QT_INSTALL_BINS]
include(../../../../../src/rpath.pri)
include (../instances/instances.pri)
include (instances/instances.pri)
include (../commands/commands.pri)
include (../container/container.pri)
include (../interfaces/interfaces.pri)
QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH)
!isEmpty(QT_BREAKPAD_ROOT_PATH) {
include($$QT_BREAKPAD_ROOT_PATH/qtbreakpad.pri)
build_all:!build_pass {
CONFIG -= build_all
CONFIG += release
}
SOURCES += main.cpp
RESOURCES += ../qmlpuppet.qrc
OTHER_FILES += Info.plist.in
macx {
info.input = Info.plist.in
info.output = $$DESTDIR/$${TARGET}.app/Contents/Info.plist
QMAKE_SUBSTITUTES += info
} else {
target.path = $$QTC_PREFIX/bin
INSTALLS += target
}
include(../../../../../share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppet.pri)
+9
View File
@@ -0,0 +1,9 @@
TEMPLATE = subdirs
include(../../../qtcreator.pri)
greaterThan(QT_MAJOR_VERSION, 4) {
QT += declarative-private core-private
SUBDIRS += qml2puppet
}
@@ -0,0 +1,10 @@
TARGET = qml2puppet
TEMPLATE = app
include(../../../../qtcreator.pri)
DESTDIR = $$IDE_BIN_PATH
include(../../../rpath.pri)
include(../../../../share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppet.pri)