attempt to build the python bindings (TODO: symbol errors wrt to swap)
This commit is contained in:
parent
ddb6e7e007
commit
bfc772f697
3 changed files with 44 additions and 3 deletions
|
@ -270,7 +270,7 @@ dumpbin /directives ..\mapnik-sdk\libs\*lib | grep LIBCMT
|
|||
|
||||
::msbuild /m:2 /t:mapnik /p:BuildInParellel=true .\build\mapnik.sln /p:Configuration=Release
|
||||
|
||||
msbuild /m:2 /p:BuildInParellel=true .\build\mapnik.sln /p:Configuration=Release
|
||||
msbuild /m:%NUMBER_OF_PROCESSORS% /p:BuildInParellel=true .\build\mapnik.sln /p:Configuration=Release
|
||||
:: /t:rebuild
|
||||
:: /v:diag > build.log
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
|
@ -281,6 +281,10 @@ IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
|||
xcopy /i /d /s /q .\build\Release\mapnik.dll ..\mapnik-sdk\libs\ /Y
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
|
||||
:: move python binding into local testable location
|
||||
xcopy /i /d /s /q .\build\Release\_mapnik.so bindings\python\mapnik\ /Y
|
||||
|
||||
|
||||
:: plugins
|
||||
xcopy /i /d /s /q .\build\Release\*input ..\mapnik-sdk\libs\mapnik\input\ /Y
|
||||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
|
|
40
mapnik.gyp
40
mapnik.gyp
|
@ -31,7 +31,12 @@
|
|||
],
|
||||
"conditions": [
|
||||
["OS=='win'", {
|
||||
'common_defines': ['LIBXML_STATIC','BOOST_LIB_TOOLSET="vc140"','BOOST_COMPILER="14.0"'], # static libxml: libxml2_a.lib
|
||||
'common_defines': [
|
||||
'LIBXML_STATIC', # static libxml: libxml2_a.lib
|
||||
'BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES',
|
||||
'BOOST_LIB_TOOLSET="vc140"',
|
||||
'BOOST_COMPILER="14.0"'
|
||||
],
|
||||
'common_libraries': []
|
||||
}, {
|
||||
'common_defines': ['SHAPE_MEMORY_MAPPED_FILE','U_CHARSET_IS_UTF8=1'],
|
||||
|
@ -144,6 +149,39 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"target_name": "_mapnik",
|
||||
"type": "loadable_module",
|
||||
"product_extension": "so",
|
||||
"sources": [ '<!@(find bindings/python/ -name "*.cpp")' ],
|
||||
"dependencies": [ "mapnik" ],
|
||||
'include_dirs': [
|
||||
'c:/tools/python2-x86-32/include'
|
||||
],
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
'AdditionalLibraryDirectories': [
|
||||
'c:/tools/python2-x86-32/libs'
|
||||
]
|
||||
}
|
||||
},
|
||||
"conditions": [
|
||||
["OS=='win'", {
|
||||
'libraries':[
|
||||
'libboost_thread-vc140-mt-1_56.lib',
|
||||
'libboost_system-vc140-mt-1_56.lib',
|
||||
'libboost_regex-vc140-mt-1_56.lib',
|
||||
'icuuc.lib',
|
||||
'icuin.lib',
|
||||
],
|
||||
},{
|
||||
'libraries':[
|
||||
'-lboost_thread'
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"target_name": "shape",
|
||||
"type": "loadable_module",
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
// NOTE: we define this here in a cpp because def is needed twice:
|
||||
// once by src/expression.cpp and once by mapnik/transform_expression_grammar_impl.hpp
|
||||
#define BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES
|
||||
#include <mapnik/expression_grammar_impl.hpp>
|
||||
#include <mapnik/transform_expression_grammar_impl.hpp>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in a new issue