2009-04-17 11:26:03 +02:00
|
|
|
include(../../qtcreator.pri)
|
|
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
TARGET = phony_target
|
2010-09-10 11:04:06 +02:00
|
|
|
CONFIG -= qt separate_debug_info gdb_dwarf_index
|
2009-06-02 11:22:44 +02:00
|
|
|
QT =
|
|
|
|
|
LIBS =
|
2010-07-16 10:29:46 +02:00
|
|
|
macx:CONFIG -= app_bundle
|
2009-04-17 11:26:03 +02:00
|
|
|
|
|
|
|
|
isEmpty(vcproj) {
|
2009-06-02 11:22:44 +02:00
|
|
|
QMAKE_LINK = @: IGNORE THIS LINE
|
2009-04-17 11:26:03 +02:00
|
|
|
OBJECTS_DIR =
|
|
|
|
|
win32:CONFIG -= embed_manifest_exe
|
|
|
|
|
} else {
|
2009-06-08 15:54:44 +02:00
|
|
|
CONFIG += console
|
2009-04-17 11:26:03 +02:00
|
|
|
PHONY_DEPS = .
|
|
|
|
|
phony_src.input = PHONY_DEPS
|
|
|
|
|
phony_src.output = phony.c
|
2009-06-08 15:54:44 +02:00
|
|
|
phony_src.variable_out = GENERATED_SOURCES
|
2009-04-17 11:26:03 +02:00
|
|
|
phony_src.commands = echo int main() { return 0; } > phony.c
|
2009-06-08 15:54:44 +02:00
|
|
|
phony_src.name = CREATE phony.c
|
2009-04-17 11:26:03 +02:00
|
|
|
phony_src.CONFIG += combine
|
|
|
|
|
QMAKE_EXTRA_COMPILERS += phony_src
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DATA_DIRS = \
|
|
|
|
|
snippets \
|
|
|
|
|
templates \
|
|
|
|
|
designer \
|
|
|
|
|
schemes \
|
2009-07-13 14:35:40 +02:00
|
|
|
styles \
|
2010-09-24 15:42:56 +02:00
|
|
|
rss \
|
2010-01-07 12:14:35 +01:00
|
|
|
gdbmacros \
|
2010-03-01 13:01:05 +01:00
|
|
|
qmldesigner \
|
2010-07-22 14:48:20 +02:00
|
|
|
qmlicons \
|
2010-09-29 10:07:19 +02:00
|
|
|
qml \
|
2010-09-17 13:46:26 +02:00
|
|
|
qml-type-descriptions \
|
2010-09-29 13:52:58 +02:00
|
|
|
qmljsdebugger
|
2009-04-17 11:26:03 +02:00
|
|
|
|
2009-05-06 16:39:07 +02:00
|
|
|
!isEmpty(copydata) {
|
2009-04-17 11:26:03 +02:00
|
|
|
|
|
|
|
|
for(data_dir, DATA_DIRS) {
|
2010-03-19 12:27:40 +01:00
|
|
|
files = $$files($$PWD/$$data_dir/*, true)
|
2009-04-17 11:26:03 +02:00
|
|
|
win32:files ~= s|\\\\|/|g
|
2010-03-19 12:27:40 +01:00
|
|
|
for(file, files):!exists($$file/*):FILES += $$file
|
2009-04-17 11:26:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copy2build.input = FILES
|
2009-06-09 11:55:00 +02:00
|
|
|
copy2build.output = $$IDE_DATA_PATH/${QMAKE_FUNC_FILE_IN_stripSrcDir}
|
2009-04-17 11:26:03 +02:00
|
|
|
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
|
2009-09-15 17:19:02 +02:00
|
|
|
win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\"
|
|
|
|
|
unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
|
2009-04-17 11:26:03 +02:00
|
|
|
copy2build.name = COPY ${QMAKE_FILE_IN}
|
|
|
|
|
copy2build.CONFIG += no_link
|
|
|
|
|
QMAKE_EXTRA_COMPILERS += copy2build
|
|
|
|
|
|
|
|
|
|
macx {
|
|
|
|
|
run_in_term.target = $$IDE_DATA_PATH/runInTerminal.command
|
|
|
|
|
run_in_term.depends = $$PWD/runInTerminal.command
|
2009-09-14 17:42:08 +02:00
|
|
|
run_in_term.commands = $$QMAKE_COPY \"$<\" \"$@\"
|
2009-04-17 11:26:03 +02:00
|
|
|
QMAKE_EXTRA_TARGETS += run_in_term
|
|
|
|
|
PRE_TARGETDEPS += $$run_in_term.target
|
|
|
|
|
QMAKE_CLEAN += $$run_in_term.target
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2009-09-25 12:28:44 +02:00
|
|
|
!macx {
|
2009-04-17 11:26:03 +02:00
|
|
|
for(data_dir, DATA_DIRS) {
|
|
|
|
|
eval($${data_dir}.files = $$quote($$PWD/$$data_dir))
|
|
|
|
|
eval($${data_dir}.path = /share/qtcreator)
|
|
|
|
|
INSTALLS += $$data_dir
|
|
|
|
|
}
|
|
|
|
|
}
|