1
# helpers to reduce the size of unittest projects
5
CONFIG += qtestlib console debug qt
10
# otherwise we would get 'unresolved external _WinMainCRTStartup'
11
# when compiling with MSVC
25
EXEC_TARGET = $${TARGET}.app/Contents/MacOS/$${TARGET}
28
EXEC_TARGET = $$TARGET
31
# run target (TODO: Make it work on Windows too)
32
QMAKE_EXTRA_TARGETS += run
33
run.depends = $$EXEC_TARGET
34
run.commands = PSIDATADIR=~/.psi-test ./$$EXEC_TARGET
38
QMAKE_EXTRA_TARGETS += gdb
39
gdb.depends = $$EXEC_TARGET
41
QT_FRAMEWORK_VERSION = 4
42
QT_FRAMEWORKS = QtCore QtXml QtNetwork QtGui QtSql Qt3Support
43
FRAMEWORK = \$(QTDIR)/lib/\$\${f}.framework/Versions/$$QT_FRAMEWORK_VERSION/\$\${f}
45
for f in $$QT_FRAMEWORKS; do \
46
install_name_tool -id "$$FRAMEWORK" "$$FRAMEWORK""_debug"; \
47
install_name_tool -change "$$FRAMEWORK" "$$FRAMEWORK""_debug" "./$$EXEC_TARGET"; \
50
gdb.commands += PSIDATADIR=~/.psi-test gdb ./$$EXEC_TARGET
53
for f in $$QT_FRAMEWORKS; do \
54
install_name_tool -id "$$FRAMEWORK""_debug" "$$FRAMEWORK""_debug"; \
55
install_name_tool -change "$$FRAMEWORK""_debug" "$$FRAMEWORK" "./$$EXEC_TARGET"; \
62
QMAKE_EXTRA_TARGETS += xcode
63
xcode.depends = Makefile
64
xcode.commands = ${QMAKE} -spec macx-xcode -o $$TARGET