Fixed Ruby-less builds.

This commit is contained in:
Matthias Koefferlein 2019-09-18 00:50:21 +02:00
parent 6a305cfbbf
commit 9c301f9744
3 changed files with 13 additions and 2 deletions

View File

@ -615,7 +615,7 @@ qmake_options=(
# This should speed up build time considerably
# https://ortogonal.github.io/ccache-and-qmake-qtcreator/
if [ $QMAKE_CCACHE = 1 ]; then
if [ "$QMAKE_CCACHE" = 1 ]; then
qmake_options+=(
CONFIG+="ccache"
)

View File

@ -15,9 +15,16 @@ SOURCES = \
bdStrmcmpTests.cc \
bdStrmxorTests.cc \
bdStrmrunTests.cc \
equals(HAVE_RUBY, "1") {
# the basic tests require Ruby as they use Ruby unittest
SOURCES += \
buddies_main.cc \
}
INCLUDEPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC $$RBA_INC
DEPENDPATH += $$BD_INC $$DB_INC $$TL_INC $$GSI_INC $$RBA_INC
LIBS += -L$$DESTDIR_UT -lklayout_bd -lklayout_db -lklayout_tl -lklayout_gsi -lklayout_rba
LIBS += -L$$DESTDIR_UT -lklayout_bd -lklayout_db -lklayout_tl -lklayout_gsi -l$$RBA_LIB

View File

@ -22,14 +22,18 @@ VERSION_INC = $$PWD/version
equals(HAVE_RUBY, "1") {
RBA_INC = $$PWD/rba/rba
RBA_LIB = klayout_rba
} else {
RBA_INC = $$PWD/rbastub
RBA_LIB = klayout_rbastub
}
equals(HAVE_PYTHON, "1") {
PYA_INC = $$PWD/pya/pya
PYA_LIB = klayout_pya
} else {
PYA_INC = $$PWD/pyastub
PYA_LIB = klayout_pyastub
}
equals(HAVE_QTBINDINGS, "1") {