diff options
Diffstat (limited to 'navit/vehicle')
-rw-r--r-- | navit/vehicle/file/CMakeLists.txt | 3 | ||||
-rw-r--r-- | navit/vehicle/gpsd/CMakeLists.txt | 8 | ||||
-rw-r--r-- | navit/vehicle/gpsd/vehicle_gpsd.c | 2 | ||||
-rw-r--r-- | navit/vehicle/gpsd_dbus/vehicle_gpsd_dbus.c | 2 |
4 files changed, 12 insertions, 3 deletions
diff --git a/navit/vehicle/file/CMakeLists.txt b/navit/vehicle/file/CMakeLists.txt index 3f14275c..764f412f 100644 --- a/navit/vehicle/file/CMakeLists.txt +++ b/navit/vehicle/file/CMakeLists.txt @@ -1,4 +1,7 @@ module_add_library(vehicle_file vehicle_file.c) +set (vehicle_pipe_TYPE ${vehicle_file_TYPE}) +set (vehicle_serial_TYPE ${vehicle_file_TYPE}) +set (vehicle_socket_TYPE ${vehicle_file_TYPE}) module_add_library(vehicle_pipe vehicle_pipe.c) module_add_library(vehicle_serial vehicle_serial.c) module_add_library(vehicle_socket vehicle_socket.c) diff --git a/navit/vehicle/gpsd/CMakeLists.txt b/navit/vehicle/gpsd/CMakeLists.txt index 913bc131..091df2f7 100644 --- a/navit/vehicle/gpsd/CMakeLists.txt +++ b/navit/vehicle/gpsd/CMakeLists.txt @@ -1,2 +1,8 @@ -module_add_library(vehicle_gpsd vehicle_gpsd.c) +module_add_library(vehicle_gpsd vehicle_gpsd.c) +if (LIBGPS19_FOUND) + set_property( + TARGET vehicle_gpsd + APPEND PROPERTY COMPILE_DEFINITIONS HAVE_LIBGPS19=1 + ) +endif (LIBGPS19_FOUND) diff --git a/navit/vehicle/gpsd/vehicle_gpsd.c b/navit/vehicle/gpsd/vehicle_gpsd.c index 45593993..7d1ad9e8 100644 --- a/navit/vehicle/gpsd/vehicle_gpsd.c +++ b/navit/vehicle/gpsd/vehicle_gpsd.c @@ -405,7 +405,7 @@ vehicle_gpsd_position_attr_get(struct vehicle_priv *priv, return 1; } -struct vehicle_methods vehicle_gpsd_methods = { +static struct vehicle_methods vehicle_gpsd_methods = { vehicle_gpsd_destroy, vehicle_gpsd_position_attr_get, }; diff --git a/navit/vehicle/gpsd_dbus/vehicle_gpsd_dbus.c b/navit/vehicle/gpsd_dbus/vehicle_gpsd_dbus.c index 8f83a357..79ff13b5 100644 --- a/navit/vehicle/gpsd_dbus/vehicle_gpsd_dbus.c +++ b/navit/vehicle/gpsd_dbus/vehicle_gpsd_dbus.c @@ -210,7 +210,7 @@ vehicle_gpsd_dbus_set_attr(struct vehicle_priv *priv, struct attr *attr) return vehicle_gpsd_dbus_set_attr_do(priv, attr, 0); } -struct vehicle_methods vehicle_gpsd_methods = { +static struct vehicle_methods vehicle_gpsd_methods = { vehicle_gpsd_dbus_destroy, vehicle_gpsd_dbus_position_attr_get, vehicle_gpsd_dbus_set_attr, |