source: tol/building/MinGW_32/build.bat @ 1bcb3dd

1941-docker-image-to-testdevel
Last change on this file since 1bcb3dd was dbd162e, checked in by Jorge Pérez <josp.jorge@…>, 11 years ago

closes #1897, mingw 32 bits tambien usa lapacke en lugar de clapack, actualizar los contribs desde ​http://packages.tol-project.org/win32/development/toldevel-rtools-m32.exe

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7073 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 2.9 KB
Line 
1@echo off
2rem *********************************************************
3rem  La llamada al script recibe dos argumentos:
4rem    build [tol|toltcl|tolbase|all] [|Release|Debug]
5rem *********************************************************
6rem  Se ha de ejecutar desde el propio directorio MinGW_32.
7rem  Durante el proceso por cada una de las etapas.
8rem *********************************************************
9setlocal enabledelayedexpansion
10
11
12call cmake_prepare.bat
13
14set project=%1
15if "%project%"=="all" (
16  build tol %2
17  build toltcl %2
18  build tolbase %2
19  exit /b
20)
21if "%project%"=="tol" goto project_ok
22if "%project%"=="toltcl" goto project_ok
23if "%project%"=="tolbase" goto project_ok
24if "%project%"=="rtol" goto project_ok
25echo.First argument should be: tol, toltcl, tolbase or all.
26exit /b
27:project_ok
28
29set mode=%2
30if "%mode%"=="" set mode=Release
31if "%mode%"=="Release" goto type_ok
32if "%mode%"=="Debug" goto type_ok
33echo.Second argument should be: Release, Debug or should be avoided.
34exit /b
35:type_ok
36
37set tolp_root=%CD%\..\..\..
38if not exist "%tolp_root%\trunk" (
39  echo./!\ Cannot find 'trunk' at %tolp_root%
40  exit /b
41)
42
43echo.
44echo.----------------------------------------------------
45echo. Building %project% - %mode%
46echo.----------------------------------------------------
47
48set init_dir=%CD%
49set tolp_trunk=%tolp_root%\trunk
50echo.  tolp_trunk=%tolp_trunk%
51if "%project%"=="tol" (
52  set tol_contribs=%tolp_root%\toldevel-rtools-m32
53  echo.  tol_contribs=!tol_contribs!
54)
55if exist "%tolp_trunk%\%project%\CodeLite\%mode%" (
56  echo./!\ There is already a built folder of %project%
57  set is_built=y
58) else (
59  set is_built=n
60)
61
62echo.
63set /p cont="continue? (y/n) "
64if "%cont%"=="y" GOTO continue_ok
65exit /b
66:continue_ok
67
68echo.
69set /p cont="mkdir? (y/n) "
70if "%cont%"=="n" GOTO skip_mkdir
71cd "%tolp_trunk%"
72if "%is_built%"=="y" rmdir /S /Q "%tolp_trunk%\%project%\CodeLite\%mode%"
73mkdir "%tolp_trunk%\%project%\CodeLite\%mode%"
74:skip_mkdir
75
76cd "%tolp_trunk%\%project%\CodeLite\%mode%"
77
78echo.
79set /p cont="cmake? (y/n) "
80if "%cont%"=="n" GOTO skip_cmake
81if "%project%"=="tol" (
82  cmake -DCLAPACK_NAME=lapacke -DTOL_EXTERNAL_DEVEL_DIR="%tol_contribs%" -DCMAKE_TOOLCHAIN_FILE="%tolp_trunk%\tol\cmake\mingw-m32.toolchain.cmake" -DCMAKE_BUILD_TYPE=%mode% -G"CodeLite - MinGW Makefiles" "%tolp_trunk%\%project%"
83) else (
84  cmake -DTOL_PREFIX_PATH="%tolp_trunk%\tol\CodeLite\Release\Runtime_Base" -DCMAKE_TOOLCHAIN_FILE="%tolp_trunk%\tol\cmake\mingw-m32.toolchain.cmake" -DCMAKE_INSTALL_PREFIX= -DCMAKE_BUILD_TYPE=%mode% -G"CodeLite - MinGW Makefiles" "%tolp_trunk%\%project%"
85)
86:skip_cmake
87
88echo.
89set /p cont="make? (y/n) "
90if "%cont%"=="n" GOTO skip_make
91echo %CD%
92mingw32-make
93:skip_make
94
95echo.
96set /p cont="install? (y/n) "
97if "%cont%"=="n" GOTO skip_install
98mingw32-make install
99:skip_install
100
101cd "%init_dir%"
102echo.
103pause
104exit /b
105
106
Note: See TracBrowser for help on using the repository browser.