source: tests/common.pri@ 910

Last change on this file since 910 was 910, checked in by Dmitry A. Kuminov, 14 years ago

tests: Added process-sync-test.cmd.

File size: 1.9 KB
Line 
1isEmpty(DEPTH):error("DEPTH is not set before including common.pri!")
2
3DESTDIR = .
4
5!build_pass: {
6 debug_and_release {
7 debug-run.target = debug-run
8 debug-run.commands = $(MAKE) -f $(MAKEFILE).Debug run
9 release-run.target = release-run
10 release-run.commands = $(MAKE) -f $(MAKEFILE).Release run
11 QMAKE_EXTRA_TARGETS += debug-run release-run
12
13 debug-dbg.target = debug-dbg
14 debug-dbg.commands = $(MAKE) -f $(MAKEFILE).Debug dbg
15 release-dbg.target = release-dbg
16 release-dbg.commands = $(MAKE) -f $(MAKEFILE).Release dbg
17 QMAKE_EXTRA_TARGETS += debug-dbg release-dbg
18 }
19} else {
20 isEmpty(RUN_SHELL):RUN_SHELL = $(RUN_SHELL)
21 isEmpty(RUN_ARGS):RUN_ARGS = $(RUN_ARGS)
22
23 run.target = run
24 run.commands = $$RUN_SHELL $(DESTDIR_TARGET) $$RUN_ARGS
25 run.depends = $(DESTDIR_TARGET)
26 QMAKE_EXTRA_TARGETS += run
27
28 os2:isEmpty(RUN_DEBUG):RUN_DEBUG = idbug
29 win:isEmpty(RUN_DEBUG):RUN_DEBUG = windbg
30 unix:isEmpty(RUN_DEBUG):RUN_DEBUG = gdb
31
32 dbg.target = dbg
33 dbg.commands = $$RUN_SHELL $$RUN_DEBUG $(DESTDIR_TARGET) $$RUN_ARGS
34 dbg.depends = $(DESTDIR_TARGET)
35 QMAKE_EXTRA_TARGETS += dbg
36}
37
38# All kinds of builds should have the console if possible
39win32 {
40 CONFIG(release, debug|release):CONFIG(qt):contains(QT, gui) {
41 CONFIG -= console
42 CONFIG *= windows
43 } else {
44 CONFIG -= windows
45 CONFIG *= console
46 }
47}
48os2 {
49 CONFIG -= windows
50 CONFIG *= console
51}
52
53defineReplace(fixSep) {
54 win32|os2 {
55 1 = $$replace(1,/,\\)
56 }
57 return($$1)
58}
59
60defineReplace(file_copier_output_path) {
61 isEmpty(FILES.path):FILES.path = $$DESTDIR
62 1 = $${FILES.path}/$$basename(1)
63 return($$1)
64}
65
66file_copier.input = FILES
67file_copier.output = ${QMAKE_FUNC_file_copier_output_path}
68file_copier.commands = $(COPY_FILE) ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
69file_copier.CONFIG += no_link
70file_copier.variable_out = POST_TARGETDEPS
71QMAKE_EXTRA_COMPILERS += file_copier
Note: See TracBrowser for help on using the repository browser.