initial commit
This commit is contained in:
commit
9d20827c46
2469 changed files with 470994 additions and 0 deletions
67
qa/oldtest/unittest.pri
Normal file
67
qa/oldtest/unittest.pri
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# helpers to reduce the size of unittest projects
|
||||
unittest {
|
||||
TEMPLATE = app
|
||||
|
||||
CONFIG += qtestlib console debug qt
|
||||
CONFIG -= app_bundle
|
||||
}
|
||||
|
||||
windows {
|
||||
# otherwise we would get 'unresolved external _WinMainCRTStartup'
|
||||
# when compiling with MSVC
|
||||
MOC_DIR = _moc
|
||||
OBJECTS_DIR = _obj
|
||||
UI_DIR = _ui
|
||||
RCC_DIR = _rcc
|
||||
}
|
||||
!windows {
|
||||
MOC_DIR = .moc
|
||||
OBJECTS_DIR = .obj
|
||||
UI_DIR = .ui
|
||||
RCC_DIR = .rcc
|
||||
}
|
||||
|
||||
mac:app_bundle {
|
||||
EXEC_TARGET = $${TARGET}.app/Contents/MacOS/$${TARGET}
|
||||
}
|
||||
else {
|
||||
EXEC_TARGET = $$TARGET
|
||||
}
|
||||
|
||||
# run target (TODO: Make it work on Windows too)
|
||||
QMAKE_EXTRA_TARGETS += run
|
||||
run.depends = $$EXEC_TARGET
|
||||
run.commands = DISABLE_BREAKPAD=true YACHATDATADIR=~/.yachat-test ./$$EXEC_TARGET
|
||||
|
||||
unix {
|
||||
# gdb target
|
||||
QMAKE_EXTRA_TARGETS += gdb
|
||||
gdb.depends = $$EXEC_TARGET
|
||||
mac {
|
||||
QT_FRAMEWORK_VERSION = 4
|
||||
QT_FRAMEWORKS = QtCore QtXml QtNetwork QtGui QtSql Qt3Support
|
||||
FRAMEWORK = \$(QTDIR)/lib/\$\${f}.framework/Versions/$$QT_FRAMEWORK_VERSION/\$\${f}
|
||||
gdb.commands += \
|
||||
for f in $$QT_FRAMEWORKS; do \
|
||||
install_name_tool -id "$$FRAMEWORK" "$$FRAMEWORK""_debug"; \
|
||||
install_name_tool -change "$$FRAMEWORK" "$$FRAMEWORK""_debug" "./$$EXEC_TARGET"; \
|
||||
done;
|
||||
}
|
||||
# gdb.commands += echo "set env-vars YACHATDATADIR=\$(HOME)/.yachat-test DISABLE_BREAKPAD=true" > /tmp/lldb-commands;
|
||||
# gdb.commands += /Xcode4/usr/bin/lldb -f ./$$EXEC_TARGET -s /tmp/lldb-commands
|
||||
gdb.commands += DISABLE_BREAKPAD=true YACHATDATADIR=~/.yachat-test gdb ./$$EXEC_TARGET
|
||||
mac {
|
||||
gdb.commands += ; \
|
||||
for f in $$QT_FRAMEWORKS; do \
|
||||
install_name_tool -id "$$FRAMEWORK""_debug" "$$FRAMEWORK""_debug"; \
|
||||
install_name_tool -change "$$FRAMEWORK""_debug" "$$FRAMEWORK" "./$$EXEC_TARGET"; \
|
||||
done;
|
||||
}
|
||||
}
|
||||
|
||||
mac {
|
||||
# xcode target
|
||||
QMAKE_EXTRA_TARGETS += xcode
|
||||
xcode.depends = Makefile
|
||||
xcode.commands = ${QMAKE} -spec macx-xcode -o $$TARGET
|
||||
}
|
||||
Reference in a new issue