-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjenkins-configure-and-build.bat
67 lines (44 loc) · 2.45 KB
/
jenkins-configure-and-build.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
@echo off
REM ===========================================================================
REM Configure environment on Jenkins machine
REM ===========================================================================
if exist %~dp0jenkins-custom.bat call %~dp0jenkins-custom.bat
REM ===========================================================================
REM Copy and unpack 3-rd parties
REM ===========================================================================
mkdir 3rd-parties-arc
copy %JENKINS_3RDPARTIES_ARCHIVE_DIR%\%JENKINS_3RDPARTIES_ARCHIVE% 3rd-parties-arc
copy %JENKINS_3RDPARTIES_ARCHIVE_DIR%\%JENKINS_3RDPARTIES_FBX_ARCHIVE% 3rd-parties-arc
copy %JENKINS_3RDPARTIES_ARCHIVE_DIR%\7z.dll 3rd-parties-arc
copy %JENKINS_3RDPARTIES_ARCHIVE_DIR%\7z.exe 3rd-parties-arc
copy jenkins-install-products.bat 3rd-parties-arc
cd 3rd-parties-arc
call "jenkins-install-products.bat" ..\3rd-parties
cd ..
set "JENKINS_3RDPARTIES=%~dp03rd-parties"
REM ===========================================================================
REM Configure environment
REM ===========================================================================
set "JENKINS_JOB_DIR=%~dp0"
echo JENKINS_JOB_DIR: %JENKINS_JOB_DIR%
REM ===========================================================================
REM Prepare build and install directories for CMake
REM ===========================================================================
echo Create cmake-build-dir and cmake-install-dir
mkdir cmake-build-dir
mkdir cmake-install-dir
REM ===========================================================================
REM Run CMake from build directory: configure
REM ===========================================================================
cd cmake-build-dir
"%JENKINS_CMAKE_BIN%\cmake.exe" -G"Visual Studio 12 2013 Win64" -DCMAKE_BUILD_TYPE=Release -DUSE_CONSOLE=false -D3RDPARTY_DIR:PATH=%JENKINS_3RDPARTIES% -DINSTALL_DIR:PATH=../cmake-install-dir ../
REM ===========================================================================
REM CMake build and install
REM ===========================================================================
"%JENKINS_CMAKE_BIN%\cmake.exe" --build . --config Release --target INSTALL
REM ===========================================================================
REM Prepare installer
REM ===========================================================================
cd ..
xcopy /S /Y cmake-build-dir\setup .\setup
"%JENKINS_3RDPARTIES%\innosetup5\ISCC.exe" .\setup\setup.iss