Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame^] | 1 | AM_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 | |
| 12 | libgnss_la_SOURCES = \ |
| 13 | location_gnss.cpp \ |
| 14 | GnssAdapter.cpp \ |
| 15 | XtraSystemStatusObserver.cpp \ |
| 16 | Agps.cpp \ |
| 17 | NativeAgpsHandler.cpp |
| 18 | |
| 19 | if USE_GLIB |
| 20 | libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ |
| 21 | libgnss_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -avoid-version |
| 22 | libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ |
| 23 | else |
| 24 | libgnss_la_CFLAGS = $(AM_CFLAGS) |
| 25 | libgnss_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 |
| 26 | libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 27 | endif |
| 28 | |
| 29 | libgnss_la_LIBADD = -lstdc++ -ldl $(GPSUTILS_LIBS) $(LOCCORE_LIBS) |
| 30 | |
| 31 | #Create and Install libraries |
| 32 | lib_LTLIBRARIES = libgnss.la |