-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
75 lines (57 loc) · 1.37 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
74
75
@echo off
REM
REM OpcUaStack build and install script
REM
rmdir ./build_local
set OpcUaStack_Install_Prefix=C:\install
set CMAKE=cmake.exe
set VS=Visual Studio 12 2013
set MSBUILD=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
REM ---------------------------------------------------------------------------
REM
REM main
REM
REM ---------------------------------------------------------------------------
set COMMAND=%1
if "%COMMAND%" == "" (
call:build_local
pause
goto:eof
)
if "%COMMAND%" == "local" (
call:build_local
pause
goto:eof
)
call:usage
pause
goto:eof
REM ---------------------------------------------------------------------------
REM
REM build local function
REM
REM ---------------------------------------------------------------------------
:build_local
echo build and install local
REM
REM build OpcUaStack
REM
%CMAKE% -G"%VS%" -DOPCUASTACK_INSTALL_PREFIX=%OpcUaStack_Install_Prefix% -H./src/ -B./build_local
REM
REM install OpcUaStack
REM
set DESTDIR=C:\install
%MSBUILD% ./build_local/INSTALL.vcxproj
goto:eof
REM ---------------------------------------------------------------------------
REM
REM usage function
REM
REM ---------------------------------------------------------------------------
:usage
echo build.bat (local)
echo.
echo local - create local build and install in folder C:/install
echo.
goto:eof
pause