From 47e62804be2f5eed1b8cafaca9da4e55332a837b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 23 May 2013 00:46:55 -0700 Subject: [PATCH] rundemo.gyp now working on windows --- demo/c++/README.md | 11 ++++++++--- demo/c++/rundemo.gyp | 9 ++++++--- utils/mapnik-config/mapnik-config.bat | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/demo/c++/README.md b/demo/c++/README.md index 187133d96..30f969b89 100644 --- a/demo/c++/README.md +++ b/demo/c++/README.md @@ -67,10 +67,15 @@ On OS X you can also create an xcode project: ### Windows -First you need to build he visual studio files with gyp: +First you need to build the visual studio solution with gyp: gyp rundemo.gyp --depth=. -f msvs -G msvs_version=2010 -Then you can compile the demo with `msbuild`: +Then you can compile with `msbuild`: - msbuild build.sln \ No newline at end of file + msbuild rundemo.sln /p:Configuration="Release" /p:Platform=Win32 + +Then run it! + + for /f %i in ('mapnik-config --prefix') do set MAPNIK_PREFIX=%%i + Release\rundemo.exe %MAPNIK_PREFIX% \ No newline at end of file diff --git a/demo/c++/rundemo.gyp b/demo/c++/rundemo.gyp index 373374f98..e54ae121c 100644 --- a/demo/c++/rundemo.gyp +++ b/demo/c++/rundemo.gyp @@ -1,5 +1,6 @@ { 'includes': [ 'common.gypi' ], + 'default_configuration': 'Release', 'targets': [ { 'target_name': 'rundemo', @@ -34,9 +35,11 @@ '