-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-win.bat
87 lines (63 loc) · 2.33 KB
/
build-win.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
set QTDIR=C:/Qt/qt4-build
set CLUCENEDIR=C:/clucene-vc
set OUTDIR=moltaqa-lib-1.0b1
echo Create directory %OUTDIR%
mkdir %OUTDIR%
cd %OUTDIR%
cp -r D:/Programming/moltaqa-lib moltaqa-lib-src
cd moltaqa-lib-src
qmake moltaqa-lib.pro -r -spec win32-msvc2008 "CONFIG += release"
c:\Qt\qtcreator\bin\jom.exe -j2
cd ..
mkdir bin
echo Copy files:
echo -- Qt dlls
cp %QTDIR%/bin/phonon4.dll bin
cp %QTDIR%/bin/QtCore4.dll bin
cp %QTDIR%/bin/QtGui4.dll bin
cp %QTDIR%/bin/QtNetwork4.dll bin
cp %QTDIR%/bin/QtSql4.dll bin
cp %QTDIR%/bin/QtWebKit4.dll bin
cp %QTDIR%/bin/QtXmlPatterns4.dll bin
cp %QTDIR%/bin/QtXml4.dll bin
echo -- Qt Drivers
echo ---- SQL
mkdir bin\sqldrivers
cp %QTDIR%/plugins/sqldrivers/qsqlite4.dll bin/sqldrivers
cp %QTDIR%/plugins/sqldrivers/qsqlodbc4.dll bin/sqldrivers
echo ---- Images
mkdir bin\imageformats
cp %QTDIR%/plugins/imageformats/qgif4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qico4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qjpeg4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qmng4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qsvg4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qtga4.dll bin/imageformats
cp %QTDIR%/plugins/imageformats/qtiff4.dll bin/imageformats
echo -- MSVC dlls
cp D:/Programming/albahhet-vc_release/msvcm90.dll bin
cp D:/Programming/albahhet-vc_release/msvcp90.dll bin
cp D:/Programming/albahhet-vc_release/msvcr90.dll bin
cp D:/Programming/albahhet-vc_release/Microsoft.VC90.CRT.manifest bin
echo -- CLucene dlls
cp %CLUCENEDIR%/bin/Release/clucene-contribs-lib.dll bin
cp %CLUCENEDIR%/bin/Release/clucene-core.dll bin
cp %CLUCENEDIR%/bin/Release/clucene-shared.dll bin
echo -- ZLib dll
cp D:/Programming/albahhet-vc_release/zlib1.dll bin
echo -- Application
cp -v moltaqa-lib-src/bin/moltaqa-lib.exe bin
mkdir share
mkdir share\moltaqa-lib
echo -- Share files
cp -r D:/Programming/moltaqa-lib/share/moltaqa-lib/data share/moltaqa-lib
cp -r D:/Programming/moltaqa-lib/share/moltaqa-lib/js share/moltaqa-lib
cp -r D:/Programming/moltaqa-lib/share/moltaqa-lib/locale share/moltaqa-lib
cp -r D:/Programming/moltaqa-lib/share/moltaqa-lib/styles share/moltaqa-lib
cp -r D:/Programming/moltaqa-lib/share/fonts share
cp D:/Programming/moltaqa-lib/share/moltaqa-lib/images/moltaqa-lib.ico moltaqa-lib.ico
cd ..
cp installer.iss %OUTDIR%
du -hs %OUTDIR%
echo Done