Fix 2.9-rel compilation issues on LE
Change-Id: I35b8da213e8830456c8652802941a418748bd5e9 CRs-Fixed: 2067662
This commit is contained in:
parent
1bd0de5d87
commit
ea051709cd
11 changed files with 150 additions and 10 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
SUBDIRS = core loc_api
|
SUBDIRS = core location gnss
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = loc-hal.pc
|
pkgconfig_DATA = loc-hal.pc
|
||||||
|
|
|
@ -82,9 +82,9 @@ AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes")
|
||||||
|
|
||||||
AC_CONFIG_FILES([ \
|
AC_CONFIG_FILES([ \
|
||||||
Makefile \
|
Makefile \
|
||||||
utils/Makefile \
|
|
||||||
core/Makefile \
|
core/Makefile \
|
||||||
loc_api/Makefile \
|
location/Makefile \
|
||||||
|
gnss/Makefile \
|
||||||
loc-hal.pc \
|
loc-hal.pc \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
AM_CFLAGS = -I./ \
|
AM_CFLAGS = -I./ \
|
||||||
-I../utils \
|
-I../utils \
|
||||||
|
-I../location \
|
||||||
$(LOCPLA_CFLAGS) \
|
$(LOCPLA_CFLAGS) \
|
||||||
$(GPSUTILS_CFLAGS) \
|
$(GPSUTILS_CFLAGS) \
|
||||||
-I$(WORKSPACE)/gps-noship/flp \
|
-I$(WORKSPACE)/gps-noship/flp \
|
||||||
-D__func__=__PRETTY_FUNCTION__ \
|
-D__func__=__PRETTY_FUNCTION__ \
|
||||||
-fno-short-enums
|
-fno-short-enums \
|
||||||
|
-std=c++11
|
||||||
|
|
||||||
libloc_core_la_h_sources = \
|
libloc_core_la_h_sources = \
|
||||||
LocApiBase.h \
|
LocApiBase.h \
|
||||||
|
|
98
gnss/Makefile.am
Normal file
98
gnss/Makefile.am
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
AM_CFLAGS = \
|
||||||
|
$(LOCPLA_CFLAGS) \
|
||||||
|
$(LOCHAL_CFLAGS) \
|
||||||
|
-I./ \
|
||||||
|
-I../utils \
|
||||||
|
-I../core \
|
||||||
|
-I../location \
|
||||||
|
-std=c++11
|
||||||
|
|
||||||
|
libgnss_la_SOURCES = \
|
||||||
|
location_gnss.cpp \
|
||||||
|
GnssAdapter.cpp \
|
||||||
|
Agps.cpp
|
||||||
|
|
||||||
|
if USE_GLIB
|
||||||
|
libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
|
||||||
|
libgnss_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -avoid-version
|
||||||
|
libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
|
||||||
|
else
|
||||||
|
libgnss_la_CFLAGS = $(AM_CFLAGS)
|
||||||
|
libgnss_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
|
||||||
|
libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
libgnss_la_LIBADD = -lstdc++ $(LOCPLA_LIBS) $(LOCHAL_LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
#Create and Install libraries
|
||||||
|
#lib_LTLIBRARIES = libgnss.la
|
||||||
|
|
||||||
|
#library_includedir = $(pkgincludedir)
|
||||||
|
#pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
#pkgconfig_DATA = location-api.pc
|
||||||
|
#EXTRA_DIST = $(pkgconfig_DATA)
|
||||||
|
|
||||||
|
|
||||||
|
libloc_ds_api_CFLAGS = \
|
||||||
|
$(QMIF_CFLAGS) \
|
||||||
|
$(QMI_CFLAGS) \
|
||||||
|
$(DATA_CFLAGS) \
|
||||||
|
-I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api
|
||||||
|
|
||||||
|
libloc_ds_api_la_SOURCES = \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.c
|
||||||
|
|
||||||
|
if USE_GLIB
|
||||||
|
libloc_ds_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) @GLIB_CFLAGS@
|
||||||
|
libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
||||||
|
libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic
|
||||||
|
libloc_ds_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
|
||||||
|
else
|
||||||
|
libloc_ds_api_la_CFLAGS = $(AM_CFLAGS) $(libloc_ds_api_CFLAGS)
|
||||||
|
libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -Wl,--export-dynamic -shared -version-info 1:0:0
|
||||||
|
libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic
|
||||||
|
libloc_ds_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_ds_api_CFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
libloc_ds_api_la_LIBADD = -lstdc++ $(QMIF_LIBS) -lqmiservices -ldsi_netctrl $(GPSUTILS_LIBS) $(LOCPLA_LIBS) \
|
||||||
|
$(GPSUTILS_LIBS)
|
||||||
|
|
||||||
|
libloc_api_v02_CFLAGS = \
|
||||||
|
$(QMIF_CFLAGS) \
|
||||||
|
-I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api \
|
||||||
|
-I$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02
|
||||||
|
|
||||||
|
libloc_api_v02_la_SOURCES = \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.cpp \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.c \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.c \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.c \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.c
|
||||||
|
|
||||||
|
if USE_GLIB
|
||||||
|
libloc_api_v02_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) @GLIB_CFLAGS@
|
||||||
|
libloc_api_v02_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
||||||
|
libloc_api_v02_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
|
||||||
|
else
|
||||||
|
libloc_api_v02_la_CFLAGS = $(AM_CFLAGS) $(libloc_api_v02_CFLAGS)
|
||||||
|
libloc_api_v02_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0
|
||||||
|
libloc_api_v02_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_api_v02_CFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
libloc_api_v02_la_CXXFLAGS = -std=c++0x
|
||||||
|
libloc_api_v02_la_LIBADD = -lstdc++ -lqmi_cci -lqmi_common_so $(QMIF_LIBS) $(LOCPLA_LIBS) ../core/libloc_core.la libloc_ds_api.la
|
||||||
|
|
||||||
|
library_include_HEADERS = \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.h \
|
||||||
|
$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_util_log.h
|
||||||
|
|
||||||
|
library_includedir = $(pkgincludedir)
|
||||||
|
|
||||||
|
#Create and Install libraries
|
||||||
|
lib_LTLIBRARIES = libgnss.la libloc_ds_api.la libloc_api_v02.la
|
|
@ -6,5 +6,5 @@ includedir=@includedir@
|
||||||
Name: loc-hal
|
Name: loc-hal
|
||||||
Description: QTI GPS Loc HAL
|
Description: QTI GPS Loc HAL
|
||||||
Version: @VERSION
|
Version: @VERSION
|
||||||
Libs: -L${libdir} -lloc_core -lloc_eng_so -lloc_ds_api -lloc_api_v02
|
Libs: -L${libdir} -lloc_core -llocation_api -lgnss -lloc_ds_api -lloc_api_v02
|
||||||
Cflags: -I${includedir} -I${includedir}/loc-hal/utils -I${includedir}/loc-hal/core -I${includedir}/loc-hal
|
Cflags: -I${includedir} -I${includedir}/loc-hal -I${includedir}/loc-hal/location -I${includedir}/loc-hal/gnss -I${includedir}/loc-hal/core
|
||||||
|
|
|
@ -25,6 +25,7 @@ LOCAL_CFLAGS += \
|
||||||
-fno-short-enums
|
-fno-short-enums
|
||||||
|
|
||||||
LOCAL_HEADER_LIBRARIES := \
|
LOCAL_HEADER_LIBRARIES := \
|
||||||
|
libloc_pla_headers \
|
||||||
libgps.utils_headers
|
libgps.utils_headers
|
||||||
|
|
||||||
LOCAL_PRELINK_MODULE := false
|
LOCAL_PRELINK_MODULE := false
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include <location_interface.h>
|
#include <location_interface.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <log_util.h>
|
#include <platform_lib_log_util.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define LOG_NDDEBUG 0
|
#define LOG_NDDEBUG 0
|
||||||
#define LOG_TAG "LocSvc_APIClientBase"
|
#define LOG_TAG "LocSvc_APIClientBase"
|
||||||
|
|
||||||
#include <log_util.h>
|
#include <platform_lib_log_util.h>
|
||||||
#include <loc_cfg.h>
|
#include <loc_cfg.h>
|
||||||
#include "LocationAPIClientBase.h"
|
#include "LocationAPIClientBase.h"
|
||||||
|
|
||||||
|
|
39
location/Makefile.am
Normal file
39
location/Makefile.am
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
AM_CFLAGS = \
|
||||||
|
$(LOCPLA_CFLAGS) \
|
||||||
|
$(LOCHAL_CFLAGS) \
|
||||||
|
-I./ \
|
||||||
|
-I../utils \
|
||||||
|
-std=c++11
|
||||||
|
|
||||||
|
liblocation_api_la_SOURCES = \
|
||||||
|
LocationAPI.cpp \
|
||||||
|
LocationAPIClientBase.cpp
|
||||||
|
|
||||||
|
if USE_GLIB
|
||||||
|
liblocation_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
|
||||||
|
liblocation_api_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
|
||||||
|
liblocation_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
|
||||||
|
else
|
||||||
|
liblocation_api_la_CFLAGS = $(AM_CFLAGS)
|
||||||
|
liblocation_api_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
|
||||||
|
liblocation_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
liblocation_api_la_LIBADD = -lstdc++ $(LOCPLA_LIBS) $(LOCHAL_LIBS)
|
||||||
|
|
||||||
|
library_include_HEADERS = \
|
||||||
|
LocationAPI.h \
|
||||||
|
LocationAPIClientBase.h \
|
||||||
|
location_interface.h
|
||||||
|
|
||||||
|
#Create and Install libraries
|
||||||
|
lib_LTLIBRARIES = liblocation_api.la
|
||||||
|
|
||||||
|
library_includedir = $(pkgincludedir)
|
||||||
|
#pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
#pkgconfig_DATA = location-api.pc
|
||||||
|
#EXTRA_DIST = $(pkgconfig_DATA)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
AM_CFLAGS = -Wundef \
|
AM_CFLAGS = -Wundef \
|
||||||
-I./ \
|
-I./ \
|
||||||
|
-std=c++11 \
|
||||||
$(LOCPLA_CFLAGS)
|
$(LOCPLA_CFLAGS)
|
||||||
|
|
||||||
AM_CPPFLAGS = -Wundef \
|
AM_CPPFLAGS = -Wundef \
|
||||||
-I./ \
|
-I./ \
|
||||||
|
-std=c++11 \
|
||||||
$(LOCPLA_CFLAGS)
|
$(LOCPLA_CFLAGS)
|
||||||
|
|
||||||
libgps_utils_so_la_h_sources = \
|
libgps_utils_so_la_h_sources = \
|
||||||
|
|
|
@ -5,7 +5,6 @@ AM_CFLAGS = \
|
||||||
-fno-short-enums
|
-fno-short-enums
|
||||||
|
|
||||||
h_sources = \
|
h_sources = \
|
||||||
../include/platform_lib_android_runtime.h \
|
|
||||||
../include/platform_lib_gettid.h \
|
../include/platform_lib_gettid.h \
|
||||||
../include/platform_lib_includes.h \
|
../include/platform_lib_includes.h \
|
||||||
../include/platform_lib_log_util.h \
|
../include/platform_lib_log_util.h \
|
||||||
|
@ -18,7 +17,6 @@ library_includedir = $(pkgincludedir)
|
||||||
library_include_HEADERS = $(h_sources)
|
library_include_HEADERS = $(h_sources)
|
||||||
|
|
||||||
libloc_pla_la_SOURCES = \
|
libloc_pla_la_SOURCES = \
|
||||||
platform_lib_android_runtime.cpp \
|
|
||||||
platform_lib_gettid.cpp \
|
platform_lib_gettid.cpp \
|
||||||
platform_lib_log_util.cpp \
|
platform_lib_log_util.cpp \
|
||||||
platform_lib_property_service.cpp \
|
platform_lib_property_service.cpp \
|
||||||
|
|
Loading…
Reference in a new issue