-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqt_dll_setup.bat
executable file
·46 lines (40 loc) · 1.74 KB
/
qt_dll_setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
:: Necessary Qt dlls are packaged with every release.
:: These dlls are not included in the SVN.
:: They need to be copied into the dev area from the Qt install.
:: It is important to understand that the Qt-SDK is different from the Qt-Framework
:: Qt-SDK is an integrated development environment that is married to the MinGW compiler
:: Qt-Framework is simply the Qt runtime dlls built against the MSVC 2008 compiler
:: Both can be found at: http://qt.nokia.com/downloads
:: If you build SimC with MSVC 2008, then you need to use dlls from Qt-Framework
:: If you build SimC with the Qt SDK, then you need to use dlls from Qt-SDK
:: As of this writing, the default locations from which to gather the dlls are:
:: Qt-SDK: c:\QtSDK\Desktop\Qt\4.7.4\mingw
:: Qt-Framework: C:\Qt\4.7.4
:: Update the qt_dir as necessary
set qt_dir=c:\QtSDK\Desktop\Qt\4.7.4\mingw
:: IMPORTANT NOTE FOR DEBUGGING
:: This script will ONLY copy the optimized Qt dlls
:: The MSVC 2008 simcqt.vcproj file is setup to use optimized dlls for both Debug/Release builds
:: The Qt SDK simcqt.pro file will only use optimize dlls for Release
:: This script needs to be smarter if you wish to use the interactive debugger in the Qt SDK
:: The debug Qt dlls are named: Qt___d4.dll
:: Removing existing dlls
del /q imageformats
del /q phonon4.dll
del /q QtCore4.dll
del /q QtGui4.dll
del /q QtNetwork4.dll
del /q QtWebKit4.dll
del /q QtXmlPatterns4.dll
del /q mingw*.dll
del /q libgcc*.dll
:: Copying new dlls
xcopy /I %qt_dir%\plugins\imageformats imageformats
xcopy %qt_dir%\bin\phonon4.dll
xcopy %qt_dir%\bin\QtCore4.dll
xcopy %qt_dir%\bin\QtGui4.dll
xcopy %qt_dir%\bin\QtNetwork4.dll
xcopy %qt_dir%\bin\QtWebKit4.dll
:: Copy MingW runtime DLLs
xcopy %qt_dir%\bin\mingw*.dll .
xcopy %qt_dir%\bin\libgcc*.dll .