-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
73 lines (55 loc) · 2.63 KB
/
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
68
69
70
71
72
73
@echo off
setlocal
REM this is defined by IBEX and causes issues with C# compiler
set INSTRUMENT=
REM Create an EPICS style layout
mkdir bin\%EPICS_HOST_ARCH%
mkdir lib\%EPICS_HOST_ARCH%
call %~dp0vcversion.bat
if /I "%EPICS_HOST_ARCH%" == "windows-x64-debug" (
set BUILD_DIR=x64\Debug
call msbuild.exe /p:Configuration=Debug;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "windows-x64" (
set BUILD_DIR=x64\Release
call msbuild.exe /p:Configuration=Release;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "windows-x64-static-debug" (
set BUILD_DIR=x64\Debug
call msbuild.exe /p:Configuration=Debug;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "windows-x64-static" (
set BUILD_DIR=x64\Release
call msbuild.exe /p:Configuration=Release;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "windows-x64-static_md-debug" (
set BUILD_DIR=x64\Debug
call msbuild.exe /p:Configuration=Debug;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "windows-x64-static_md" (
set BUILD_DIR=x64\Release
call msbuild.exe /p:Configuration=Release;Platform=x64;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "win32-x86-debug" (
set BUILD_DIR=Debug
call msbuild.exe /p:Configuration=Debug;Platform=x86;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "win32-x86" (
set BUILD_DIR=Release
call msbuild.exe /p:Configuration=Release;Platform=x86;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "win32-x86-static-debug" (
set BUILD_DIR=Debug
call msbuild.exe /p:Configuration=Debug;Platform=x86;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if /I "%EPICS_HOST_ARCH%" == "win32-x86-static" (
set BUILD_DIR=Release
call msbuild.exe /p:Configuration=Release;Platform=x86;PlatformToolset=%PLATFORM_TOOLSET%;TargetFrameworkVersion=%TARGET_FRAMEWORK_VERSION% %1
)
if %ERRORLEVEL% neq 0 goto PROBLEM
copy %BUILD_DIR%\*.lib lib\%EPICS_HOST_ARCH%
copy %BUILD_DIR%\*.dll bin\%EPICS_HOST_ARCH%
GOTO :EOF
:PROBLEM
@echo astrium chopper Build Failed
exit /b 1