mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 90 forks source link

crossplatform build #242

Open mathisloge opened 3 years ago

mathisloge commented 3 years ago

So this is mostly the same as for node-mapnik. It replaces most of the python build code with a cmake file.

It depends on https://github.com/mapnik/mapnik/pull/4191

via the find_package(mapnik) all compile options and paths to fonts/plugins are available. I dont use mason, so if someone depends on that, someone needs do describe the steps to get mason up and running.

In the end, the whole vcpkg submodule can be removed again. Just here for faster development. If someone needs to build from source, one can just add a local clone of vcpkg via -DCMAKE_TOOLCHAIN_FILE=<path to vcpkg toolchain>.

I'm just waiting for some feedback on this, before putting more effort into it.

Todos:

Some first results on windows-10:

rendered with cairo: demo_cairo_rgb24

mathisloge commented 3 years ago

and code changes depend on https://github.com/mapnik/node-mapnik/issues/975