[cpp-msbuild] 01/02: Move xerces build over to cmake

Rod Widdowson rdw at steadingsoftware.com
Mon Aug 21 10:35:35 EDT 2017


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-msbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-msbuild.git;a=commit;h=1774a503b34e80c81a9e3497e31bbb63336e1b17

commit 1774a503b34e80c81a9e3497e31bbb63336e1b17
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Aug 21 13:01:50 2017 +0100

    Move xerces build over to cmake
    
    Populate the cmake tree in prep and in compile do a
    clean build all the way through to install.
    
    Install into differentiated-by-architecture subdirectories.
    
    Do not differentuate by build type since the artefacts we want
    are already distinguished.
---
 dependencies/xerces-compile.bat | 11 +++++++----
 dependencies/xerces.bat         | 15 ++++++++++++++-
 2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/dependencies/xerces-compile.bat b/dependencies/xerces-compile.bat
index 01de924..6a740f8 100644
--- a/dependencies/xerces-compile.bat
+++ b/dependencies/xerces-compile.bat
@@ -1,11 +1,14 @@
-msbuild /m projects\Win32\VC%MsVCVersionNum%\xerces-all\xerces-all.sln /p:Configuration=Debug     /t:all:clean /p:Platform=%1%
+cd /d %ROOT_DIR%%XERCES_DIR%
+cd buildx86\%MsVCVersion%
+cmake --build . --config Debug --clean-first --target install
 @if errorlevel 1 goto end
-msbuild /m projects\Win32\VC%MsVCVersionNum%\xerces-all\xerces-all.sln /p:Configuration=Release   /t:all:clean /p:Platform=%1%
+cmake --build . --config Release --clean-first --target install
 @if errorlevel 1 goto end
+cd ..\..\buildx64\%MsVCVersion%
 
-msbuild /m projects\Win32\VC%MsVCVersionNum%\xerces-all\xerces-all.sln /t:all:Rebuild /p:Configuration=Release /p:Platform=%1%
+cmake --build . --config Debug --clean-first --target install
 @if errorlevel 1 goto end
-msbuild /m projects\Win32\VC%MsVCVersionNum%\xerces-all\xerces-all.sln /t:all:Rebuild /p:Configuration=Debug   /p:Platform=%1%
+cmake --build . --config Release --clean-first --target install
 @if errorlevel 1 goto end
 
 :end
\ No newline at end of file
diff --git a/dependencies/xerces.bat b/dependencies/xerces.bat
index 3f77eff..e2a8711 100644
--- a/dependencies/xerces.bat
+++ b/dependencies/xerces.bat
@@ -1 +1,14 @@
-REM nothing
+cd /d %ROOT_DIR%%XERCES_DIR%
+rd/s/q buildx86\%MsVCVersion% buildx64\%MsVCVersion% install32\%MsVCVersion% install64\%MsVCVersion%
+mkdir buildx86\%MsVCVersion%
+cd buildx86\%MsVCVersion%
+cmake -G "Visual Studio 10 2010" -DCMAKE_CXX_FLAGS=/MP -DCMAKE_INSTALL_PREFIX=%ROOT_DIR%%XERCES_DIR%\install32\%MsVCVersion% ..\..
+cd ..\..
+mkdir buildx64\%MsVCVersion%
+cd buildx64\%MsVCVersion%
+cmake -G "Visual Studio 10 2010 Win64" -DCMAKE_CXX_FLAGS=/MP -DCMAKE_INSTALL_PREFIX=%ROOT_DIR%%XERCES_DIR%\install64\%MsVCVersion% ..\..
+cd ..\..
+
+
+
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list