forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
99 lines (88 loc) · 3.83 KB
/
appveyor.yml
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
88
89
90
91
92
93
94
95
96
97
98
99
branches:
only:
- master
- prelease
- ci/appveyor
- appveyor
environment:
matrix:
- arch: x86
cc: VS2013
qt: 5.5.0
suffix: -xp
# - arch: 32
# cc: MinGW
# qt: 5.4.0
# suffix: GCC492-dwarf
init:
- if not �%==MinGW call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %arch%
- C:\MinGW\bin\g --version
- echo %NUMBER_OF_PROCESSORS% cores
- echo %PROCESSOR_IDENTIFIER%
install:
- git submodule update --init
- mkdir build
- cd build
- ps: $qt_url = 'http://sourceforge.net/projects/buildqt/files/release/' $env:qt '/Qt' $env:qt '-' $env:cc $env:arch $env:suffix '.7z/download'
- ps: Start-FileDownload $qt_url qt.7z
- ps: Start-FileDownload http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64-20150706.7z/download av.7z
- 7z x qt.7z > NUL
- 7z x av.7z > NUL
- move Qt%qt%-* Qt #Qt%qt%-�%%arch%%suffix% Qt
- move QtAV-depends* AV
- xcopy /syi AV\include Qt\include > NUL
- xcopy /syi AV\lib Qt\lib > NUL
- copy /y AV\bin\*.dll Qt\bin > NUL
before_build:
- set PATH=�%\Qt\bin;%PATH%
- if �%==MinGW set PATH=�%\MinGW\bin;C:\MinGW\bin;%PATH%
build_script:
- qmake ..
- if not �%==MinGW (nmake) else (mingw32-make -j%NUMBER_OF_PROCESSORS%)
after_build:
- copy /y Qt\bin\av*.dll bin
- copy /y Qt\bin\sw*.dll bin
- if exist Qt\bin\po*.dll copy /y Qt\bin\po*.dll bin
- if exist Qt\bin\msvc*.dll copy /y Qt\bin\msvc*.dll bin
- if exist Qt\bin\OpenAL32*.dll copy /y Qt\bin\OpenAL32*.dll bin
- if exist Qt\bin\OpenAL32-�%.dll copy /y Qt\bin\OpenAL32-�%.dll bin\OpenAL32.dll
- if exist Qt\bin\D3DCompiler_*.dll copy /y Qt\bin\D3DCompiler_*.dll bin
- if exist Qt\bin\lib*.dll copy /y Qt\bin\lib*.dll bin # libEGL, GLESv2, gcc_s_dw2-1, stdc -6, winpthread-1
- echo [Paths] > bin\qt.conf
- echo Prefix=. >> bin\qt.conf
- copy /y Qt\bin\Qt*Core*.dll bin
- copy /y Qt\bin\Qt*Gui*.dll bin
- copy /y Qt\bin\Qt*OpenGL*.dll bin
- copy /y Qt\bin\Qt*Svg*.dll bin
- if exist Qt\bin\Qt*Widgets.dll copy /y Qt\bin\Qt*Widgets.dll bin
- if exist Qt\bin\Qt5Network.dll copy /y Qt\bin\Qt5Network.dll bin
- if exist Qt\bin\Qt*Qml.dll copy /y Qt\bin\Qt*Qml.dll bin
- if exist Qt\bin\Qt*Quick.dll copy /y Qt\bin\Qt*Quick.dll bin
- if exist Qt\qml\Qt xcopy /syi Qt\qml\Qt bin\qml\Qt > NUL
- if exist Qt\qml\QtQml xcopy /syi Qt\qml\QtQml bin\qml\QtQml > NUL
- if exist Qt\qml\QtQuick xcopy /syi Qt\qml\QtQuick bin\qml\QtQuick > NUL
- if exist Qt\qml\QtQuick.2 xcopy /syi Qt\qml\QtQuick.2 bin\qml\QtQuick.2 > NUL
- if exist Qt\plugins\platforms xcopy /syi Qt\plugins\platforms bin\plugins\platforms > NUL
- if exist Qt\plugins\imageformats xcopy /syi Qt\plugins\imageformats bin\plugins\imageformats > NUL
- if exist Qt\plugins\iconengines xcopy /syi Qt\plugins\iconengines bin\plugins\iconengines > NUL
- xcopy /syi tools\install_sdk\mkspecs mkspecs
- copy /y ..\qtc_packaging\ifw\packages\com.qtav.product.dev\data\sdk_deploy.bat .
- copy /y ..\qtc_packaging\ifw\packages\com.qtav.product.player\data\*.bat .
- xcopy /syi ..\src\QtAV include\QtAV
- xcopy /syi ..\widgets\QtAVWidgets include\QtAVWidgets
- move lib_* lib_
- if exist lib_\*AV*.lib xcopy /syi lib_\*AV*.lib lib
- if exist lib_\*AV*.a xcopy /syi lib_\*AV*.a lib
- 7z a %APPVEYOR_BUILD_FOLDER%\QtAV-Qt%qt%-�%%arch%-%APPVEYOR_REPO_COMMIT:~0,7%.7z bin lib include mkspecs sdk_deploy.bat install.bat uninstall.bat > NUL
test: off
artifacts:
- path: 'QtAV*.7z' # relative to repo root
deploy:
provider: FTP
protocol: sftp
host: frs.sourceforge.net
username: novesky
password:
secure: 2mQg4oxdX8S7rMJz2TCGGg==
folder: /home/frs/project/qtav/ci # why always relative path even if starts with / ? I have to make a link home/frs/project/qtav/ci => /home/frs/project/qtav/ci
active_mode: false