Permalink
Browse files

trunk replaced with 1.0RC1

  • Loading branch information...
1 parent 486aacb commit 76e6c88f5a66df36b74739893f4e743e61697a4a anton committed Oct 2, 2007
Showing with 8,144 additions and 0 deletions.
  1. +23 −0 BOOST_LICENSE_1_0.txt
  2. +98 −0 CMakeLists.txt
  3. +552 −0 README.routing
  4. +42 −0 RELEASE_NOTES
  5. +3 −0 cmake/CMakeList.txt
  6. +20 −0 cmake/CheckCCompilerFlag.cmake
  7. +43 −0 cmake/FindCGAL.cmake
  8. +35 −0 cmake/FindGAUL.cmake
  9. +55 −0 cmake/FindPostgreSQL.cmake
  10. +19 −0 cmake/MacroAddCompileFlags.cmake
  11. +18 −0 cmake/MacroAddLinkFlags.cmake
  12. +21 −0 cmake/MacroLibrary.cmake
  13. +28 −0 cmake/MacroOptionalFindPackage.cmake
  14. +14 −0 cmake/PlatformSpecific.cmake
  15. +1 −0 core/CMakeLists.txt
  16. +83 −0 core/sql/routing_core.sql
  17. +1,163 −0 core/sql/routing_core_wrappers.sql
  18. +4 −0 core/src/CMakeLists.txt
  19. +573 −0 core/src/astar.c
  20. +50 −0 core/src/astar.h
  21. +273 −0 core/src/astar_boost_wrapper.cpp
  22. +237 −0 core/src/boost_wrapper.cpp
  23. +446 −0 core/src/dijkstra.c
  24. +50 −0 core/src/dijkstra.h
  25. +44 −0 core/src/edge_visitors.hpp
  26. +546 −0 core/src/shooting_star.c
  27. +63 −0 core/src/shooting_star.h
  28. +382 −0 core/src/shooting_star_boost_wrapper.cpp
  29. +182 −0 core/src/shooting_star_relax.hpp
  30. +561 −0 core/src/shooting_star_search.hpp
  31. +1 −0 extra/CMakeLists.txt
  32. +1 −0 extra/driving_distance/CMakeLists.txt
  33. +36 −0 extra/driving_distance/sql/routing_dd.sql
  34. +73 −0 extra/driving_distance/sql/routing_dd_wrappers.sql
  35. +24 −0 extra/driving_distance/src/CMakeLists.txt
  36. +363 −0 extra/driving_distance/src/alpha.c
  37. +46 −0 extra/driving_distance/src/alpha.h
  38. +179 −0 extra/driving_distance/src/alpha_drivedist.cpp
  39. +167 −0 extra/driving_distance/src/boost_drivedist.cpp
  40. +472 −0 extra/driving_distance/src/drivedist.c
  41. +37 −0 extra/driving_distance/src/drivedist.h
  42. +1 −0 extra/tsp/CMakeLists.txt
  43. +28 −0 extra/tsp/sql/routing_tsp.sql
  44. +228 −0 extra/tsp/sql/routing_tsp_wrappers.sql
  45. +20 −0 extra/tsp/src/CMakeLists.txt
  46. +480 −0 extra/tsp/src/tsp.c
  47. +44 −0 extra/tsp/src/tsp.h
  48. +315 −0 extra/tsp/src/tsp_solver.cpp
