From bb12dea03c81ca3a47491b4c85a9b0803c9ba278 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 1 Dec 2014 16:07:23 -0800 Subject: Allow LIBDCDEVEL to specify a path That's something I had wanted to fix so many times... Signed-off-by: Dirk Hohndel --- subsurface-configure.pri | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'subsurface-configure.pri') 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) { -- cgit v1.2.3-70-g09d2