1AM_CFLAGS = \ 2 $(LOCPLA_CFLAGS) \ 3 $(LOCHAL_CFLAGS) \ 4 -I./ \ 5 -I../utils \ 6 -I../core \ 7 -I../location \ 8 -std=c++11 9 10libgnss_la_SOURCES = \ 11 location_gnss.cpp \ 12 GnssAdapter.cpp \ 13 Agps.cpp 14 15if USE_GLIB 16libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ 17libgnss_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -avoid-version 18libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 19else 20libgnss_la_CFLAGS = $(AM_CFLAGS) 21libgnss_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 22libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) 23endif 24 25libgnss_la_LIBADD = -lstdc++ $(LOCPLA_LIBS) $(LOCHAL_LIBS) 26 27 28#Create and Install libraries 29#lib_LTLIBRARIES = libgnss.la 30 31#library_includedir = $(pkgincludedir) 32#pkgconfigdir = $(libdir)/pkgconfig 33#pkgconfig_DATA = location-api.pc 34#EXTRA_DIST = $(pkgconfig_DATA) 35 36 37libloc_ds_api_CFLAGS = \ 38 $(QMIF_CFLAGS) \ 39 $(QMI_CFLAGS) \ 40 $(DATA_CFLAGS) \ 41 $(GPSUTILS_CFLAGS) \ 42 -I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api 43 44libloc_ds_api_la_SOURCES = \ 45 $(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.c 46 47if USE_GLIB 48libloc_ds_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) @GLIB_CFLAGS@ 49libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 50libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic 51libloc_ds_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 52else 53libloc_ds_api_la_CFLAGS = $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) 54libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -Wl,--export-dynamic -shared -version-info 1:0:0 55libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic 56libloc_ds_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_ds_api_CFLAGS) 57endif 58 59libloc_ds_api_la_LIBADD = -lstdc++ $(QMIF_LIBS) -lqmiservices -ldsi_netctrl $(GPSUTILS_LIBS) $(LOCPLA_LIBS) 60 61libloc_api_v02_CFLAGS = \ 62 $(QMIF_CFLAGS) \ 63 $(GPSUTILS_CFLAGS) \ 64 -I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api \ 65 -I$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02 66 67libloc_api_v02_la_SOURCES = \ 68 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.cpp \ 69 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.c \ 70 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.c \ 71 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.c \ 72 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.c 73 74if USE_GLIB 75libloc_api_v02_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) @GLIB_CFLAGS@ 76libloc_api_v02_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 77libloc_api_v02_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ 78else 79libloc_api_v02_la_CFLAGS = $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) 80libloc_api_v02_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0 81libloc_api_v02_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_api_v02_CFLAGS) 82endif 83 84libloc_api_v02_la_CXXFLAGS = -std=c++0x 85libloc_api_v02_la_LIBADD = -lstdc++ -lqmi_cci -lqmi_common_so $(QMIF_LIBS) $(GPSUTILS_LIBS) $(LOCPLA_LIBS) ../core/libloc_core.la libloc_ds_api.la 86 87library_include_HEADERS = \ 88 $(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.h \ 89 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.h \ 90 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.h \ 91 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.h \ 92 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.h \ 93 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.h \ 94 $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_util_log.h 95 96library_includedir = $(pkgincludedir) 97 98#Create and Install libraries 99lib_LTLIBRARIES = libgnss.la libloc_ds_api.la libloc_api_v02.la 100