mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Detect libdivecomputer using pkg-config if possible
If libdivecomputer is managed by pkg-config, we should query it for the compiler parameters on Linux also. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0d370ba108
commit
15bb4fccbb
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ ifeq ($(CC), i686-w64-mingw32-gcc)
|
|||
else ifeq ($(UNAME), darwin)
|
||||
LIBDIVECOMPUTERINCLUDES = $(shell $(PKGCONFIG) --cflags libdivecomputer)
|
||||
LIBDIVECOMPUTERARCHIVE = $(shell $(PKGCONFIG) --libs libdivecomputer)
|
||||
else ifeq ($(shell $(PKGCONFIG) --exists libdivecomputer; echo $$?),0)
|
||||
LIBDIVECOMPUTERINCLUDES = $(shell $(PKGCONFIG) --cflags libdivecomputer)
|
||||
LIBDIVECOMPUTERARCHIVE = $(shell $(PKGCONFIG) --libs libdivecomputer)
|
||||
else
|
||||
libdc-local := $(wildcard /usr/local/lib/libdivecomputer.a)
|
||||
libdc-local64 := $(wildcard /usr/local/lib64/libdivecomputer.a)
|
||||
|
|
Loading…
Add table
Reference in a new issue