summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri7
1 files changed, 6 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index b147eba21..f8789b182 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -53,11 +53,16 @@ PKG_CONFIG_OUT = $$system($$PKG_CONFIG --version 2> $$NUL)
#
# Find libdivecomputer
#
-!isEmpty(LIBDCDEVEL) {
+equals(LIBDCDEVEL, "1") {
# find it next to our sources
INCLUDEPATH += ../libdivecomputer/include $$OUT_PWD/../libdivecomputer/include
LIBS += ../libdivecomputer/src/.libs/libdivecomputer.a
LIBDC_LA = ../libdivecomputer/src/libdivecomputer.la
+} else:!isEmpty(LIBDCDEVEL) {
+ # find it next to our sources
+ INCLUDEPATH += $$LIBDCDEVEL/include $$OUT_PWD/$$LIBDCDEVEL/include
+ LIBS += $$LIBDCDEVEL/src/.libs/libdivecomputer.a
+ LIBDC_LA = $$LIBDCDEVEL/src/libdivecomputer.la
} else:!isEmpty(CROSS_PATH):exists($${CROSS_PATH}"/lib/libdivecomputer.a"):exists($${CROSS_PATH}"/lib/libusb-1.0.a") {
LIBS += $${CROSS_PATH}"/lib/libdivecomputer.a" $${CROSS_PATH}"/lib/libusb-1.0.a"
} else:exists(/usr/local/lib/libdivecomputer.a) {