VS2013-Qt-5.5.1-x64.bat 1.78 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
rmdir libs_required\OpenMesh /s /q
Jan Möbius's avatar
Jan Möbius committed
2
3


4
5
6
7
git submodule init
git submodule update --remote


Jan Möbius's avatar
Jan Möbius committed
8
9
mkdir rel
cd rel
Jan Möbius's avatar
Jan Möbius committed
10

Jan Möbius's avatar
Jan Möbius committed
11
12
del *.exe

Jan Möbius's avatar
Jan Möbius committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
set ARCHITECTURE=x64
set ARCH_VS= Win64
set STRING_ARCH=64-Bit

set QT_REV=5.5
set QT_SUFFIX=

set LIBPATH_BASE=C:\libs\VS2013
set GTESTVERSION=gtest-1.6.0
set GENERATOR=Visual Studio 12%ARCH_VS%
set VS_PATH="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"

set QT_VERSION=Qt5.5.1
set QT_BASE_CONFIG=-DQT5_INSTALL_PATH=C:\Qt\%QT_VERSION%-vs2013-%STRING_ARCH%\%QT_REV%\msvc2013_64%QT_SUFFIX%

set GLUT_INCLUDE_DIR=C:\libs\VS2013\%ARCHITECTURE%\freeglut-2.8.1\include
set GLUT_GLUT_LIBRARY=C:\libs\VS2013\%ARCHITECTURE%\freeglut-2.8.1\lib\freeglut.lib
set GLEW_INCLUDE_DIR=C:\libs\VS2013\%ARCHITECTURE%\glew-1.10.0\include
set GLEW_LIBRARY_DIR=C:\libs\VS2013\%ARCHITECTURE%\glew-1.10.0\lib\glew32.lib

set CMAKE_CONFIGURATION=%QT_BASE_CONFIG% -DGLUT_INCLUDE_DIR="%GLUT_INCLUDE_DIR%" -DGLUT_glut_LIBRARY="%GLUT_GLUT_LIBRARY%" -DGLEW_INCLUDE_DIR="%GLEW_INCLUDE_DIR%" -DGLEW_LIBRARY="%GLEW_LIBRARY_DIR%"

"C:\Program Files (x86)\CMake\bin\cmake.exe"  -DGTEST_PREFIX="%LIBPATH_BASE%\%ARCHITECTURE%\%GTESTVERSION%" -G "%GENERATOR%"  -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE %CMAKE_CONFIGURATION% ..
36

Jan Möbius's avatar
Jan Möbius committed
37
38
IF %errorlevel% NEQ 0 exit /b %errorlevel%

39
40
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"

Jan Möbius's avatar
Jan Möbius committed
41
42
IF %errorlevel% NEQ 0 exit /b %errorlevel%

Jan Möbius's avatar
Jan Möbius committed
43
44
45
46
47
48
49
50
51

set BUILD_PLATFORM=VS2013

del *.exe

%VS_PATH% /Build "Release" OpenFlipper.sln /Project "PACKAGE"

IF %errorlevel% NEQ 0 exit /b %errorlevel%

52
move OpenFlipper-*.exe "OpenFlipper-Free-Git-Master-%CI_BUILD_REF%-%BUILD_PLATFORM%-%STRING_ARCH%-%QT_VERSION%.exe"
Jan Möbius's avatar
Jan Möbius committed
53

54
55
56
57
58
cd tests
copy ..\Build\Qt*.dll testBinaries
copy ..\Build\icu*.dll testBinaries
run_tests.bat

Jan Möbius's avatar
Jan Möbius committed
59
IF %errorlevel% NEQ 0 exit /b %errorlevel%
Jan Möbius's avatar
Jan Möbius committed
60

Jan Möbius's avatar
Jan Möbius committed
61
62


Jan Möbius's avatar
Jan Möbius committed
63

Jan Möbius's avatar
Jan Möbius committed
64

65
66
67
68




Jan Möbius's avatar
Jan Möbius committed
69

70