mirror of https://github.com/KLayout/klayout.git
WIP: fixed some string extractors
This commit is contained in:
parent
c809a236fb
commit
3ef28c8a9d
|
|
@ -2,7 +2,7 @@
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = qtbasic
|
SUBDIRS = qtbasic
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
SUBDIRS += qt5
|
SUBDIRS += qt5
|
||||||
qt5.depends += qtbasic
|
qt5.depends += qtbasic
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ equals(HAVE_QT, "0") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
|
|
||||||
QT += widgets gui printsupport xmlpatterns
|
QT += widgets gui printsupport xmlpatterns
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ equals(HAVE_QTBINDINGS, "1") {
|
||||||
LIBS += -lklayout_QtUiTools
|
LIBS += -lklayout_QtUiTools
|
||||||
}
|
}
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
|
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ equals(HAVE_QTBINDINGS, "1") {
|
||||||
!equals(HAVE_QT_XML, "0") {
|
!equals(HAVE_QT_XML, "0") {
|
||||||
LIBS += -lklayout_QtXml
|
LIBS += -lklayout_QtXml
|
||||||
}
|
}
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ DEPENDPATH += $$QTBASIC_INC
|
||||||
|
|
||||||
equals(HAVE_QTBINDINGS, "1") {
|
equals(HAVE_QTBINDINGS, "1") {
|
||||||
LIBS += -lklayout_qtbasic -lklayout_QtGui -lklayout_QtCore
|
LIBS += -lklayout_qtbasic -lklayout_QtGui -lklayout_QtCore
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ win32 {
|
||||||
QMAKE_POST_LINK += $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_UT/$${TARGET}.ut
|
QMAKE_POST_LINK += $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_UT/$${TARGET}.ut
|
||||||
}
|
}
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
QT += testlib
|
QT += testlib
|
||||||
} else {
|
} else {
|
||||||
CONFIG += qtestlib
|
CONFIG += qtestlib
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ TEMPLATE = subdirs
|
||||||
|
|
||||||
contains(QT_CONFIG, opengl) {
|
contains(QT_CONFIG, opengl) {
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
SUBDIRS = lay_plugin unit_tests
|
SUBDIRS = lay_plugin unit_tests
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ HEADERS += \
|
||||||
|
|
||||||
LIBS += -lklayout_QtCore -lklayout_QtGui
|
LIBS += -lklayout_QtCore -lklayout_QtGui
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ HEADERS += \
|
||||||
|
|
||||||
LIBS += -lklayout_QtGui -lklayout_QtCore
|
LIBS += -lklayout_QtGui -lklayout_QtCore
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ LIBS += -lklayout_QtCore -lklayout_QtXml
|
||||||
# Because of stupid dependency of QtCore on QtGui and this on QtWidgets:
|
# Because of stupid dependency of QtCore on QtGui and this on QtWidgets:
|
||||||
LIBS += -lklayout_QtGui
|
LIBS += -lklayout_QtGui
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ SUBDIRS = \
|
||||||
QtCore \
|
QtCore \
|
||||||
QtGui
|
QtGui
|
||||||
|
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
|
|
||||||
SUBDIRS += QtWidgets
|
SUBDIRS += QtWidgets
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ HEADERS += \
|
||||||
# Use this opportunity to provide the __init__.py file
|
# Use this opportunity to provide the __init__.py file
|
||||||
|
|
||||||
equals(HAVE_QTBINDINGS, "1") {
|
equals(HAVE_QTBINDINGS, "1") {
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
INIT_PY = $$PWD/../__init__.py.qt5
|
INIT_PY = $$PWD/../__init__.py.qt5
|
||||||
} else {
|
} else {
|
||||||
INIT_PY = $$PWD/../__init__.py.qt4
|
INIT_PY = $$PWD/../__init__.py.qt4
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ LIBS += -lklayout_gsi_test
|
||||||
!equals(HAVE_QT_XML, "0") {
|
!equals(HAVE_QT_XML, "0") {
|
||||||
LIBS += -lklayout_QtXml
|
LIBS += -lklayout_QtXml
|
||||||
}
|
}
|
||||||
equals(HAVE_QT5, "1") {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
LIBS += -lklayout_QtWidgets
|
LIBS += -lklayout_QtWidgets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue