Commit 7ef45a70 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

actually compile and link the phony target

kinda slower, but without error messages.
parent 71ff4913
......@@ -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
}
......
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment