Home | History | Annotate | Download | only in gnss
      1 AM_CFLAGS = \
      2      $(LOCPLA_CFLAGS) \
      3      $(LOCHAL_CFLAGS) \
      4      -I./ \
      5      -I../utils \
      6      -I../core \
      7      -I../location \
      8      -std=c++11
      9 
     10 libgnss_la_SOURCES = \
     11     location_gnss.cpp \
     12     GnssAdapter.cpp \
     13     Agps.cpp
     14 
     15 if USE_GLIB
     16 libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
     17 libgnss_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -avoid-version
     18 libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     19 else
     20 libgnss_la_CFLAGS = $(AM_CFLAGS)
     21 libgnss_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
     22 libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
     23 endif
     24 
     25 libgnss_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 
     37 libloc_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 
     44 libloc_ds_api_la_SOURCES = \
     45      $(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.c
     46 
     47 if USE_GLIB
     48 libloc_ds_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) @GLIB_CFLAGS@
     49 libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     50 libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic
     51 libloc_ds_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     52 else
     53 libloc_ds_api_la_CFLAGS = $(AM_CFLAGS) $(libloc_ds_api_CFLAGS)
     54 libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -Wl,--export-dynamic -shared -version-info 1:0:0
     55 libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic
     56 libloc_ds_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_ds_api_CFLAGS)
     57 endif
     58 
     59 libloc_ds_api_la_LIBADD = -lstdc++ $(QMIF_LIBS) -lqmiservices -ldsi_netctrl $(GPSUTILS_LIBS) $(LOCPLA_LIBS)
     60 
     61 libloc_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 
     67 libloc_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 
     74 if USE_GLIB
     75 libloc_api_v02_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) @GLIB_CFLAGS@
     76 libloc_api_v02_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     77 libloc_api_v02_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     78 else
     79 libloc_api_v02_la_CFLAGS = $(AM_CFLAGS) $(libloc_api_v02_CFLAGS)
     80 libloc_api_v02_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0
     81 libloc_api_v02_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_api_v02_CFLAGS)
     82 endif
     83 
     84 libloc_api_v02_la_CXXFLAGS = -std=c++0x
     85 libloc_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 
     87 library_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 
     96 library_includedir = $(pkgincludedir)
     97 
     98 #Create and Install libraries
     99 lib_LTLIBRARIES = libgnss.la libloc_ds_api.la libloc_api_v02.la
    100