renamed: Util/GitDescription.cpp.in -> Util/git_sha.cpp.in
renamed: Util/GitDescription.h -> Util/git_sha.h
This commit is contained in:
parent
a4919ffb45
commit
2caeb4008c
@ -48,8 +48,8 @@ add_custom_target(benchmarks DEPENDS rtree-bench)
|
|||||||
set(BOOST_COMPONENTS date_time filesystem iostreams program_options regex system thread unit_test_framework)
|
set(BOOST_COMPONENTS date_time filesystem iostreams program_options regex system thread unit_test_framework)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_SOURCE_DIR}/Util/GitDescription.cpp.in
|
${CMAKE_SOURCE_DIR}/Util/git_sha.cpp.in
|
||||||
${CMAKE_SOURCE_DIR}/Util/GitDescription.cpp
|
${CMAKE_SOURCE_DIR}/Util/git_sha.cpp
|
||||||
)
|
)
|
||||||
file(GLOB ExtractorGlob extractor/*.cpp)
|
file(GLOB ExtractorGlob extractor/*.cpp)
|
||||||
file(GLOB ImporterGlob data_structures/import_edge.cpp data_structures/external_memory_node.cpp)
|
file(GLOB ImporterGlob data_structures/import_edge.cpp data_structures/external_memory_node.cpp)
|
||||||
@ -88,7 +88,7 @@ set(
|
|||||||
)
|
)
|
||||||
add_library(COORDINATE OBJECT ${CoordinateGlob})
|
add_library(COORDINATE OBJECT ${CoordinateGlob})
|
||||||
add_library(FINGERPRINT OBJECT Util/finger_print.cpp)
|
add_library(FINGERPRINT OBJECT Util/finger_print.cpp)
|
||||||
add_library(GITDESCRIPTION OBJECT Util/GitDescription.cpp)
|
add_library(GITDESCRIPTION OBJECT Util/git_sha.cpp)
|
||||||
add_library(OSRM ${OSRMSources} $<TARGET_OBJECTS:GITDESCRIPTION> $<TARGET_OBJECTS:FINGERPRINT> $<TARGET_OBJECTS:COORDINATE> $<TARGET_OBJECTS:LOGGER> $<TARGET_OBJECTS:PHANTOMNODE>)
|
add_library(OSRM ${OSRMSources} $<TARGET_OBJECTS:GITDESCRIPTION> $<TARGET_OBJECTS:FINGERPRINT> $<TARGET_OBJECTS:COORDINATE> $<TARGET_OBJECTS:LOGGER> $<TARGET_OBJECTS:PHANTOMNODE>)
|
||||||
add_dependencies(FINGERPRINT FingerPrintConfigure)
|
add_dependencies(FINGERPRINT FingerPrintConfigure)
|
||||||
|
|
||||||
@ -139,6 +139,7 @@ endif()
|
|||||||
# Configuring compilers
|
# Configuring compilers
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
# using Clang
|
# using Clang
|
||||||
|
# -Weverything -Wno-c++98-compat
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunreachable-code -pedantic -fPIC")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunreachable-code -pedantic -fPIC")
|
||||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(COLOR_FLAG "-fdiagnostics-color=auto")
|
set(COLOR_FLAG "-fdiagnostics-color=auto")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#define DATA_STORE_OPTIONS_H
|
#define DATA_STORE_OPTIONS_H
|
||||||
|
|
||||||
#include "BoostFileSystemFix.h"
|
#include "BoostFileSystemFix.h"
|
||||||
#include "GitDescription.h"
|
#include "git_sha.hpp"
|
||||||
#include "IniFileUtil.h"
|
#include "IniFileUtil.h"
|
||||||
#include "OSRMException.h"
|
#include "OSRMException.h"
|
||||||
#include "simple_logger.hpp"
|
#include "simple_logger.hpp"
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
|
||||||
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 GIT_DESCRIPTION_H
|
|
||||||
#define GIT_DESCRIPTION_H
|
|
||||||
|
|
||||||
extern char g_GIT_DESCRIPTION[];
|
|
||||||
|
|
||||||
#endif //GIT_DESCRIPTION_H
|
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef PROGAM_OPTIONS_H
|
#ifndef PROGAM_OPTIONS_H
|
||||||
#define PROGAM_OPTIONS_H
|
#define PROGAM_OPTIONS_H
|
||||||
|
|
||||||
#include "GitDescription.h"
|
#include "git_sha.hpp"
|
||||||
#include "IniFileUtil.h"
|
#include "IniFileUtil.h"
|
||||||
#include "OSRMException.h"
|
#include "OSRMException.h"
|
||||||
#include "simple_logger.hpp"
|
#include "simple_logger.hpp"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -25,5 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "git_sha.hpp"
|
||||||
|
|
||||||
#define GIT_DESCRIPTION "${GIT_DESCRIPTION}"
|
#define GIT_DESCRIPTION "${GIT_DESCRIPTION}"
|
||||||
char g_GIT_DESCRIPTION[] = GIT_DESCRIPTION;
|
char g_GIT_DESCRIPTION[] = GIT_DESCRIPTION;
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "../data_structures/static_rtree.hpp"
|
#include "../data_structures/static_rtree.hpp"
|
||||||
#include "../data_structures/restriction_map.hpp"
|
#include "../data_structures/restriction_map.hpp"
|
||||||
|
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/graph_loader.hpp"
|
#include "../Util/graph_loader.hpp"
|
||||||
#include "../Util/integer_range.hpp"
|
#include "../Util/integer_range.hpp"
|
||||||
#include "../Util/lua_util.hpp"
|
#include "../Util/lua_util.hpp"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -63,11 +63,15 @@ struct DescriptorConfig
|
|||||||
DescriptorConfig(const OtherT &other) : instructions(other.print_instructions),
|
DescriptorConfig(const OtherT &other) : instructions(other.print_instructions),
|
||||||
geometry(other.geometry),
|
geometry(other.geometry),
|
||||||
encode_geometry(other.compression),
|
encode_geometry(other.compression),
|
||||||
zoom_level(other.zoom_level) { }
|
zoom_level(other.zoom_level)
|
||||||
|
{
|
||||||
|
BOOST_ASSERT(zoom_level >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
bool instructions;
|
bool instructions;
|
||||||
bool geometry;
|
bool geometry;
|
||||||
bool encode_geometry;
|
bool encode_geometry;
|
||||||
unsigned short zoom_level;
|
short zoom_level;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class DataFacadeT> class BaseDescriptor
|
template <class DataFacadeT> class BaseDescriptor
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "restriction_parser.hpp"
|
#include "restriction_parser.hpp"
|
||||||
#include "scripting_environment.hpp"
|
#include "scripting_environment.hpp"
|
||||||
|
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/IniFileUtil.h"
|
#include "../Util/IniFileUtil.h"
|
||||||
#include "../Util/OSRMException.h"
|
#include "../Util/OSRMException.h"
|
||||||
#include "../Util/simple_logger.hpp"
|
#include "../Util/simple_logger.hpp"
|
||||||
@ -181,7 +181,7 @@ int Extractor::Run(int argc, char *argv[])
|
|||||||
ExtractionNode result_node;
|
ExtractionNode result_node;
|
||||||
ExtractionWay result_way;
|
ExtractionWay result_way;
|
||||||
|
|
||||||
lua_State * local_state = scripting_environment.get_lua_state();
|
lua_State * local_state = scripting_environment.get_lua_state();
|
||||||
|
|
||||||
switch (entity->type())
|
switch (entity->type())
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -27,7 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "Library/OSRM.h"
|
#include "Library/OSRM.h"
|
||||||
#include "Server/Server.h"
|
#include "Server/Server.h"
|
||||||
#include "Util/GitDescription.h"
|
#include "Util/git_sha.hpp"
|
||||||
#include "Util/ProgramOptions.h"
|
#include "Util/ProgramOptions.h"
|
||||||
#include "Util/simple_logger.hpp"
|
#include "Util/simple_logger.hpp"
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/OSRMException.h"
|
#include "../Util/OSRMException.h"
|
||||||
#include "../Util/simple_logger.hpp"
|
#include "../Util/simple_logger.hpp"
|
||||||
#include "../Util/timing_util.hpp"
|
#include "../Util/timing_util.hpp"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../Library/OSRM.h"
|
#include "../Library/OSRM.h"
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/ProgramOptions.h"
|
#include "../Util/ProgramOptions.h"
|
||||||
#include "../Util/simple_logger.hpp"
|
#include "../Util/simple_logger.hpp"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "../data_structures/shared_memory_factory.hpp"
|
#include "../data_structures/shared_memory_factory.hpp"
|
||||||
#include "../Server/DataStructures/SharedDataType.h"
|
#include "../Server/DataStructures/SharedDataType.h"
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/simple_logger.hpp"
|
#include "../Util/simple_logger.hpp"
|
||||||
|
|
||||||
void delete_region(const SharedDataType region)
|
void delete_region(const SharedDataType region)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
Copyright (c) 2015, Project OSRM, Dennis Luxen, others
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
@ -25,7 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../Util/GitDescription.h"
|
#include "../Util/git_sha.hpp"
|
||||||
#include "../Util/simple_logger.hpp"
|
#include "../Util/simple_logger.hpp"
|
||||||
#include "../Server/DataStructures/SharedBarriers.h"
|
#include "../Server/DataStructures/SharedBarriers.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user