set thirdpartyGeneration=<directory where you want to generate>
set buildType=<debug|release|RelWithDebInfo>
+::The following line sets wxWidgets version. Set it ON if you want to compile wxWidgets 2.8.12
+::The following line set swxWidgets version. Set it OFF if you want to compile wxWidgets 2.9.3
+set wxStable=<ON|OFF>
+::Set the following line ON if you want to force x86 compilation
+set forcex86=<ON|OFF>
+
+
echo thirdpartyGeneration=%thirdpartyGeneration%
echo buildType=%buildType%
+echo wxStable=%wxStable%
echo -----------------------------------
echo ---End Setting Global Variables----
time /t
date /T
-cd scripts
+set scripts=%cd%\scripts
+set LogFolder=%thirdpartyGeneration%\installLog
+cd %scripts%
+
+echo cleaning All
+
+call cleanAll.bat %thirdpartyGeneration%
+
+cd %scripts%
+
+echo Calling download_ThirdPartySW.bat
+
+call download_ThirdPartySW.bat %thirdpartyGeneration% %buildType% %wxStable% >> %LogFolder%\downloadSources.log 2>&1
+
+cd %scripts%
echo Calling install_thirdparty.bat
-start /wait install_thirdparty.bat %thirdpartyGeneration% %buildType%
+start /B /wait install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
echo Calling generateThirdPartydllsExe.bat
-start /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType%
+cd %scripts%
+
+start /B /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
echo Calling generateThirdPartyLibExe.bat
-start /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType%
+cd %scripts%
+
+start /B /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
cd..
time /t
date /T
-pause
+echo To see the log of this install please go to %LogFolder%
+
+::pause
exit
\ No newline at end of file