XPlor/tests/tests.pro

95 lines
2.6 KiB
Prolog
Raw Normal View History

2025-03-01 20:38:52 -05:00
TEMPLATE = app
CONFIG += no_main
# Enable the testlib module
2025-04-23 00:09:35 -04:00
QT += testlib concurrent core-private
2025-03-01 20:38:52 -05:00
# Define a test-specific flag
DEFINES += QT_TESTS
TARGET = tests
# List all test source files
SOURCES += \
2025-04-04 20:40:22 -04:00
# 360 autotests
360/autotest_cod2_360.cpp \
360/autotest_cod4_360.cpp \
360/autotest_cod5_360.cpp \
360/autotest_cod6_360.cpp \
360/autotest_cod7_360.cpp \
360/autotest_cod8_360.cpp \
360/autotest_cod9_360.cpp \
360/autotest_cod10_360.cpp \
360/autotest_cod11_360.cpp \
360/autotest_cod12_360.cpp \
# PC autotests
PC/autotest_cod4_pc.cpp \
PC/autotest_cod5_pc.cpp \
PC/autotest_cod6_pc.cpp \
PC/autotest_cod7_pc.cpp \
PC/autotest_cod8_pc.cpp \
PC/autotest_cod9_pc.cpp \
PC/autotest_cod10_pc.cpp \
PC/autotest_cod11_pc.cpp \
PC/autotest_cod12_pc.cpp \
# PS3 autotests
PS3/autotest_cod4_ps3.cpp \
PS3/autotest_cod5_ps3.cpp \
PS3/autotest_cod6_ps3.cpp \
PS3/autotest_cod7_ps3.cpp \
PS3/autotest_cod8_ps3.cpp \
PS3/autotest_cod9_ps3.cpp \
PS3/autotest_cod10_ps3.cpp \
PS3/autotest_cod11_ps3.cpp \
PS3/autotest_cod12_ps3.cpp \
# Wii autotests
Wii/autotest_cod4_wii.cpp \
2025-04-04 20:40:22 -04:00
Wii/autotest_cod7_wii.cpp \
Wii/autotest_cod8_wii.cpp \
2025-04-04 20:40:22 -04:00
# WiiU autotests
WiiU/autotest_cod9_wiiu.cpp \
WiiU/autotest_cod10_wiiu.cpp \
# XPlor autotests
2025-07-10 00:11:06 -04:00
autotest_cod.cpp \
2025-04-04 20:40:22 -04:00
autotest_xplor.cpp \
# Main test function
test_main.cpp
HEADERS += \
2025-07-10 00:11:06 -04:00
autotest_cod.h \
autotest_xplor.h
2025-03-01 20:38:52 -05:00
# Prevent tests from being built in release mode (optional)
# CONFIG(debug, debug|release) {
# message("Including test files in Debug mode")
# } else {
# SOURCES -= autotest_cod5.cpp
# }
2025-04-04 20:34:24 -04:00
LIBS += \
2025-07-10 00:11:06 -04:00
-L$$OUT_PWD/../libs/ -lcore -lencryption -lcompression -lfastfile -lzonefile -lassets \
2025-04-23 00:09:35 -04:00
-L$$PWD/../third_party/xbox_sdk/lib -lxcompress64
2025-04-04 20:34:24 -04:00
INCLUDEPATH += \
2025-04-23 00:09:35 -04:00
$$PWD/../third_party/xbox_sdk/include \
2025-04-04 20:34:24 -04:00
$$PWD/../libs/core \
$$PWD/../libs/encryption \
2025-04-04 20:40:22 -04:00
$$PWD/../libs/compression \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/fastfile \
2025-07-10 00:11:06 -04:00
$$PWD/../libs/assets \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/zonefile
2025-04-04 20:34:24 -04:00
DEPENDPATH += \
2025-04-23 00:09:35 -04:00
$$PWD/../third_party/xbox_sdk/include \
2025-04-04 20:34:24 -04:00
$$PWD/../libs/core \
$$PWD/../libs/encryption \
2025-04-04 20:40:22 -04:00
$$PWD/../libs/compression \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/fastfile \
2025-07-10 00:11:06 -04:00
$$PWD/../libs/assets \
2025-05-03 09:57:47 -04:00
$$PWD/../libs/zonefile
2025-04-04 20:34:24 -04:00
2025-04-23 00:09:35 -04:00
# Copy DLLs to Debug & Release folder
QMAKE_POST_LINK += xcopy /Y /E /I \"$$PWD/../third_party/xbox_sdk/lib\\*.dll\" \"$$OUT_PWD/debug/\" $$escape_expand(\\n\\t)
QMAKE_POST_LINK += xcopy /Y /E /I \"$$PWD/../third_party/xbox_sdk/lib\\*.dll\" \"$$OUT_PWD/release/\" $$escape_expand(\\n\\t)