Merge branch 'master' of github.com:mapnik/mapnik

This commit is contained in:
Dane Springmeyer 2014-06-12 15:58:41 -07:00
commit 1ec7a3a8bd
15 changed files with 54 additions and 19 deletions

View file

@ -0,0 +1,33 @@
# cpp03-libstdcpp-x86_64-macosx
#
# Forcing stdlib is the key for this platform.
CUSTOM_CXXFLAGS = '-fvisibility-inlines-hidden -DU_CHARSET_IS_UTF8=1 -stdlib=libstdc++'
CUSTOM_LDFLAGS = '-stdlib=libstdc++'
RUNTIME_LINK = 'static'
INPUT_PLUGINS = 'csv,gdal,geojson,occi,ogr,osm,postgis,python,raster,rasterlite,shape,sqlite'
WARNING_CXXFLAGS = '-Wno-deprecated-register -Wno-redeclared-class-member'
PATH = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/bin/'
BOOST_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include/boost'
BOOST_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
BOOST_PYTHON_LIB = 'boost_python-2.7'
FREETYPE_CONFIG = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/bin/freetype-config'
ICU_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
ICU_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
PNG_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
PNG_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
JPEG_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
JPEG_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
TIFF_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
TIFF_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
PROJ_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
PROJ_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
BENCHMARK = True
CAIRO_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
CAIRO_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
SQLITE_INCLUDES = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/include'
SQLITE_LIBS = '../mapnik-packaging/osx/out/build-cpp03-libstdcpp-x86_64-macosx/lib'
FRAMEWORK_PYTHON = False
BINDINGS = 'python'
XMLPARSER = 'ptree'

View file

@ -97,10 +97,12 @@ public:
{ {
return green_; return green_;
} }
inline std::uint8_t blue() const inline std::uint8_t blue() const
{ {
return blue_; return blue_;
} }
inline std::uint8_t alpha() const inline std::uint8_t alpha() const
{ {
return alpha_; return alpha_;
@ -110,6 +112,7 @@ public:
{ {
red_ = red; red_ = red;
} }
inline void set_green(std::uint8_t green) inline void set_green(std::uint8_t green)
{ {
green_ = green; green_ = green;

View file

@ -20,19 +20,19 @@
* *
*****************************************************************************/ *****************************************************************************/
#ifndef MAPNIK_STD_HPP #ifndef MAPNIK_MAKE_UNIQUE_HPP
#define MAPNIK_STD_HPP #define MAPNIK_MAKE_UNIQUE_HPP
#include <memory> #include <memory>
namespace std { namespace mapnik {
// C++14 backfill from http://herbsutter.com/gotw/_102/ // C++14 backfill from http://herbsutter.com/gotw/_102/
template<typename T, typename ...Args> template<typename T, typename ...Args>
inline ::std::unique_ptr<T> make_unique(Args&& ...args) { inline std::unique_ptr<T> make_unique(Args&& ...args) {
return ::std::unique_ptr<T>(new T(::std::forward<Args>(args)...)); return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
} }
} }
#endif #endif // MAPNIK_MAKE_UNIQUE_HPP

View file

@ -24,7 +24,7 @@
#define MAPNIK_GEOMETRY_TO_WKB_HPP #define MAPNIK_GEOMETRY_TO_WKB_HPP
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/global.hpp> #include <mapnik/global.hpp>
#include <mapnik/geometry.hpp> #include <mapnik/geometry.hpp>

View file

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/global.hpp> #include <mapnik/global.hpp>
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/image_data.hpp> #include <mapnik/image_data.hpp>

View file

@ -1,4 +1,3 @@
/***************************************************************************** /*****************************************************************************
* *
* This file is part of Mapnik (c++ mapping toolkit) * This file is part of Mapnik (c++ mapping toolkit)
@ -22,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/geometry.hpp> #include <mapnik/geometry.hpp>
#include <mapnik/feature.hpp> #include <mapnik/feature.hpp>
#include <mapnik/feature_factory.hpp> #include <mapnik/feature_factory.hpp>

View file

@ -31,7 +31,7 @@
// mapnik // mapnik
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/util/fs.hpp> #include <mapnik/util/fs.hpp>
#include <mapnik/global.hpp> #include <mapnik/global.hpp>
#include <mapnik/utils.hpp> #include <mapnik/utils.hpp>

View file

@ -24,7 +24,7 @@
// mapnik // mapnik
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/datasource.hpp> #include <mapnik/datasource.hpp>
#include <mapnik/geom_util.hpp> #include <mapnik/geom_util.hpp>

View file

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/graphics.hpp> #include <mapnik/graphics.hpp>
#include <mapnik/feature.hpp> #include <mapnik/feature.hpp>
#include <mapnik/agg_renderer.hpp> #include <mapnik/agg_renderer.hpp>

View file

@ -23,7 +23,7 @@
#if defined(HAVE_CAIRO) #if defined(HAVE_CAIRO)
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/rule.hpp> #include <mapnik/rule.hpp>
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/layer.hpp> #include <mapnik/layer.hpp>

View file

@ -23,7 +23,7 @@
#if defined(GRID_RENDERER) #if defined(GRID_RENDERER)
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/feature.hpp> #include <mapnik/feature.hpp>
#include <mapnik/grid/grid_rasterizer.hpp> #include <mapnik/grid/grid_rasterizer.hpp>
#include <mapnik/grid/grid_renderer.hpp> #include <mapnik/grid/grid_renderer.hpp>

View file

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/image_reader.hpp> #include <mapnik/image_reader.hpp>

View file

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
// mapnik // mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/debug.hpp> #include <mapnik/debug.hpp>
#include <mapnik/global.hpp> #include <mapnik/global.hpp>
#include <mapnik/wkb.hpp> #include <mapnik/wkb.hpp>

View file

@ -21,7 +21,7 @@
*****************************************************************************/ *****************************************************************************/
//mapnik //mapnik
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include <mapnik/xml_tree.hpp> #include <mapnik/xml_tree.hpp>
#include <mapnik/xml_attribute_cast.hpp> #include <mapnik/xml_attribute_cast.hpp>
#include <mapnik/util/conversions.hpp> #include <mapnik/util/conversions.hpp>

View file

@ -21,7 +21,7 @@
#include <mapnik/symbolizer.hpp> #include <mapnik/symbolizer.hpp>
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <mapnik/std.hpp> #include <mapnik/make_unique.hpp>
#include "utils.hpp" #include "utils.hpp"