fix handling/install of sparsehash headers
This commit is contained in:
parent
193c7d9d20
commit
6b2b66b894
8 changed files with 16 additions and 13 deletions
|
@ -1666,6 +1666,9 @@ if not HELP_REQUESTED:
|
||||||
# Install headers
|
# Install headers
|
||||||
SConscript('include/build.py')
|
SConscript('include/build.py')
|
||||||
|
|
||||||
|
# Install auxiliary headers
|
||||||
|
SConscript('deps/build.py')
|
||||||
|
|
||||||
# Build the requested and able-to-be-compiled input plug-ins
|
# Build the requested and able-to-be-compiled input plug-ins
|
||||||
GDAL_BUILT = False
|
GDAL_BUILT = False
|
||||||
OGR_BUILT = False
|
OGR_BUILT = False
|
||||||
|
|
6
deps/sparsehash/dense_hash_map
vendored
6
deps/sparsehash/dense_hash_map
vendored
|
@ -96,13 +96,13 @@
|
||||||
#ifndef _DENSE_HASH_MAP_H_
|
#ifndef _DENSE_HASH_MAP_H_
|
||||||
#define _DENSE_HASH_MAP_H_
|
#define _DENSE_HASH_MAP_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <algorithm> // needed by stl_alloc
|
#include <algorithm> // needed by stl_alloc
|
||||||
#include <functional> // for equal_to<>, select1st<>, etc
|
#include <functional> // for equal_to<>, select1st<>, etc
|
||||||
#include <memory> // for alloc
|
#include <memory> // for alloc
|
||||||
#include <utility> // for pair<>
|
#include <utility> // for pair<>
|
||||||
#include <deps/sparsehash/internal/densehashtable.h> // IWYU pragma: export
|
#include <mapnik/sparsehash/internal/densehashtable.h> // IWYU pragma: export
|
||||||
#include <deps/sparsehash/internal/libc_allocator_with_realloc.h>
|
#include <mapnik/sparsehash/internal/libc_allocator_with_realloc.h>
|
||||||
#include HASH_FUN_H // for hash<>
|
#include HASH_FUN_H // for hash<>
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
||||||
|
|
8
deps/sparsehash/internal/densehashtable.h
vendored
8
deps/sparsehash/internal/densehashtable.h
vendored
|
@ -89,7 +89,7 @@
|
||||||
#ifndef _DENSEHASHTABLE_H_
|
#ifndef _DENSEHASHTABLE_H_
|
||||||
#define _DENSEHASHTABLE_H_
|
#define _DENSEHASHTABLE_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h> // for FILE, fwrite, fread
|
#include <stdio.h> // for FILE, fwrite, fread
|
||||||
#include <algorithm> // For swap(), eg
|
#include <algorithm> // For swap(), eg
|
||||||
|
@ -97,9 +97,9 @@
|
||||||
#include <limits> // for numeric_limits
|
#include <limits> // for numeric_limits
|
||||||
#include <memory> // For uninitialized_fill
|
#include <memory> // For uninitialized_fill
|
||||||
#include <utility> // for pair
|
#include <utility> // for pair
|
||||||
#include <deps/sparsehash/internal/hashtable-common.h>
|
#include <mapnik/sparsehash/internal/hashtable-common.h>
|
||||||
#include <deps/sparsehash/internal/libc_allocator_with_realloc.h>
|
#include <mapnik/sparsehash/internal/libc_allocator_with_realloc.h>
|
||||||
#include <deps/sparsehash/type_traits.h>
|
#include <mapnik/sparsehash/type_traits.h>
|
||||||
#include <stdexcept> // For length_error
|
#include <stdexcept> // For length_error
|
||||||
|
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
2
deps/sparsehash/internal/hashtable-common.h
vendored
2
deps/sparsehash/internal/hashtable-common.h
vendored
|
@ -40,7 +40,7 @@
|
||||||
#ifndef UTIL_GTL_HASHTABLE_COMMON_H_
|
#ifndef UTIL_GTL_HASHTABLE_COMMON_H_
|
||||||
#define UTIL_GTL_HASHTABLE_COMMON_H_
|
#define UTIL_GTL_HASHTABLE_COMMON_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h> // for size_t
|
#include <stddef.h> // for size_t
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#ifndef UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
#ifndef UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
||||||
#define UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
#define UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <stdlib.h> // for malloc/realloc/free
|
#include <stdlib.h> // for malloc/realloc/free
|
||||||
#include <stddef.h> // for ptrdiff_t
|
#include <stddef.h> // for ptrdiff_t
|
||||||
#include <new> // for placement new
|
#include <new> // for placement new
|
||||||
|
|
2
deps/sparsehash/template_util.h
vendored
2
deps/sparsehash/template_util.h
vendored
|
@ -49,7 +49,7 @@
|
||||||
#ifndef BASE_TEMPLATE_UTIL_H_
|
#ifndef BASE_TEMPLATE_UTIL_H_
|
||||||
#define BASE_TEMPLATE_UTIL_H_
|
#define BASE_TEMPLATE_UTIL_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
||||||
// Types small_ and big_ are guaranteed such that sizeof(small_) <
|
// Types small_ and big_ are guaranteed such that sizeof(small_) <
|
||||||
|
|
4
deps/sparsehash/type_traits.h
vendored
4
deps/sparsehash/type_traits.h
vendored
|
@ -57,10 +57,10 @@
|
||||||
#ifndef BASE_TYPE_TRAITS_H_
|
#ifndef BASE_TYPE_TRAITS_H_
|
||||||
#define BASE_TYPE_TRAITS_H_
|
#define BASE_TYPE_TRAITS_H_
|
||||||
|
|
||||||
#include <deps/sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <utility> // For pair
|
#include <utility> // For pair
|
||||||
|
|
||||||
#include <deps/sparsehash/template_util.h> // For true_type and false_type
|
#include <mapnik/sparsehash/template_util.h> // For true_type and false_type
|
||||||
|
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#define USE_DENSE_HASH_MAP
|
#define USE_DENSE_HASH_MAP
|
||||||
|
|
||||||
#ifdef USE_DENSE_HASH_MAP
|
#ifdef USE_DENSE_HASH_MAP
|
||||||
#include "deps/sparsehash/dense_hash_map"
|
#include <mapnik/sparsehash/dense_hash_map>
|
||||||
typedef google::dense_hash_map<unsigned int, unsigned char> rgba_hash_table;
|
typedef google::dense_hash_map<unsigned int, unsigned char> rgba_hash_table;
|
||||||
#else
|
#else
|
||||||
#warning compiling without dense_hash_map
|
#warning compiling without dense_hash_map
|
||||||
|
|
Loading…
Reference in a new issue