]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/install_generate_thirdparty.bat_TEMPLATE
Feature #1773 Add licence terms for all files.
[creaToolsTools.git] / Install_ThirdParty / install_generate_thirdparty.bat_TEMPLATE
1 REM ---------------------------------------------------------------------
2 REM
3 REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 REM                        pour la Santé)
5 REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 REM
7 REM  This software is governed by the CeCILL-B license under French law and 
8 REM  abiding by the rules of distribution of free software. You can  use, 
9 REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 REM  license as circulated by CEA, CNRS and INRIA at the following URL 
11 REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 REM  or in the file LICENSE.txt.
13 REM
14 REM  As a counterpart to the access to the source code and  rights to copy,
15 REM  modify and redistribute granted by the license, users are provided only
16 REM  with a limited warranty  and the software's author,  the holder of the
17 REM  economic rights,  and the successive licensors  have only  limited
18 REM  liability. 
19 REM
20 REM  The fact that you are presently reading this means that you have had
21 REM  knowledge of the CeCILL-B license and that you accept its terms.
22 REM ------------------------------------------------------------------------  
23
24 @echo off
25
26 echo -----------------------------------
27 echo ---Setting Environment Variables---
28 echo -----------------------------------
29
30 set thirdpartyGeneration=<directory where you want to generate>
31 set buildType=<debug|release>
32
33 ::The following line sets wxWidgets version. Set it ON if you want to compile wxWidgets 2.8.12
34 ::The following line set swxWidgets version. Set it OFF if you want to compile wxWidgets 2.9.3
35 set wxStable=<ON|OFF>
36 ::Set the following line ON if you want to force x86 compilation
37 set forcex86=<ON|OFF>
38
39
40 echo thirdpartyGeneration=%thirdpartyGeneration%
41 echo buildType=%buildType%
42 echo wxStable=%wxStable%
43
44 echo -----------------------------------
45 echo ---End Setting Global Variables----
46 echo -----------------------------------
47
48 echo -----------------------------------
49 echo -------Calling Scripts-------------
50 echo -----------------------------------
51
52 echo starting time
53 time /t
54 date /T
55
56 set scripts=%cd%\scripts
57 set LogFolder=%thirdpartyGeneration%\installLog
58 cd %scripts%
59
60 echo cleaning All
61
62 call cleanAll.bat %thirdpartyGeneration%
63
64 cd %scripts%
65
66 echo Calling download_ThirdPartySW.bat
67
68 call download_ThirdPartySW.bat %thirdpartyGeneration% %buildType% %wxStable% >> %LogFolder%\downloadSources.log 2>&1
69
70 cd %scripts%
71
72 echo Calling install_thirdparty.bat
73
74 start /B /wait install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
75
76 echo Calling generateThirdPartydllsExe.bat
77
78 cd %scripts%
79
80 start /B /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
81
82 echo Calling generateThirdPartyLibExe.bat
83
84 cd %scripts%
85
86 start /B /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
87
88 cd..
89
90 echo -----------------------------------
91 echo -------End of the Script-----------
92 echo -----------------------------------
93
94 echo ending time
95 time /t
96 date /T
97
98 echo To see the log of this install please go to %LogFolder%
99
100 ::pause
101
102 exit