forked from hso-esk/asneg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
104 lines (81 loc) · 1.93 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@echo off
REM
REM OpcUaStack build and install script
REM
REM rmdir ./build_local
REM rmdir ./build_tst
set BOOST_VERSION_MAJOR=1
set BOOST_VERSION_MINOR=58
set BOOST_LIBRARYDIR=C:\local\boost_1_58_0\lib32-msvc-12.0
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
)
if "%COMMAND%" == "tst" (
call:build_tst
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%" -H./src/ -B./build_local
REM
REM install OpcUaStack
REM
set DESTDIR=C:\install
%MSBUILD% ./build_local/INSTALL.vcxproj
goto:eof
REM ---------------------------------------------------------------------------
REM
REM build tst function
REM
REM ---------------------------------------------------------------------------
:build_tst
echo build unittest
REM
REM build unittest
REM
%CMAKE% -G"%VS%" -DOPCUASTACK_INSTALL_PREFIX=C:\install -H./tst/ -B./build_tst
REM
REM install OpcUaStack
REM
%MSBUILD% ./build_tst/ALL_BUILD.vcxproj
goto:eof
REM ---------------------------------------------------------------------------
REM
REM usage function
REM
REM ---------------------------------------------------------------------------
:usage
echo build.bat (local | tst)
echo.
echo local - create local build and install in folder C:/install
echo tst - build unit application
echo.
goto:eof