Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
31be88b
postgres 10 adding float.h to vehicles_input
cvvergara May 23, 2017
5c8ab5f
fixing preprocessor conditional
cvvergara May 23, 2017
617e54a
fixing preprocessor conditional 1
cvvergara May 23, 2017
cc4bfed
fixing preprocessor conditional 2
cvvergara May 23, 2017
8367b5b
jenkins: alpha.c:283:16: error: DBL_MAX undeclared
cvvergara May 23, 2017
dc3c799
fixing contition in CMakelists
cvvergara May 23, 2017
3fd6ca2
trying install targets
cvvergara May 23, 2017
cb6e8ca
jenkins checking folder contents
cvvergara May 23, 2017
568b39f
jenkins fixing copies to edb folder contents
cvvergara May 23, 2017
420f58c
showing the create extenstion statement
cvvergara May 23, 2017
5675946
fix: missed the copying of control file
cvvergara May 23, 2017
152cca9
reverting testing changes
cvvergara May 23, 2017
1f347a5
fixed the directory for contrl
cvvergara May 23, 2017
47b2528
changed label graph test
cvvergara May 23, 2017
9331e33
testing pickDeliver on Jenkins & appveyor
cvvergara May 23, 2017
197b6e4
yet again testing pickDeliver both functions
cvvergara May 23, 2017
00de27e
minimal testing of pickDeliverEuclidean
cvvergara May 23, 2017
e4ba660
giving the data in order
cvvergara May 23, 2017
f96ac38
forgot the euclidean test
cvvergara May 23, 2017
e0ee2a7
now forgot the pickDeliver test files for cygwin
cvvergara May 23, 2017
1059ea6
updating doc-pickDeliverEuclidean-cygwin.result
cvvergara May 23, 2017
348acdb
fixed a type mismatch
cvvergara May 23, 2017
0be860f
cleand bad stored results for appveyor
cvvergara May 23, 2017
d0b2c26
saving new results for appveyor
cvvergara May 23, 2017
76f10ca
minimal changes
cvvergara May 23, 2017
a37c561
using the correct name in pickDeliver test
cvvergara May 23, 2017
2b8df19
checking the tests are the same in pickdeliver appveyor and travis
cvvergara May 23, 2017
44962df
Clean CMakelists of unused code
cvvergara May 24, 2017
d955e72
wrap or comment lines 496-L497
cvvergara May 24, 2017
bd6fcf2
Merge branch 'develop' into fix/postgres10
cvvergara May 24, 2017
dde186c
removing problem with -fpic
cvvergara May 24, 2017
1a21f35
removing problem with vs cmkae directives
cvvergara May 24, 2017
5354fe6
appveyor removing problem with vs cmkae directives 2
cvvergara May 24, 2017
912e837
appveyor removing problem with vs cmkae directives 3
cvvergara May 24, 2017
2265831
appveyor removing problem with vs cmkae directives 4
cvvergara May 24, 2017
7a5b805
appveyor removing problem with vs cmkae directives 5
cvvergara May 24, 2017
e864823
appveyor removing problem with vs cmkae directives 6
cvvergara May 24, 2017
fe73e53
appveyor removing problem with vs cmkae directives 7
cvvergara May 24, 2017
b5c4c78
appveyor removing problem with vs cmkae directives 8
cvvergara May 24, 2017
ce58585
removing unused code on CMalelists
cvvergara May 24, 2017
a1a7674
testing a wrapper of stdint.h
cvvergara May 24, 2017
1bf6ecc
finish testing wrapping stdint.h didnt work
cvvergara May 24, 2017
3eaad6d
sql-scripts (deleted)
cvvergara May 24, 2017
38dd4ca
removed unused test files for cugwin pickDeliver
cvvergara May 24, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 15 additions & 27 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,8 @@ if(WIN32)
endif(WIN32)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPGSQL_VERSION=${PGSQL_VERSION}")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DPGSQL_VERSION=${PGSQL_VERSION}")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DPGSQL_VERSION=${PGSQL_VERSION}")
message(STATUS "PGSQL_VERSION=${PGSQL_VERSION}")



#---------------------------------------------
Expand Down Expand Up @@ -482,24 +481,28 @@ endif()
#compiler directives
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# for UNIX & JENKINS
if(UNIX OR (WIN32 AND NOT MSVC))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()


CHECK_C_COMPILER_FLAG("-frounding-math" C_COMPILER_SUPPORTS_ROUNDING_MATH)
CHECK_CXX_COMPILER_FLAG("-frounding-math" CXX_COMPILER_SUPPORTS_ROUNDING_MATH)


