Merge pull request #1743 from c0nk/wip-build
Don't generate files in source tree
This commit is contained in:
		
						commit
						bb49e03435
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -40,8 +40,6 @@ Thumbs.db | ||||
| # build related files # | ||||
| ####################### | ||||
| /build/ | ||||
| /util/fingerprint_impl.hpp | ||||
| /util/git_sha.cpp | ||||
| /cmake/postinst | ||||
| 
 | ||||
| # Eclipse related files # | ||||
|  | ||||
| @ -32,13 +32,16 @@ endif() | ||||
| option(ENABLE_JSON_LOGGING "Adds additional JSON debug logging to the response" OFF) | ||||
| option(BUILD_TOOLS "Build OSRM tools" OFF) | ||||
| 
 | ||||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||||
| include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/) | ||||
| include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/) | ||||
| include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libosmium/include/) | ||||
| 
 | ||||
| add_custom_target(FingerPrintConfigure ALL | ||||
|   ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_SOURCE_DIR} | ||||
|     -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FingerPrint-Config.cmake | ||||
| add_custom_target(FingerPrintConfigure ALL ${CMAKE_COMMAND} | ||||
|   "-DOUTPUT_DIR=${CMAKE_CURRENT_BINARY_DIR}" | ||||
|   "-DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}" | ||||
|   -P "${CMAKE_CURRENT_SOURCE_DIR}/cmake/FingerPrint-Config.cmake" | ||||
|   COMMENT "Configuring revision fingerprint" | ||||
|   VERBATIM) | ||||
| 
 | ||||
| @ -49,7 +52,7 @@ set(BOOST_COMPONENTS date_time filesystem iostreams program_options regex system | ||||
| 
 | ||||
| configure_file( | ||||
|   ${CMAKE_CURRENT_SOURCE_DIR}/util/version.hpp.in | ||||
|   ${CMAKE_CURRENT_SOURCE_DIR}/util/version.hpp | ||||
|   ${CMAKE_CURRENT_BINARY_DIR}/util/version.hpp | ||||
| ) | ||||
| file(GLOB ExtractorGlob extractor/*.cpp data_structures/hilbert_value.cpp) | ||||
| file(GLOB ImporterGlob data_structures/import_edge.cpp data_structures/external_memory_node.cpp data_structures/raster_source.cpp) | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| set(OLDFILE ${SOURCE_DIR}/util/fingerprint_impl.hpp) | ||||
| set(OLDFILE ${OUTPUT_DIR}/util/fingerprint_impl.hpp) | ||||
| set(NEWFILE ${OLDFILE}.tmp) | ||||
| set(INFILE ${OLDFILE}.in) | ||||
| set(INFILE ${SOURCE_DIR}/util/fingerprint_impl.hpp.in) | ||||
| file(MD5 ${SOURCE_DIR}/prepare.cpp MD5PREPARE) | ||||
| file(MD5 ${SOURCE_DIR}/data_structures/static_rtree.hpp MD5RTREE) | ||||
| file(MD5 ${SOURCE_DIR}/util/graph_loader.hpp MD5GRAPH) | ||||
| @ -13,7 +13,7 @@ file(MD5 ${NEWFILE} MD5NEW) | ||||
| if (EXISTS ${OLDFILE}) | ||||
|     file(MD5 ${OLDFILE} MD5OLD) | ||||
|     if(NOT ${MD5NEW} STREQUAL ${MD5OLD}) | ||||
| 	    file(REMOVE_RECURSE ${OLDFILE}) | ||||
|         file(REMOVE_RECURSE ${OLDFILE}) | ||||
|         file(RENAME ${NEWFILE} ${OLDFILE}) | ||||
|     else() | ||||
|         file(REMOVE_RECURSE ${NEWFILE}) | ||||
|  | ||||
| @ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| #include "contractor_options.hpp" | ||||
| 
 | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
| 
 | ||||
| #include <boost/filesystem.hpp> | ||||
|  | ||||
| @ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| #include "extractor_options.hpp" | ||||
| 
 | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/ini_file.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
| 
 | ||||
|  | ||||
| @ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/osrm_exception.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
| #include "../util/timing_util.hpp" | ||||
|  | ||||
| @ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| */ | ||||
| 
 | ||||
| #include "../library/osrm.hpp" | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/json_renderer.hpp" | ||||
| #include "../util/routed_options.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
|  | ||||
| @ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| #include "../data_structures/shared_memory_factory.hpp" | ||||
| #include "../server/data_structures/shared_datatype.hpp" | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
| 
 | ||||
| void delete_region(const SharedDataType region) | ||||
|  | ||||
| @ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| #include "../util/version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "../util/simple_logger.hpp" | ||||
| #include "../server/data_structures/shared_barriers.hpp" | ||||
| 
 | ||||
|  | ||||
| @ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| #ifndef DATASTORE_OPTIONS_HPP | ||||
| #define DATASTORE_OPTIONS_HPP | ||||
| 
 | ||||
| #include "version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "ini_file.hpp" | ||||
| #include "osrm_exception.hpp" | ||||
| #include "simple_logger.hpp" | ||||
|  | ||||
| @ -25,5 +25,5 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| #include "fingerprint.hpp" | ||||
| #include "fingerprint_impl.hpp" | ||||
| #include "util/fingerprint.hpp" | ||||
| #include "util/fingerprint_impl.hpp" | ||||
|  | ||||
| @ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| #include "osrm_exception.hpp" | ||||
| #include "util/osrm_exception.hpp" | ||||
| 
 | ||||
| #include <boost/uuid/name_generator.hpp> | ||||
| #include <boost/uuid/uuid_generators.hpp> | ||||
|  | ||||
| @ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| #ifndef ROUTED_OPTIONS_HPP | ||||
| #define ROUTED_OPTIONS_HPP | ||||
| 
 | ||||
| #include "version.hpp" | ||||
| #include "util/version.hpp" | ||||
| #include "ini_file.hpp" | ||||
| #include "osrm_exception.hpp" | ||||
| #include "simple_logger.hpp" | ||||
|  | ||||
| @ -1,37 +0,0 @@ | ||||
| /*
 | ||||
| 
 | ||||
| Copyright (c) 2015, Project OSRM contributors | ||||
| All rights reserved. | ||||
| 
 | ||||
| Redistribution and use in source and binary forms, with or without modification, | ||||
| are permitted provided that the following conditions are met: | ||||
| 
 | ||||
| Redistributions of source code must retain the above copyright notice, this list | ||||
| of conditions and the following disclaimer. | ||||
| Redistributions in binary form must reproduce the above copyright notice, this | ||||
| list of conditions and the following disclaimer in the documentation and/or | ||||
| other materials provided with the distribution. | ||||
| 
 | ||||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||||
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||||
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||||
| ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||||
| (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||||
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||||
| ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||||
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| #ifndef VERSION_HPP | ||||
| #define VERSION_HPP | ||||
| 
 | ||||
| #define OSRM_VERSION_MAJOR "4" | ||||
| #define OSRM_VERSION_MINOR "8" | ||||
| #define OSRM_VERSION_PATCH "0" | ||||
| 
 | ||||
| #define OSRM_VERSION "v" OSRM_VERSION_MAJOR "." OSRM_VERSION_MINOR "." OSRM_VERSION_PATCH | ||||
| 
 | ||||
| #endif // VERSION_HPP
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user