Don't try and include cairo support in the python bindings if we

haven't built mapnik itself with cairo support.
This commit is contained in:
Tom Hughes 2008-07-29 08:01:57 +00:00
parent 271540f710
commit 018852148c
2 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ void export_projection();
#include <mapnik/config_error.hpp>
#include <mapnik/save_map.hpp>
#ifdef HAVE_PYCAIRO
#if defined(CAIRO) && defined(PYCAIRO)
#include <pycairo.h>
#endif
@ -83,7 +83,7 @@ void render2(const mapnik::Map& map,mapnik::Image32& image)
ren.apply();
}
#ifdef HAVE_PYCAIRO
#if defined(CAIRO) && defined(PYCAIRO)
void render3(const mapnik::Map& map,PycairoSurface* surface, unsigned offset_x = 0, unsigned offset_y = 0)
{
@ -184,7 +184,7 @@ BOOST_PYTHON_MODULE(_mapnik)
def("render_tile_to_file",&render_tile_to_file);
def("render",&render);
def("render",&render2);
#ifdef HAVE_PYCAIRO
#if defined(CAIRO) && defined(PYCAIRO)
def("render",&render3);
def("render",&render4);
#endif

View file

@ -21,7 +21,7 @@
*****************************************************************************/
//$Id$
#ifdef HAVE_PYCAIRO
#if defined(CAIRO) && defined(PYCAIRO)
#include <boost/python/type_id.hpp>
#include <boost/python/converter/registry.hpp>