if(NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ")
CHECK_C_COMPILER_FLAG("-fPIC" C_COMPILER_SUPPORTS_FPIC)
CHECK_CXX_COMPILER_FLAG("-fPIC" CXX_COMPILER_SUPPORTS_FPIC)
if(C_COMPILER_SUPPORTS_FPIC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC ")
endif()
if(CXX_COMPILER_SUPPORTS_FPIC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ")
endif()
endif()

if(WIN32 AND MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}")
endif()

CHECK_C_COMPILER_FLAG("-frounding-math" C_COMPILER_SUPPORTS_ROUNDING_MATH)
CHECK_CXX_COMPILER_FLAG("-frounding-math" CXX_COMPILER_SUPPORTS_ROUNDING_MATH)
if(C_COMPILER_SUPPORTS_ROUNDING_MATH)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -frounding-math ")
endif()
Expand All @@ -511,6 +514,8 @@ endif()
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wmissing-prototypes -W -Wunused -Wuninitialized -Wextra -Wdouble-promotion")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -fno-implicit-inline-templates -Wconversion -pedantic -W -Wunused -Wuninitialized -Wextra -Wdouble-promotion")



#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

if (PGROUTING_DEBUG)
Expand Down Expand Up @@ -589,7 +594,6 @@ add_library(${PGROUTING_LIB_NAME}
${LIBRARY_MODE_TARGET}
${PGROUTING_OBJECTS})

install(TARGETS ${PGROUTING_LIB_NAME} DESTINATION ${LIBRARY_INSTALL_PATH})


if(APPLE)
Expand Down Expand Up @@ -618,24 +622,8 @@ add_subdirectory(sql)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------

if (WIN32 AND MSVC)
SET (LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/Release/libpgrouting-2.5.dll")
else()
SET (LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/libpgrouting-2.5.so")
endif()

# this will create the commands in the makefile under the install target
#if(UNIX)
# file(GLOB_RECURSE LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/*.so")
#else()
# file(GLOB_RECURSE LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/*.dll")
#endif()

message(STATUS "LIBS_TO_INSTALL=${LIBS_TO_INSTALL}")

install(FILES ${LIBS_TO_INSTALL} DESTINATION ${LIB_DIR})


install(TARGETS ${PGROUTING_LIB_NAME} DESTINATION ${LIBRARY_INSTALL_PATH})
install(FILES
${PgRouting_SQL_FILES_TO_INSTALL}
DESTINATION "${SHARE_DIR}"
Expand Down
22 changes: 22 additions & 0 deletions include/c_common/postgres_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic ignored "-pedantic"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-pedantic"
#endif

#include <postgres.h>


Expand All @@ -40,6 +44,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif

#include "executor/spi.h"

#ifdef __GNUC__
Expand All @@ -48,12 +57,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic pop
#endif

#ifdef __clang__
#pragma clang diagnostic pop
#pragma clang diagnostic pop
#pragma clang diagnostic pop
#endif

#include "utils/builtins.h" // for text_to_cstring

#if PGSQL_VERSION > 92
#include "access/htup_details.h"
#endif

#ifdef __clang__
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-parameter"
Expand All @@ -66,6 +84,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#pragma GCC diagnostic pop
#endif

#ifdef __clang__
#pragma clang diagnostic pop
#endif


void pgr_send_error(int errcode);
void pgr_SPI_finish(void);
Expand Down
151 changes: 0 additions & 151 deletions sql-scripts/scripts/build-extension-file.pl

This file was deleted.

4 changes: 4 additions & 0 deletions src/alpha_shape/src/alpha.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#include "c_common/postgres_connection.h"

#if PGSQL_VERSION == 100
#include <float.h>
#endif

#include "catalog/pg_type.h"

#include <stdint.h>
Expand Down
5 changes: 5 additions & 0 deletions src/common/src/vehicles_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <float.h>
#endif

#if PGSQL_VERSION == 100
#include <float.h>
#endif


#include "c_types/column_info_t.h"

#include "c_common/debug_macro.h"
Expand Down
12 changes: 6 additions & 6 deletions src/label_graph/test/doc-pgr_labelGraph.result
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ SELECT pgr_labelGraph('edge_table', 'id', 'source', 'target', 'subgraph');
OK
(1 row)

SELECT subgraph, count(*) FROM edge_table group by subgraph;
subgraph | count
----------+-------
1 | 16
3 | 1
2 | 1
SELECT DISTINCT subgraph FROM edge_table ORDER BY subgraph;
subgraph
----------
1
2
3
(3 rows)

--q2
Expand Down
2 changes: 1 addition & 1 deletion src/label_graph/test/doc-pgr_labelGraph.test.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\echo --q1
SET client_min_messages TO WARNING;
SELECT pgr_labelGraph('edge_table', 'id', 'source', 'target', 'subgraph');
SELECT subgraph, count(*) FROM edge_table group by subgraph;
SELECT DISTINCT subgraph FROM edge_table ORDER BY subgraph;
\echo --q2
2 changes: 1 addition & 1 deletion src/pickDeliver/src/pickDeliverEuclidean.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pickDeliverEuclidean(PG_FUNCTION_ARGS) {
values[2] = Int64GetDatum(result_tuples[call_cntr].vehicle_id);
values[3] = Int32GetDatum(result_tuples[call_cntr].vehicle_seq);
values[4] = Int64GetDatum(result_tuples[call_cntr].order_id);
values[5] = Int64GetDatum(result_tuples[call_cntr].stop_type + 1);
values[5] = Int32GetDatum(result_tuples[call_cntr].stop_type + 1);
values[6] = Float8GetDatum(result_tuples[call_cntr].cargo);
values[7] = Float8GetDatum(result_tuples[call_cntr].travelTime);
values[8] = Float8GetDatum(result_tuples[call_cntr].arrivalTime);
Expand Down
Loading