diff --git a/src/lay/lay.pro b/src/lay/lay.pro index f58a87323..fe3b345ea 100644 --- a/src/lay/lay.pro +++ b/src/lay/lay.pro @@ -168,8 +168,8 @@ RESOURCES = layBuildInMacros.qrc \ layResources.qrc \ laySaltTemplates.qrc -INCLUDEPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC $$LAYBASIC_INC $$ANT_INC $$IMG_INC $$EDT_INC -DEPENDPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC $$LAYBASIC_INC $$ANT_INC $$IMG_INC $$EDT_INC +INCLUDEPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC $$LAYBASIC_INC $$ANT_INC $$IMG_INC $$EDT_INC $$LYM_INC +DEPENDPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC $$LAYBASIC_INC $$ANT_INC $$IMG_INC $$EDT_INC $$LYM_INC LIBS += -L$$DESTDIR -lklayout_tl -lklayout_gsi -lklayout_db -lklayout_rdb -lklayout_lym -lklayout_laybasic -lklayout_ant -lklayout_img -lklayout_edt win32 { diff --git a/src/laybasic/laybasic.pro b/src/laybasic/laybasic.pro index 91ebd89e7..c9e3bcb15 100644 --- a/src/laybasic/laybasic.pro +++ b/src/laybasic/laybasic.pro @@ -277,8 +277,8 @@ INCLUDEPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC DEPENDPATH += $$TL_INC $$GSI_INC $$DB_INC $$RDB_INC LIBS += -L$$DESTDIR -lklayout_tl -lklayout_gsi -lklayout_db -lklayout_rdb -INCLUDEPATH += $GSIQT_INC -DEPENDPATH += $GSIQT_INC +INCLUDEPATH += $$GSIQT_INC +DEPENDPATH += $$GSIQT_INC equals(HAVE_QTBINDINGS, "1") { LIBS += -lklayout_gsiqt diff --git a/src/ut/ut.pro b/src/ut/ut.pro index 2ca3b436d..532b7a60a 100644 --- a/src/ut/ut.pro +++ b/src/ut/ut.pro @@ -20,28 +20,26 @@ SOURCES = \ utTestConsole.cc \ utTestBase.cc \ -INCLUDEPATH = ../tl ../db ../gsi ../lay ../ext ../lib -DEPENDPATH = ../tl ../db ../gsi ../lay ../ext ../lib +INCLUDEPATH = $$TL_INC $$DB_INC $$GSI_INC $$LAY_INC $$EXT_INC $$LIB_INC +DEPENDPATH = $$TL_INC $$DB_INC $$GSI_INC $$LAY_INC $$EXT_INC $$LIB_INC LIBS += -L$$DESTDIR -lklayout_tl -lklayout_db -lklayout_gsi -lklayout_lay -lklayout_ext -lklayout_lib +INCLUDEPATH += $$RBA_INC +DEPENDPATH += $$RBA_INC + equals(HAVE_RUBY, "1") { - INCLUDEPATH += ../rba - DEPENDPATH += ../rba LIBS += -lklayout_rba } else { - INCLUDEPATH += ../rbastub - DEPENDPATH += ../rbastub LIBS += -lklayout_rbastub } +INCLUDEPATH += $$PYA_INC +DEPENDPATH += $$PYA_INC + equals(HAVE_PYTHON, "1") { - INCLUDEPATH += ../pya - DEPENDPATH += ../pya LIBS += -lklayout_pya } else { - INCLUDEPATH += ../pyastub - DEPENDPATH += ../pyastub LIBS += -lklayout_pyastub } diff --git a/src/ut/utMain.cc b/src/ut/utMain.cc index 489c643f2..55f3042c2 100644 --- a/src/ut/utMain.cc +++ b/src/ut/utMain.cc @@ -80,7 +80,7 @@ run_tests (const std::vector &selected_tests, bool editable, boo std::string mode (e == 0 ? "non-editable" : "editable"); ut::ctrl << ""; - ut::noctrl << replicate ("=", TestConsole::instance ()->real_columns ()); + ut::noctrl << tl::replicate ("=", TestConsole::instance ()->real_columns ()); ut::noctrl << "Running tests in " << mode << " mode ..."; app.set_editable (e != 0); @@ -108,14 +108,14 @@ run_tests (const std::vector &selected_tests, bool editable, boo ut::ctrl << "name () << "\">"; - ut::noctrl << replicate ("-", TestConsole::instance ()->real_columns ()); + ut::noctrl << tl::replicate ("-", TestConsole::instance ()->real_columns ()); ut::noctrl << "Running " << (*t)->name (); try { if (! (*t)->do_test (e != 0, slow)) { - ut::ctrl << "name ()) << " failed (continued mode - see previous messages)" << "\"/>"; + ut::ctrl << "name ()) << " failed (continued mode - see previous messages)" << "\"/>"; tl::error << "Test " << (*t)->name () << " failed (continued mode - see previous messages)"; failed_tests.push_back (*t); @@ -133,7 +133,7 @@ run_tests (const std::vector &selected_tests, bool editable, boo } catch (tl::Exception &ex) { - ut::ctrl << ""; + ut::ctrl << ""; tl::error << "Test " << (*t)->name () << " failed:"; tl::info << ex.msg (); @@ -161,7 +161,7 @@ run_tests (const std::vector &selected_tests, bool editable, boo ut::ctrl << ""; - ut::noctrl << replicate ("=", TestConsole::instance ()->real_columns ()); + ut::noctrl << tl::replicate ("=", TestConsole::instance ()->real_columns ()); ut::noctrl << "Summary"; if (skipped > 0) { @@ -204,7 +204,7 @@ run_tests (const std::vector &selected_tests, bool editable, boo // GSI diagnostics: print all methods that have not been called if (gsi_coverage) { - ut::noctrl << replicate ("=", TestConsole::instance ()->real_columns ()); + ut::noctrl << tl::replicate ("=", TestConsole::instance ()->real_columns ()); ut::noctrl << "GSI coverage test"; ut::ctrl << ""; @@ -226,10 +226,10 @@ run_tests (const std::vector &selected_tests, bool editable, boo tl::warn << "GSI coverage test failed - the following methods were not called:"; } if (first_of_class) { - tl::warn << replicate (" ", TestConsole::instance ()->indent ()) << "Class " << c->name (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent ()) << "Class " << c->name (); first_of_class = false; } - tl::warn << replicate (" ", TestConsole::instance ()->indent () * 2) << (*m)->to_string (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent () * 2) << (*m)->to_string (); } @@ -245,7 +245,7 @@ run_tests (const std::vector &selected_tests, bool editable, boo } - ut::noctrl << ut::replicate ("=", TestConsole::instance ()->real_columns ()); + ut::noctrl << tl::replicate ("=", TestConsole::instance ()->real_columns ()); ut::noctrl << "Grand Summary"; ut::ctrl << ""; @@ -254,13 +254,13 @@ run_tests (const std::vector &selected_tests, bool editable, boo if (non_editable) { tl::warn << "Skipped in non-editable mode"; for (std::vector ::const_iterator f = skipped_tests_ne.begin (); f != skipped_tests_ne.end (); ++f) { - tl::warn << replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); } } if (editable) { tl::warn << "Skipped in editable mode"; for (std::vector ::const_iterator f = skipped_tests_e.begin (); f != skipped_tests_e.end (); ++f) { - tl::warn << replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); } } tl::warn << tl::to_string (skipped_e + skipped_ne) << " test(s) skipped"; @@ -271,13 +271,13 @@ run_tests (const std::vector &selected_tests, bool editable, boo if (non_editable) { tl::warn << "Failed in non-editable mode"; for (std::vector ::const_iterator f = failed_tests_ne.begin (); f != failed_tests_ne.end (); ++f) { - tl::warn << replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); } } if (editable) { tl::warn << "Failed in editable mode"; for (std::vector ::const_iterator f = failed_tests_e.begin (); f != failed_tests_e.end (); ++f) { - tl::warn << replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); + tl::warn << tl::replicate (" ", TestConsole::instance ()->indent ()) << (*f)->name (); } } tl::warn << tl::to_string (result) << " test(s) failed"; @@ -419,7 +419,7 @@ main_cont (int argc, char **argv) ut::TestConsole console (stdout, xml_format); - ut::noctrl << replicate ("=", console.real_columns ()); + ut::noctrl << tl::replicate ("=", console.real_columns ()); ut::noctrl << "Entering KLayout test suite"; tl::info << "TESTSRC=" << ut::testsrc ();