batch scripts for building windows release. Details may be found in readme file.
This commit was SVN r27507.
Этот коммит содержится в:
родитель
dd661c60fe
Коммит
8677693d9a
36
contrib/platform/win32/scripts/build_release_shared_32.bat
Обычный файл
36
contrib/platform/win32/scripts/build_release_shared_32.bat
Обычный файл
@ -0,0 +1,36 @@
|
||||
|
||||
SET src=%1
|
||||
SET cwd=D:\temp\OpenMPI
|
||||
|
||||
copy open-mpi-logo.ico %src%\contrib\platform\win32\
|
||||
copy uninstall.ico %src%\contrib\platform\win32\
|
||||
|
||||
REM build 32 debug version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-shared-debug-32
|
||||
cd %src%-shared-debug-32
|
||||
|
||||
cmake -G "Visual Studio 10" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-32 -D BUILD_SHARED_LIBS:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=debug -D ORTE_WANT_CCP:BOOL=FALSE -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/ia32/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build debug > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build debug
|
||||
|
||||
cd ..\..
|
||||
|
||||
REM build 32 release version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-shared-release-32
|
||||
cd %src%-shared-release-32
|
||||
|
||||
cmake -G "Visual Studio 10" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-32 -D BUILD_SHARED_LIBS:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=release -D ORTE_WANT_CCP:BOOL=FALSE -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/ia32/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build release > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build release
|
||||
|
||||
devenv.com OpenMPI.sln /project PACKAGE.vcxproj /build release
|
||||
|
||||
cd ..\..
|
||||
|
||||
|
34
contrib/platform/win32/scripts/build_release_shared_64.bat
Обычный файл
34
contrib/platform/win32/scripts/build_release_shared_64.bat
Обычный файл
@ -0,0 +1,34 @@
|
||||
|
||||
SET src=%1
|
||||
SET cwd=D:\temp\OpenMPI
|
||||
|
||||
copy open-mpi-logo.ico %src%\contrib\platform\win32\
|
||||
copy uninstall.ico %src%\contrib\platform\win32\
|
||||
|
||||
REM build 64 debug version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-shared-debug-64
|
||||
cd %src%-shared-debug-64
|
||||
|
||||
cmake -G "Visual Studio 10 Win64" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-64 -D BUILD_SHARED_LIBS:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=debug -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/amd64/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build debug > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build debug
|
||||
|
||||
cd ..\..
|
||||
|
||||
REM build 32 release version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-shared-release-64
|
||||
cd %src%-shared-release-64
|
||||
|
||||
cmake -G "Visual Studio 10 Win64" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-64 -D BUILD_SHARED_LIBS:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=release -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/amd64/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build release > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build release
|
||||
|
||||
devenv.com OpenMPI.sln /project PACKAGE.vcxproj /build release
|
||||
|
||||
cd ..\..
|
36
contrib/platform/win32/scripts/build_release_static_32.bat
Обычный файл
36
contrib/platform/win32/scripts/build_release_static_32.bat
Обычный файл
@ -0,0 +1,36 @@
|
||||
|
||||
SET src=%1
|
||||
SET cwd=D:\temp\OpenMPI
|
||||
|
||||
copy open-mpi-logo.ico %src%\contrib\platform\win32\
|
||||
copy uninstall.ico %src%\contrib\platform\win32\
|
||||
|
||||
REM build 32 debug version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-static-debug-32
|
||||
cd %src%-static-debug-32
|
||||
|
||||
cmake -G "Visual Studio 10" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-32 -D BUILD_SHARED_LIBS:BOOL=FALSE -D CMAKE_BUILD_TYPE:STRING=debug -D ORTE_WANT_CCP:BOOL=FALSE -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/ia32/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build debug > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build debug
|
||||
|
||||
cd ..\..
|
||||
|
||||
REM build 32 release version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-static-release-32
|
||||
cd %src%-static-release-32
|
||||
|
||||
cmake -G "Visual Studio 10" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-32 -D BUILD_SHARED_LIBS:BOOL=FALSE -D CMAKE_BUILD_TYPE:STRING=release -D ORTE_WANT_CCP:BOOL=FALSE-D -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/ia32/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build release > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build release
|
||||
|
||||
devenv.com OpenMPI.sln /project PACKAGE.vcxproj /build release
|
||||
|
||||
cd ..\..
|
||||
|
||||
|
34
contrib/platform/win32/scripts/build_release_static_64.bat
Обычный файл
34
contrib/platform/win32/scripts/build_release_static_64.bat
Обычный файл
@ -0,0 +1,34 @@
|
||||
|
||||
SET src=%1
|
||||
SET cwd=D:\temp\OpenMPI
|
||||
|
||||
copy open-mpi-logo.ico %src%\contrib\platform\win32\
|
||||
copy uninstall.ico %src%\contrib\platform\win32\
|
||||
|
||||
REM build 64 debug version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-static-debug-64
|
||||
cd %src%-static-debug-64
|
||||
|
||||
cmake -G "Visual Studio 10 Win64" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-64 -D BUILD_SHARED_LIBS:BOOL=FALSE -D CMAKE_BUILD_TYPE:STRING=debug -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D OMPI_RELEASE_BUILD:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/amd64/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build debug > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build debug
|
||||
|
||||
cd ..\..
|
||||
|
||||
REM build 32 release version
|
||||
cd %cwd%\COMPILE
|
||||
md %src%-static-release-64
|
||||
cd %src%-static-release-64
|
||||
|
||||
cmake -G "Visual Studio 10 Win64" -D CMAKE_INSTALL_PREFIX:PATH=%cwd%\%src%\installed-64 -D BUILD_SHARED_LIBS:BOOL=FALSE -D CMAKE_BUILD_TYPE:STRING=release -D OMPI_WANT_CXX_BINDINGS:BOOL=TRUE -D CMAKE_Fortran_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/ComposerXE-2011/bin/amd64/ifort.exe" -D OMPI_WANT_F77_BINDINGS:BOOL=TRUE ..\..\%src% > configure-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /build release > build-log.txt
|
||||
|
||||
devenv.com OpenMPI.sln /project INSTALL.vcxproj /build release
|
||||
|
||||
devenv.com OpenMPI.sln /project PACKAGE.vcxproj /build release
|
||||
|
||||
cd ..\..
|
8
contrib/platform/win32/scripts/readme.txt
Обычный файл
8
contrib/platform/win32/scripts/readme.txt
Обычный файл
@ -0,0 +1,8 @@
|
||||
This folder contains the batch files for building Open MPI releases.
|
||||
|
||||
Using the scripts is very straightforward, just specify the path to the ompi source as the first (only) parameter, e.g.:
|
||||
build_release_shared_64.bat OpenMPI/openmpi-1.7
|
||||
|
||||
In the script, one may have to modify the cwd variable to a proper place, which is the absolute working path.
|
||||
|
||||
The ompi icons may be also put in the same directory, so the generated installers will look better.
|
Загрузка…
Ссылка в новой задаче
Block a user