| [920] | 1 | isEmpty(DEPTH):error("DEPTH must be set before including common.pri \
|
|---|
| 2 | so that it leads to test's root dir.")
|
|---|
| [205] | 3 |
|
|---|
| [920] | 4 | # on Unix exes have no extension so we need to put them to a subdir
|
|---|
| 5 | # to avoid clashes with the possible subtest's directories
|
|---|
| 6 | unix:DESTDIR = $$DEPTH/.bin
|
|---|
| 7 | else:DESTDIR = $$DEPTH
|
|---|
| [209] | 8 |
|
|---|
| [610] | 9 | !build_pass: {
|
|---|
| 10 | debug_and_release {
|
|---|
| 11 | debug-run.target = debug-run
|
|---|
| 12 | debug-run.commands = $(MAKE) -f $(MAKEFILE).Debug run
|
|---|
| 13 | release-run.target = release-run
|
|---|
| 14 | release-run.commands = $(MAKE) -f $(MAKEFILE).Release run
|
|---|
| 15 | QMAKE_EXTRA_TARGETS += debug-run release-run
|
|---|
| 16 |
|
|---|
| 17 | debug-dbg.target = debug-dbg
|
|---|
| 18 | debug-dbg.commands = $(MAKE) -f $(MAKEFILE).Debug dbg
|
|---|
| 19 | release-dbg.target = release-dbg
|
|---|
| 20 | release-dbg.commands = $(MAKE) -f $(MAKEFILE).Release dbg
|
|---|
| 21 | QMAKE_EXTRA_TARGETS += debug-dbg release-dbg
|
|---|
| 22 | }
|
|---|
| [303] | 23 | } else {
|
|---|
| [328] | 24 | isEmpty(RUN_SHELL):RUN_SHELL = $(RUN_SHELL)
|
|---|
| 25 | isEmpty(RUN_ARGS):RUN_ARGS = $(RUN_ARGS)
|
|---|
| [610] | 26 |
|
|---|
| [303] | 27 | run.target = run
|
|---|
| [328] | 28 | run.commands = $$RUN_SHELL $(DESTDIR_TARGET) $$RUN_ARGS
|
|---|
| [303] | 29 | run.depends = $(DESTDIR_TARGET)
|
|---|
| 30 | QMAKE_EXTRA_TARGETS += run
|
|---|
| [610] | 31 |
|
|---|
| 32 | os2:isEmpty(RUN_DEBUG):RUN_DEBUG = idbug
|
|---|
| 33 | win:isEmpty(RUN_DEBUG):RUN_DEBUG = windbg
|
|---|
| 34 | unix:isEmpty(RUN_DEBUG):RUN_DEBUG = gdb
|
|---|
| 35 |
|
|---|
| 36 | dbg.target = dbg
|
|---|
| 37 | dbg.commands = $$RUN_SHELL $$RUN_DEBUG $(DESTDIR_TARGET) $$RUN_ARGS
|
|---|
| 38 | dbg.depends = $(DESTDIR_TARGET)
|
|---|
| 39 | QMAKE_EXTRA_TARGETS += dbg
|
|---|
| [303] | 40 | }
|
|---|
| 41 |
|
|---|
| [904] | 42 | # All kinds of builds should have the console if possible
|
|---|
| [303] | |
|---|