set (CREA_VTK_LYBRARY vtk )
set (CREA_WXWIN_LYBRARY wxWidgets)
set (CREA_XERCES_LYBRARY xerces)
- set (CREA_MIKATEX_LYBRARY miktex)
+ #DFCH -- set (CREA_MIKATEX_LYBRARY miktex)
#set (CREA_KWWIDGETS_LYBRARY KWWidgets-090109 )
)
ENDFOREACH(iLST)
- INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_MIKATEX_LYBRARY} DESTINATION ${CREA_BIN_DESTINATION_PATH} )
+ #DFCH -- INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_MIKATEX_LYBRARY} DESTINATION ${CREA_BIN_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_BOOST_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_GDCM_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_ITK_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_XERCES_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
- SET(MIKTEX_INSTALL_DIR "$INSTDIR\\\\bin\\\\MiKTeX-2.9\\\\miktex\\\\bin")
- SET(CREATIS_THIRDPARTYLIBRARIES_DIRS ";${MIKTEX_INSTALL_DIR}")
+ #DFCH -- SET(MIKTEX_INSTALL_DIR "$INSTDIR\\\\bin\\\\MiKTeX-2.9\\\\miktex\\\\bin")
+ #DFCH -- SET(CREATIS_THIRDPARTYLIBRARIES_DIRS ";${MIKTEX_INSTALL_DIR}")
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'TTH' '$INSTDIR\\\\bin\\\\tth'
echo -----------------------------------
set thirdpartyGeneration=<directory where you want to generate>
-set buildType=<debug|release>
+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>
date /T
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% >> downloadThirdParty.log 2>&1
+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% %forcex86%
+start /B /wait install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
echo Calling generateThirdPartydllsExe.bat
cd %scripts%
-start /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+start /B /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
echo Calling generateThirdPartyLibExe.bat
cd %scripts%
-start /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+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
--- /dev/null
+@echo off
+
+set thirdpartyGeneration=%1
+
+set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
+set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
+set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
+set LogFolder=%thirdpartyGeneration%\installLog
+
+echo -----------------------------------
+echo -------Removing Folders------------
+echo -----------------------------------
+
+rmdir /S /Q %thirdpartyGeneration%
+
+echo -----------------------------------
+echo -------Creating Folders------------
+echo -----------------------------------
+
+mkdir %thirdpartyGeneration%
+cd %thirdpartyGeneration%
+mkdir %sourcepath%
+mkdir %binpath%
+mkdir %installpath%
+mkdir %LogFolder%
\ No newline at end of file
set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
+set LogFolder=%thirdpartyGeneration%\installLog
set QTFNAME=qt-everywhere-opensource-src-4.8.2.zip
echo BinPath=%binpath%
echo SourcePath=%sourcepath%
-echo -----------------------------------
-echo -------Removing Folders------------
-echo -----------------------------------
-
-rmdir /S /Q %thirdpartyGeneration%
-
-echo -----------------------------------
-echo -------Creating Folders------------
-echo -----------------------------------
-
-mkdir %thirdpartyGeneration%
-cd %thirdpartyGeneration%
-mkdir %sourcepath%
-mkdir %binpath%
-mkdir %installpath%
-
echo -----------------------------------
echo ------Downloading Sources----------
echo -----------------------------------
echo -----End of Download Libraries-----
echo -----------------------------------
echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
exit /B
\ No newline at end of file
set buildType=%2
set x86Comp=%3
+set LogFolder=%thirdpartyGeneration%\installLog
+
echo Calling move_thirdparty_libraries.bat
-call move_thirdparty_libraries.bat %thirdpartyGeneration% %buildType% %x86Comp% >> generateThirdpartyLibExe.log 2>&1
+call move_thirdparty_libraries.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartyLibExe.log 2>&1
echo Calling install_thirdparty_libraries_cmake.bat
-call install_thirdparty_libraries_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> generateThirdpartyLibExe.log 2>&1
+call install_thirdparty_libraries_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartyLibExe.log 2>&1
exit
\ No newline at end of file
set buildType=%2
set x86Comp=%3
+set LogFolder=%thirdpartyGeneration%\installLog
+
echo Calling move_thirdparty_dlls.bat
-call move_thirdparty_dlls.bat %thirdpartyGeneration% %buildType% %x86Comp% >> generateThirdpartydllsExe.log 2>&1
+call move_thirdparty_dlls.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartydllsExe.log 2>&1
echo Calling install_thirdparty_dlls_cmake.bat
-call install_thirdparty_dlls_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> generateThirdpartydllsExe.log 2>&1
+call install_thirdparty_dlls_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartydllsExe.log 2>&1
exit
\ No newline at end of file
+++ /dev/null
-@echo off
-
-set thirdpartyGeneration=%1
-set buildType=%2
-set x86Comp=%3
-
-echo Calling install_thirdparty_all.bat
-
-call install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %x86Comp% >> installThirdParty.log 2>&1
-
-exit
set ITKSRCDIR=%sourcepath%\%itk%
set VTKSRCDIR=%sourcepath%\%VTK%
set GDCMSRCDIR=%sourcepath%\%gdcm%
+set LogFolder=%thirdpartyGeneration%\installLog
echo -----------------------------------
echo Environment variables Configuration
cd %QTDIR%
set QMAKESPEC=win32-msvc2010
-echo y | configure -%buildType% -opensource -shared -qt-sql-sqlite -phonon -phonon-backend -platform win32-msvc2010 -mp
+echo y | configure -%buildType% -opensource -shared -qt-sql-sqlite -phonon -phonon-backend -platform win32-msvc2010 -mp >> %LogFolder%\qtInstall.log 2>&1
-%JOMDIR%\jom.exe -j %NUMBER_OF_PROCESSORS%
+%JOMDIR%\jom.exe -j %NUMBER_OF_PROCESSORS% >> %LogFolder%\qtInstall.log 2>&1
cd C:\
echo -----------------------------------
cd %WXDIR%\build\msw
if %x86Comp%==ON (
- nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1
+ nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
) else (
if %PROCESSOR_ARCHITECTURE%==x86 (
- nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1
+ nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
) else (
- nmake -f makefile.vc TARGET_CPU=AMD64 BUILD=release UNICODE=0 SHARED=1 USE_OPENGL=1
+ nmake -f makefile.vc TARGET_CPU=AMD64 BUILD=release UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
)
)
cd C:\
cd %sourcepath%\%boost%
-call bootstrap.bat
+call bootstrap.bat >> %LogFolder%\boostInstall.log 2>&1
if %x86Comp%==ON (
- bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install
+ bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
) else (
if %PROCESSOR_ARCHITECTURE%==x86 (
- bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install
+ bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
) else (
- bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 architecture=x86 address-model=64 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install
+ bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 architecture=x86 address-model=64 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
)
)
cd C:\
cd %vtk%Bin
if %x86Comp%==ON (
- cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
) else (
if %PROCESSOR_ARCHITECTURE%==x86 (
- cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
) else (
- cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
+ cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
)
)
-cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
-cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt
-cmake CMakeCache.txt
-FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
-msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj
+cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+cmake CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\vtkInstall.log 2>&1
+msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj >> %LogFolder%\vtkInstall.log 2>&1
cd c:\
cd %gdcm%Bin
if %x86Comp%==ON (
- cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
) else (
if %PROCESSOR_ARCHITECTURE%==x86 (
- cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
) else (
- cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin
+ cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
)
)
-cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt
-cmake -D VTK_DIR:PATH=%binpath%\%vtk%Bin\ -D GDCM_VTK:BOOL=ON -D BUILD_TESTING:BOOL=OFF -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
-cmake CMakeCache.txt
-FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
-msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
+cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+cmake -D VTK_DIR:PATH=%binpath%\%vtk%Bin\ -D GDCM_VTK:BOOL=ON -D BUILD_TESTING:BOOL=OFF -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+cmake CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
+msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
cd c:\
cd %itk%Bin
if %x86Comp%==ON (
- cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
) else (
if %PROCESSOR_ARCHITECTURE%==x86 (
- cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
+ cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
) else (
- cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
+ cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
)
)
-cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ CMakeCache.txt
-cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
-cmake CMakeCache.txt
-FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
-msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
+cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+cmake CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
+msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
cd c:\
echo ------XERCES Installation----------
echo -----------------------------------
cd %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all
-FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
-FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
-msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
+FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
echo -----------------------------------
echo ---End of Installing Libraries-----
echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-echo -----------------------------------
-exit /B
\ No newline at end of file
+exit
\ No newline at end of file
cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
cmake -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt
cmake CMakeCache.txt
+
FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% PACKAGE.vcxproj
set thirdpartyGeneration=%1
set buildType=%2
+::The following line is to force x86 or x64 compilation
+set x86Comp=%3
set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
echo )
-if %PROCESSOR_ARCHITECTURE%==x86 (
+if %x86Comp%==ON (
set vcFolder=vc_dll
set winType=Win32
) else (
- set vcFolder=vc_amd64_dll
- set winType=Win64
+ if %PROCESSOR_ARCHITECTURE%==x86 (
+ set vcFolder=vc_dll
+ set winType=Win32
+ ) else (
+ set vcFolder=vc_amd64_dll
+ set winType=Win64
+ )
)
echo -----------------------------------
copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls%
copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls%
+:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
+copy /V /Y %QTDIR%\bin\assistant.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\designer.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\dumpcpp.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\idc.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\lconvert.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\linguist.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\lrelease.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\lupdate.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\moc.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\pixeltool.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qcollectiongenerator.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qhelpconverter.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qhelpgenerator.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qmake.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qt3to4.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\qtdemo.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\rcc.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\uic.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\uic3.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\xmlpatterns.exe %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\Qt3Support%qtBtype%.dll %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\QtDesigner%qtBtype%.dll %creaThirdPartydlls%
+copy /V /Y %QTDIR%\bin\QtDesignerComponents%qtBtype%.dll %creaThirdPartydlls%
+::End of temporal copy
+
echo -----------------------------------
echo -------------wxWidgets-------------
echo -----------------------------------
set thirdpartyGeneration=%1
set thirdpartyInstallPath=%2
+::The following line is to force x86 or x64 compilation
+set x86Comp=%3
set MIKTEXPFDIR="%ProgramFilesPath_x86%\MiKTeX 2.9\miktex\bin\texworks.exe"
set qtBtype=4
set wxPrefixBase=wxbase28
set wxPrefixmsw=wxmsw28
- set boostMT=-vc100-mt-1_49.lib
- set boostMTGD=-vc100-mt-gd-1_49.lib
- set boostMTS=-vc100-mt-s-1_49.lib
- set boostMTSGD=-vc100-mt-sgd-1_49.lib
+ set boostMT=-vc100-mt-1_49.*
+ set boostMTGD=-vc100-mt-gd-1_49.*
+ set boostMTS=-vc100-mt-s-1_49.*
+ set boostMTSGD=-vc100-mt-sgd-1_49.*
echo ) else (
echo set qtBtype=d4
echo set wxPrefixBase=wxbase293d
echo set wxPrefixmsw=wxmsw293d
echo )
-if %PROCESSOR_ARCHITECTURE%==x86 (
+if %x86Comp%==ON (
set vcFolder=vc_dll
set winType=Win32
) else (
- set vcFolder=vc_amd64_dll
- set winType=Win64
+ if %PROCESSOR_ARCHITECTURE%==x86 (
+ set vcFolder=vc_dll
+ set winType=Win32
+ ) else (
+ set vcFolder=vc_amd64_dll
+ set winType=Win64
+ )
)
-
+
echo -----------------------------------
echo Environment variables Configuration
echo -----------------------------------
copy /V /Y %QTDIR%\bin\QtDesigner%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
copy /V /Y %QTDIR%\bin\QtDesignerComponents%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
+copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
+::End of temporal copy
+
XCOPY %QTDIR%\lib\*.lib %creaThirdPartyLibraries%\%qt%\lib\ /i
mkdir %creaThirdPartyLibraries%\%qt%\src\corelib
mkdir %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
+::End of temporal copy
+
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3.lib %creaThirdPartyLibraries%\%xercesc%\lib\
+:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
+copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3_1.dll %creaThirdPartyLibraries%\%xercesc%\lib\
+
echo -----------------------------------
echo -------------ITK-------------------
mkdir %creaThirdPartyLibraries%\tth
XCOPY %TTHDIR%\* %creaThirdPartyLibraries%\%tth% /s /i
-echo -----------------------------------
-echo -------------MiKText---------------
-echo -----------------------------------
-mkdir %creaThirdPartyLibraries%\%miktexAux%
+::echo -----------------------------------
+::echo -------------MiKText---------------
+::echo -----------------------------------
+::mkdir %creaThirdPartyLibraries%\%miktexAux%
-XCOPY %MIKTEXPFDIR%\* %MIKTEXDIR% /s /i
+::XCOPY %MIKTEXPFDIR%\* %MIKTEXDIR% /s /i
echo -----------------------------------