Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame] | 1 | AM_CFLAGS = \ |
| 2 | $(GPSUTILS_CFLAGS) \ |
| 3 | $(LOCCORE_CFLAGS) \ |
| 4 | -I./ \ |
| 5 | -std=c++1y \ |
| 6 | -D__func__=__PRETTY_FUNCTION__ \ |
| 7 | -fno-short-enums |
| 8 | |
| 9 | ACLOCAL_AMFLAGS = -I m4 |
| 10 | |
| 11 | requiredlibs = \ |
| 12 | $(GPSUTILS_LIBS) \ |
| 13 | $(LOCCORE_LIBS) \ |
| 14 | -llog |
| 15 | |
| 16 | h_sources = \ |
| 17 | BatchingAdapter.h |
| 18 | |
| 19 | libbatching_la_SOURCES = \ |
| 20 | location_batching.cpp \ |
| 21 | BatchingAdapter.cpp |
| 22 | |
| 23 | if USE_GLIB |
| 24 | libbatching_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ |
| 25 | libbatching_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread $(requiredlibs) @GLIB_LIBS@ -shared -version-info 1:0:0 |
| 26 | libbatching_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ |
| 27 | else |
| 28 | libbatching_la_CFLAGS = $(AM_CFLAGS) |
| 29 | libbatching_la_LDFLAGS = -Wl,-z,defs -lpthread $(requiredlibs) -shared -version-info 1:0:0 |
| 30 | libbatching_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) |
| 31 | endif |
| 32 | |
| 33 | library_include_HEADERS = $(h_sources) |
| 34 | |
| 35 | library_includedir = $(pkgincludedir) |
| 36 | |
| 37 | #Create and Install libraries |
| 38 | lib_LTLIBRARIES = libbatching.la |
| 39 | |
| 40 | pkgconfigdir = $(libdir)/pkgconfig |
| 41 | pkgconfig_DATA = location-batching.pc |
| 42 | sysconf_DATA = $(WORKSPACE)/hardware/qcom/gps/etc/flp.conf |
| 43 | EXTRA_DIST = $(pkgconfig_DATA) |
| 44 | |