Home | History | Annotate | Download | only in libloc_api_50001
      1 AM_CFLAGS = \
      2      -I../../utils \
      3      -I../../platform_lib_abstractions \
      4      -fno-short-enums \
      5      -DFEATURE_GNSS_BIT_API
      6 
      7 libloc_adapter_so_la_SOURCES = loc_eng_log.cpp LocEngAdapter.cpp
      8 
      9 if USE_GLIB
     10 libloc_adapter_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
     11 libloc_adapter_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     12 libloc_adapter_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     13 else
     14 libloc_adapter_so_la_CFLAGS = $(AM_CFLAGS)
     15 libloc_adapter_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
     16 libloc_adapter_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
     17 endif
     18 libloc_adapter_so_la_LIBADD = -lstdc++ -lcutils ../../utils/libgps_utils_so.la
     19 
     20 
     21 libloc_eng_so_la_SOURCES = \
     22     loc_eng.cpp \
     23     loc_eng_agps.cpp \
     24     loc_eng_xtra.cpp \
     25     loc_eng_ni.cpp \
     26     loc_eng_log.cpp \
     27     loc_eng_dmn_conn.cpp \
     28     loc_eng_dmn_conn_handler.cpp \
     29     loc_eng_dmn_conn_thread_helper.c \
     30     loc_eng_dmn_conn_glue_msg.c \
     31     loc_eng_dmn_conn_glue_pipe.c
     32 
     33 
     34 if USE_GLIB
     35 libloc_eng_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
     36 libloc_eng_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     37 libloc_eng_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     38 else
     39 libloc_eng_so_la_CFLAGS = $(AM_CFLAGS)
     40 libloc_eng_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
     41 libloc_eng_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
     42 endif
     43 
     44 libloc_eng_so_la_LIBADD = -lstdc++ -lcutils -ldl ../../utils/libgps_utils_so.la libloc_adapter_so.la
     45 
     46 
     47 libgps_default_so_la_SOURCES = \
     48       loc.cpp \
     49       gps.c
     50 
     51 if USE_GLIB
     52 libgps_default_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
     53 libgps_default_so_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
     54 libgps_default_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
     55 else
     56 libgps_default_so_la_CFLAGS = $(AM_CFLAGS)
     57 libgps_default_so_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
     58 libgps_default_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
     59 endif
     60 
     61 libgps_default_so_la_LIBADD = -lstdc++ -lcutils ../../utils/libgps_utils_so.la -ldl libloc_eng_so.la
     62 
     63 library_include_HEADERS = \
     64    LocEngAdapter.h \
     65    loc.h \
     66    loc_eng.h \
     67    loc_eng_xtra.h \
     68    loc_eng_ni.h \
     69    loc_eng_agps.h \
     70    loc_eng_msg.h \
     71    loc_eng_log.h
     72 
     73 library_includedir = $(pkgincludedir)/libloc_api_50001
     74 
     75 #Create and Install libraries
     76 lib_LTLIBRARIES = libloc_adapter_so.la libloc_eng_so.la libgps_default_so.la
     77