1 | REM This batch file can help you to create a directory with all required files
|
---|
2 | REM Just change the variables at the beginning
|
---|
3 |
|
---|
4 | REM Warning: it will only work with sources from the SVN and the command svn has to be in the path
|
---|
5 | REM Note: it doesn't install mplayer
|
---|
6 |
|
---|
7 | set OUTPUT_DIR=smplayer-build
|
---|
8 |
|
---|
9 | set SMPLAYER_DIR=svn\smplayer\
|
---|
10 | set SMPLAYER_THEMES_DIR=svn\smplayer-themes\
|
---|
11 |
|
---|
12 | set QT_DIR=c:\Qt\4.5.1
|
---|
13 | set QXT_DIR=c:\development\libqxt
|
---|
14 | set MINGW_DIR=c:\MinGW
|
---|
15 |
|
---|
16 | mkdir %OUTPUT_DIR%
|
---|
17 |
|
---|
18 | copy %SMPLAYER_DIR%\src\release\smplayer.exe %OUTPUT_DIR%
|
---|
19 | copy %SMPLAYER_DIR%\dxlist\release\dxlist.exe %OUTPUT_DIR%
|
---|
20 | copy %SMPLAYER_DIR%\*.txt %OUTPUT_DIR%
|
---|
21 | copy %QT_DIR%\bin\QtCore4.dll %OUTPUT_DIR%
|
---|
22 | copy %QT_DIR%\bin\QtGui4.dll %OUTPUT_DIR%
|
---|
23 | copy %QT_DIR%\bin\QtNetwork4.dll %OUTPUT_DIR%
|
---|
24 | copy %QT_DIR%\bin\QtXml4.dll %OUTPUT_DIR%
|
---|
25 | copy %MINGW_DIR%\bin\mingwm10.dll %OUTPUT_DIR%
|
---|
26 |
|
---|
27 | mkdir %OUTPUT_DIR%\imageformats
|
---|
28 | copy %QT_DIR%\plugins\imageformats\qjpeg4.dll %OUTPUT_DIR%\imageformats\
|
---|
29 |
|
---|
30 | rem translations
|
---|
31 | mkdir %OUTPUT_DIR%\translations
|
---|
32 | copy %SMPLAYER_DIR%\src\translations\*.qm %OUTPUT_DIR%\translations
|
---|
33 |
|
---|
34 | rem Qt translations
|
---|
35 | copy %QT_DIR%\translations\qt_de.qm %OUTPUT_DIR%\translations
|
---|
36 | copy %QT_DIR%\translations\qt_es.qm %OUTPUT_DIR%\translations
|
---|
37 | copy %QT_DIR%\translations\qt_ru.qm %OUTPUT_DIR%\translations
|
---|
38 | copy %QT_DIR%\translations\qt_sk.qm %OUTPUT_DIR%\translations
|
---|
39 | copy %QT_DIR%\translations\qt_sv.qm %OUTPUT_DIR%\translations
|
---|
40 | copy %QT_DIR%\translations\qt_zh_CN.qm %OUTPUT_DIR%\translations
|
---|
41 |
|
---|
42 | rem shortcuts
|
---|
43 | mkdir %OUTPUT_DIR%\shortcuts
|
---|
44 | copy %SMPLAYER_DIR%\src\shortcuts\*.keys %OUTPUT_DIR%\shortcuts
|
---|
45 |
|
---|
46 | rem docs
|
---|
47 | svn export --force %SMPLAYER_DIR%\docs %OUTPUT_DIR%\docs
|
---|
48 |
|
---|
49 | rem themes
|
---|
50 | svn export --force %SMPLAYER_THEMES_DIR%\themes %OUTPUT_DIR%\themes
|
---|
51 |
|
---|
52 | rem libqxt
|
---|
53 | copy %QXT_DIR%\lib\QxtCore.dll %OUTPUT_DIR%
|
---|
54 |
|
---|