actually compile and link the phony target

kinda slower, but without error messages.
This commit is contained in:
Oswald Buddenhagen
2009-06-08 15:54:44 +02:00
parent 71ff4913ea
commit 7ef45a7070
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ include(../../qtcreator.pri)
TEMPLATE = app
TARGET = phony_target
CONFIG -= qt
QT =
LIBS =
@@ -10,10 +11,13 @@ isEmpty(vcproj) {
OBJECTS_DIR =
win32:CONFIG -= embed_manifest_exe
} else {
CONFIG += console
PHONY_DEPS = .
phony_src.input = PHONY_DEPS
phony_src.output = phony.c
phony_src.variable_out = GENERATED_SOURCES
phony_src.commands = echo int main() { return 0; } > phony.c
phony_src.name = CREATE phony.c
phony_src.CONFIG += combine
QMAKE_EXTRA_COMPILERS += phony_src
}

View File

@@ -19,6 +19,7 @@ QMAKE_EXTRA_TARGETS += ts
TEMPLATE = app
TARGET = phony_target2
CONFIG -= qt
QT =
LIBS =
@@ -36,10 +37,13 @@ isEmpty(vcproj) {
OBJECTS_DIR =
win32:CONFIG -= embed_manifest_exe
} else {
CONFIG += console
PHONY_DEPS = .
phony_src.input = PHONY_DEPS
phony_src.output = phony.c
phony_src.variable_out = GENERATED_SOURCES
phony_src.commands = echo int main() { return 0; } > phony.c
phony_src.name = CREATE phony.c
phony_src.CONFIG += combine
QMAKE_EXTRA_COMPILERS += phony_src
}