View
@@ -0,0 +1,23 @@
+Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,98 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.3)
+PROJECT(PGROUTING)
+
+#-----------------------------------------------------------------------------
+# PGROUTING version number.
+SET(PGROUTING_VERSION_MAJOR "1")
+SET(PGROUTING_VERSION_MINOR "0")
+SET(PGROUTING_VERSION_PATCH "0")
+
+SET(PGROUTING_VERSION_STRING "${PGROUTING_VERSION_MAJOR}.${PGROUTING_VERSION_MINOR}.${PGROUTING_VERSION_PATCH}-RC1")
+
+add_subdirectory(cmake)
+SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+
+include (MacroLibrary)
+
+macro_optional_find_package(PostgreSQL)
+
+EXEC_PROGRAM(pg_config
+ ARGS --pkglibdir
+ OUTPUT_VARIABLE LIB_DIR)
+
+IF(LIB_DIR)
+ MESSAGE("Output directory for libraries is set to ${LIB_DIR}")
+ELSE(LIB_DIR)
+ SET(LIB_DIR ${PGROUTING_BINARY_DIR}/lib)
+ MESSAGE("pg_config not found, output directory for libraries is set to ${PGROUTING_BINARY_DIR}/lib")
+ENDIF(LIB_DIR)
+
+if(PGROUTING_CORE_INCLUDE_DIR)
+ set(PGROUTING_CORE_FOUND TRUE)
+
+else(PGROUTING_CORE_INCLUDE_DIR)
+ FIND_PATH(PGROUTING_CORE_INCLUDE_DIR dijkstra.h
+ PATHS
+ ${CMAKE_CURRENT_SOURCE_DIR}/core/src
+ )
+
+ if(PGROUTING_CORE_INCLUDE_DIR)
+ set(PGROUTING_CORE_FOUND TRUE)
+ message(STATUS "Found PGROUTING_CORE core: ${PGROUTING_CORE_INCLUDE_DIR}")
+ INCLUDE_DIRECTORIES(${PGROUTING_CORE_INCLUDE_DIR})
+ else(PGROUTING_CORE_INCLUDE_DIR)
+ set(PGROUTING_CORE_FOUND FALSE)
+ message(STATUS "PGROUTING_CORE core not found.")
+ endif(PGROUTING_CORE_INCLUDE_DIR)
+
+ mark_as_advanced(PGROUTING_CORE_INCLUDE_DIR)
+
+endif(PGROUTING_CORE_INCLUDE_DIR)
+
+OPTION(WITH_TSP "Build TSP library" OFF)
+OPTION(WITH_DD "Build Driving distance library" OFF)
+
+# Recurse into the subdirectories. This does not actually
+# cause another cmake executable to run. The same process will walk through
+# the project's entire directory structure.
+SUBDIRS(core/src)
+
+IF(WITH_TSP)
+ADD_SUBDIRECTORY(extra/tsp/src)
+macro_optional_find_package(GAUL)
+ENDIF(WITH_TSP)
+
+IF(WITH_DD)
+ADD_SUBDIRECTORY(extra/driving_distance/src)
+macro_optional_find_package(CGAL)
+ENDIF(WITH_DD)
+
+#SET(LIBRARY_OUTPUT_PATH ${PGROUTING_BINARY_DIR}/lib)
+
+IF(UNIX)
+ SET(LIBRARY_OUTPUT_PATH ${LIB_DIR})
+ SET(SQL_INSTALL_PATH /usr/share/postlbs)
+ELSE(UNIX)
+ SET(LIBRARY_OUTPUT_PATH ${PGROUTING_BINARY_DIR}/lib)
+ SET(SQL_INSTALL_PATH ${PGROUTING_BINARY_DIR}/lib)
+ENDIF(UNIX)
+
+SET(PGROUTING_INCLUDE_DIRECTORIES ${PGROUTING_SOURCE_DIR}/core ${PGROUTING_SOURCE_DIR}/core/src ${PGROUTING_SOURCE_DIR}/extra ${PGROUTING_SOURCE_DIR}/extra/tsp ${PGROUTING_SOURCE_DIR}/extra/tsp/src ${PGROUTING_SOURCE_DIR}/extra/driving_distance ${PGROUTING_SOURCE_DIR}/extra/driving_distance/src
+)
+
+INCLUDE_DIRECTORIES(. ${PGROUTING_INCLUDE_DIRECTORIES})
+
+SET(CMAKE_CXX_FLAGS=-O2 -g -Wall -fpic)
+
+CONFIGURE_FILE(core/sql/routing_core.sql ${SQL_INSTALL_PATH}/routing_core.sql COPYONLY)
+CONFIGURE_FILE(core/sql/routing_core_wrappers.sql ${SQL_INSTALL_PATH}/routing_core_wrappers.sql COPYONLY)
+
+IF(WITH_TSP)
+CONFIGURE_FILE(extra/tsp/sql/routing_tsp.sql ${SQL_INSTALL_PATH}/routing_tsp.sql COPYONLY)
+CONFIGURE_FILE(extra/tsp/sql/routing_tsp_wrappers.sql ${SQL_INSTALL_PATH}/routing_tsp_wrappers.sql COPYONLY)
+ENDIF(WITH_TSP)
+
+IF(WITH_DD)
+CONFIGURE_FILE(extra/driving_distance/sql/routing_dd.sql ${SQL_INSTALL_PATH}/routing_dd.sql COPYONLY)
+CONFIGURE_FILE(extra/driving_distance/sql/routing_dd_wrappers.sql ${SQL_INSTALL_PATH}/routing_dd_wrappers.sql COPYONLY)
+ENDIF(WITH_DD)
Oops, something went wrong. Retry.

0 comments on commit 76e6c88

Please sign in to comment.