[consider merging] Functional ut_runner binary also with -without-qt

This commit is contained in:
Matthias Koefferlein 2023-10-28 23:48:56 +02:00
parent ba19b3374a
commit b56220d36d
6 changed files with 48 additions and 46 deletions

View File

@ -404,7 +404,7 @@ HEADERS = \
dbShapeCollection.h \ dbShapeCollection.h \
dbShapeCollectionUtils.h dbShapeCollectionUtils.h
!equals(HAVE_QT, "0") || !equals(HAVE_PYTHON, "0") { !equals(HAVE_QT, "0") {
RESOURCES = \ RESOURCES = \
dbResources.qrc \ dbResources.qrc \

View File

@ -13,7 +13,7 @@ HEADERS = \
drcCommon.h \ drcCommon.h \
drcForceLink.h \ drcForceLink.h \
!equals(HAVE_QT, "0") || !equals(HAVE_PYTHON, "0") { !equals(HAVE_QT, "0") {
RESOURCES = \ RESOURCES = \
drcResources.qrc drcResources.qrc
} }

View File

@ -31,8 +31,10 @@ SOURCES = \
libBasicStrokedPolygon.cc \ libBasicStrokedPolygon.cc \
libBasicText.cc libBasicText.cc
RESOURCES = \ !equals(HAVE_QT, "0") {
libResources.qrc RESOURCES = \
libResources.qrc
}
INCLUDEPATH += $$TL_INC $$GSI_INC $$DB_INC INCLUDEPATH += $$TL_INC $$GSI_INC $$DB_INC
DEPENDPATH += $$TL_INC $$GSI_INC $$DB_INC DEPENDPATH += $$TL_INC $$GSI_INC $$DB_INC

View File

@ -13,7 +13,7 @@ HEADERS = \
lvsCommon.h \ lvsCommon.h \
lvsForceLink.h \ lvsForceLink.h \
!equals(HAVE_QT, "0") || !equals(HAVE_PYTHON, "0") { !equals(HAVE_QT, "0") {
RESOURCES = \ RESOURCES = \
lvsResources.qrc lvsResources.qrc
} }

View File

@ -14,7 +14,7 @@ DEPENDPATH += $$RBA_INC $$TL_INC $$DB_INC $$GSI_INC
LIBS += -L$$DESTDIR_UT -lklayout_rba -lklayout_tl -lklayout_db -lklayout_gsi LIBS += -L$$DESTDIR_UT -lklayout_rba -lklayout_tl -lklayout_db -lklayout_gsi
!equals(HAVE_QT, "0") || !equals(HAVE_PYTHON, "0") { !equals(HAVE_QT, "0") {
RESOURCES = \ RESOURCES = \
rba_unit_tests.qrc rba_unit_tests.qrc
} }

View File

@ -433,6 +433,8 @@ run_tests (const std::vector<tl::TestBase *> &selected_tests, bool editable, boo
static int static int
main_cont (int &argc, char **argv) main_cont (int &argc, char **argv)
{ {
ut::TestConsole console (stdout);
std::unique_ptr<rba::RubyInterpreter> ruby_interpreter; std::unique_ptr<rba::RubyInterpreter> ruby_interpreter;
std::unique_ptr<pya::PythonInterpreter> python_interpreter; std::unique_ptr<pya::PythonInterpreter> python_interpreter;
@ -452,8 +454,6 @@ main_cont (int &argc, char **argv)
int result = 0; int result = 0;
ut::TestConsole console (stdout);
try { try {
pya::PythonInterpreter::initialize (); pya::PythonInterpreter::initialize ();