blob: dd313a1ae50078df58f1ea3923795eeaf55c9ef7 [file] [log] [blame]
Michael Bestas3a0209e2023-05-04 01:15:47 +03001AM_CFLAGS = \
2 $(LOCPLA_CFLAGS) \
3 $(LOCHAL_CFLAGS) \
4 $(GPSUTILS_CFLAGS) \
5 $(LOCCORE_CFLAGS) \
6 -I./ \
7 -I../utils \
8 -I$(WORKSPACE)/hardware/qcom/gps/core/data-items \
9 -I../location \
10 -std=c++1y
11
12libgnss_la_SOURCES = \
13 location_gnss.cpp \
14 GnssAdapter.cpp \
15 XtraSystemStatusObserver.cpp \
16 Agps.cpp \
17 NativeAgpsHandler.cpp
18
19if USE_GLIB
20libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
21libgnss_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -avoid-version
22libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
23else
24libgnss_la_CFLAGS = $(AM_CFLAGS)
25libgnss_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0
26libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
27endif
28
29libgnss_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS) $(LOCCORE_LIBS)
30
31#Create and Install libraries
32lib_LTLIBRARIES = libgnss.la