mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add a variable for the Marble library name
I need that for a Marble installed somewhere other than the linker's default search path. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
29b99d4e1a
commit
80274b5788
2 changed files with 3 additions and 1 deletions
|
@ -149,6 +149,7 @@ SQLITE3FLAGS = $(strip $(shell $(PKGCONFIG) --cflags sqlite3))
|
|||
# Before Marble 4.9, the GeoDataTreeModel.h header wasn't installed
|
||||
# Check if it's present by trying to compile
|
||||
MARBLEFLAGS = $(shell $(CXX) $(QTCXXFLAGS) -E -include marble/GeoDataTreeModel.h -xc++ /dev/null > /dev/null 2>&1 || echo " -DINCOMPLETE_MARBLE")
|
||||
MARBLELIBS = -lmarblewidget
|
||||
|
||||
# Write the configure file
|
||||
all: configure
|
||||
|
@ -186,6 +187,7 @@ configure $(CONFIGURE): Configure.mk
|
|||
LIBSQLITE3 = $(LIBSQLITE3)\\\
|
||||
SQLITE3FLAGS = $(SQLITE3FLAGS)\\\
|
||||
MARBLEFLAGS = $(MARBLEFLAGS)\\\
|
||||
MARBLELIBS = $(MARBLELIBS)\\\
|
||||
" | tr '\\' '\n' > $(CONFIGFILE)
|
||||
|
||||
else
|
||||
|
|
2
Makefile
2
Makefile
|
@ -119,7 +119,7 @@ else
|
|||
endif
|
||||
|
||||
LIBS = $(LIBQT) $(LIBXML2) $(LIBXSLT) $(LIBSQLITE3) $(LIBGCONF2) $(LIBDIVECOMPUTER) \
|
||||
$(EXTRALIBS) $(LIBZIP) -lpthread -lm $(LIBOSMGPSMAP) $(LIBSOUP) $(LIBWINSOCK) -lmarblewidget
|
||||
$(EXTRALIBS) $(LIBZIP) -lpthread -lm $(LIBOSMGPSMAP) $(LIBSOUP) $(LIBWINSOCK) $(MARBLELIBS)
|
||||
|
||||
MSGLANGS=$(notdir $(wildcard po/*.po))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue