[geos-commits] [SCM] geos branch master updated. f0a3f0002f5dd3c8308c21d95aa1eb4008cb06d6

git at osgeo.org git at osgeo.org
Thu Sep 7 01:06:30 PDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "geos".

The branch, master has been updated
       via  f0a3f0002f5dd3c8308c21d95aa1eb4008cb06d6 (commit)
      from  4d4474359b94f1ab04815b4131db44cdc0efe7ce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f0a3f0002f5dd3c8308c21d95aa1eb4008cb06d6
Author: Mateusz Loskot <mateusz at loskot.net>
Date:   Thu Sep 7 10:05:13 2017 +0200

    [CMake] Add build-cmake.bat utility for convenience.
    
    Builds GEOS using CMake and Visual Studio 2017 for 32-bit or 64-bit platform.
    (eg. cd geos; tools\build-cmake.bat 64)

diff --git a/tools/build-cmake.bat b/tools/build-cmake.bat
new file mode 100644
index 0000000..4705e50
--- /dev/null
+++ b/tools/build-cmake.bat
@@ -0,0 +1,53 @@
+ at echo off
+rem Runs CMake to configure GEOS for Visual Studio 2017.
+rem Runs MSBuild to build the generated solution.
+rem
+rem Usage:
+rem 1. Copy build.bat to build.local.bat (git ignored file)
+rem 2. Make your adjustments in the CONFIGURATION section below
+rem 3. Run build.local.bat 32|64
+rem 4. Optionally, run devenv.exe {project}{32|64}.sln from command line
+
+rem ### CONFIGURATION #####################################
+rem #######################################################
+
+if not defined VS150COMNTOOLS goto :NoVS
+if [%1]==[] goto :Usage
+if [%1]==[32] goto :32
+if [%1]==[64] goto :64
+goto :Usage
+
+:32
+set GEOSP=32
+set MSBUILDP=Win32
+set GENERATOR="Visual Studio 15 2017"
+goto :Build
+
+:64
+set GEOSP=64
+set MSBUILDP=x64
+set GENERATOR="Visual Studio 15 2017 Win64"
+goto :Build
+
+:Build
+set BUILDDIR=_build.vs2017x%GEOSP%
+mkdir %BUILDDIR%
+pushd %BUILDDIR%
+"C:\Program Files\CMake\bin\cmake.exe" ^
+    -G %GENERATOR% ^
+    ..
+move geos.sln geos%GEOSP%.sln
+REM msbuild.exe geos%GEOSP%.sln /p:Configuration=Release /p:Platform=%MSBUILDP%
+popd
+goto :EOF
+
+:NoVS
+ at echo build.bat
+ at echo  Visual Studio 2017 not found
+ at echo  "%%VS150COMNTOOLS%%" environment variable not defined
+exit /B 1
+
+:Usage
+ at echo build.bat
+ at echo Usage: build.bat [32 or 64]
+exit /B 1

-----------------------------------------------------------------------

Summary of changes:
 tools/build-cmake.bat |   53 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 tools/build-cmake.bat


hooks/post-receive
-- 
geos


More information about the geos-commits mailing list