My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
@rem $Id$

@rem @echo off
@SETLOCAL

@echo Starting build at %TIME%, %DATE%

@rem %~dp0 is expanded pathname of the current script under NT
@set DEFAULT_BUILD_HOME=%~dp0
@rem get Parent Directory
@for /f "delims=" %%i in ("%DEFAULT_BUILD_HOME%..") do @set DEFAULT_BUILD_HOME=%%~fi

@set CALLED_FROM_MAVEN=0
@if /I '%1' EQU '-maven' (
@set CALLED_FROM_MAVEN=1
@shift
)
@set CRUISECONTROL_BUILD=0
@set BUILD_ENV=manual
@if /I '%1' EQU '-buildEnv' (
@set BUILD_ENV=%2
@shift
@shift
)
@echo BUILD_ENV=%BUILD_ENV%
@if "%BUILD_ENV%" == "cruisecontrol" (
@set CRUISECONTROL_BUILD=1
)


@if exist %JAVA_HOME%/include/win32 goto java_found
@echo WARN: JAVA_HOME Not Found
:java_found

@set p32=%ProgramFiles%\Microsoft Visual Studio 8\VC\bin
@if exist "%p32%\VCVARS32.BAT" goto vs_found
set p32=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin
@if exist "%p32%\VCVARS32.BAT" goto vs_found
@set p32=%ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin
@if exist "%p32%\VCVARS32.BAT" goto vs_found

@echo Visual Studio Not Found
@goto :errormark

:vs_found
@echo Found Visual Studio %p32%
@set PATH=%p32%;%PATH%

@rem PATH=%DEFAULT_BUILD_HOME%\bin;%PATH%

@echo [%p32%\VCVARS32.BAT]
call "%p32%\VCVARS32.BAT"

@set sdk=%ProgramFiles%\Microsoft SDKs\Windows\v7.0
@if exist "%sdk%\Include" goto sdk_found
@set sdk=%ProgramFiles%\Microsoft Platform SDK for Windows Server 2003 R2
@if exist "%sdk%\Include" goto sdk_found
@set sdk=%ProgramFiles%\Microsoft SDKs\Windows\v6.1
@if exist "%sdk%\Include" goto sdk_found
@set sdk=%ProgramFiles%\Microsoft SDKs\Windows\v6.0
@if exist "%sdk%\Include" goto sdk_found
@echo Microsoft SDKs Not Found
@goto :errormark
:sdk_found
@echo Microsoft SDKs Found [%sdk%]
@set INCLUDE=%sdk%\Include;%INCLUDE%
@set LIB=%sdk%\Lib;%LIB%

@rem gmake.exe -fmakefile %* default

@set CONFIGURATION=Winsock

@rem configuration: Winsock, need BlueSoleil for Release

@rem WIDCOMM build by VC6
@rem @set sdk_widcomm=%ProgramFiles%\Widcomm\BTW DK\SDK
@rem @if NOT exist "%sdk_widcomm%" goto sdk_other_not_found
@rem @echo Widcomm SDKs Found [%sdk_widcomm%]
@rem @set CONFIGURATION=WIDCOMM

set FIND_SDK=BlueSoleil
@set sdk_BlueSoleil=%ProgramFiles%\IVT Corporation\BlueSoleil\api
@if NOT exist "%sdk_BlueSoleil%" goto sdk_other_not_found
@echo BlueSoleil SDKs Found [%sdk_BlueSoleil%]
@set CONFIGURATION=Release
@echo All Supported SDK found. Will use Release configuration
@goto DO_BUILD

:sdk_other_not_found
@echo WARNING: SDK %FIND_SDK% not found!
@if "%CRUISECONTROL_BUILD%" == "1" (
@echo ERROR: All SDKs required for build.
@goto :errormark
)

:DO_BUILD
vcbuild /u /rebuild src\main\c\intelbth\intelbth.sln "%CONFIGURATION%|Win32"
@if errorlevel 1 goto errormark
@echo [Build OK]
copy src\main\resources\intelbth.dll target\classes\
@if errorlevel 1 goto errormark

echo [========= Build x64 start ===========]

@rem ------- Visual C++ 2008 on Win 64 -------
set p64=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\x86_amd64
set ms_env=vcvarsx86_amd64.bat
if exist "%p64%\%ms_env%" goto vs64_found
@rem ------- Visual C++ 2008 on Win 32 -------
set p64=%ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin\x86_amd64
set ms_env=vcvarsx86_amd64.bat
if exist "%p64%\%ms_env%" goto vs64_found
@rem ------- Visual C++ Express Edition 2008 -------
set p64=%ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin
set ms_env=vcvarsx86_amd64.bat
if exist "%p64%\%ms_env%" goto vs64_found
@rem ------- Visual C++ 2005 -------
set p64=%ProgramFiles%\Microsoft Visual Studio 8\VC\bin\x86_amd64
set ms_env=vcvarsx86_amd64.bat
if exist "%p64%\%ms_env%" goto vs64_found

echo ERROR: Visual Studio (x64 cross-compiler) Not Found
@if "%CRUISECONTROL_BUILD%" == "1" (
@echo ERROR: Windows x64 cross-compiler required for build.
@goto :errormark
)
@goto :endmark64

:vs64_found
@echo Found Visual Studio x64 %p64%
@echo [%p64%\%ms_env%]
call "%p64%\%ms_env%"

@echo Set SDK Lib 64 [%sdk%\Lib\x64]
@set LIB=%sdk%\Lib\x64;%LIB%
@set INCLUDE=%sdk%\Include;%INCLUDE%

vcbuild /u /rebuild src\main\c\intelbth\intelbth.sln "Release|x64"
@if errorlevel 1 goto errormark
@echo [Build x64 OK]
copy src\main\resources\intelbth_x64.dll target\classes\
@if errorlevel 1 goto errormark

call "%p32%\VCVARS32.BAT"
:endmark64
echo [========= Build x64 end ===========]

@if exist "%VCINSTALLDIR%\ce" goto ce_sdk_found

@echo Microsoft Windows CE SDKs Not Found
@if "%CRUISECONTROL_BUILD%" == "1" (
@echo ERROR: Windows CE SDKs required for build.
@goto :errormark
)
@goto endmark
:ce_sdk_found

del src\main\resources\intelbth_ce.dll
vcbuild /rebuild src\main\c\intelbth\intelbth.sln "Release|Pocket PC 2003 (ARMV4)"
@if errorlevel 1 goto errormark
@echo [Build OK]
copy src\main\resources\intelbth_ce.dll target\classes\
@if errorlevel 1 goto errormark

del src\main\resources\bluecove_ce.dll
vcbuild /rebuild src\main\c\intelbth\intelbth.sln "WIDCOMM|Pocket PC 2003 (ARMV4)"
@if errorlevel 1 goto errormark
@echo [Build OK]
copy src\main\resources\bluecove_ce.dll target\classes\
@if errorlevel 1 goto errormark


@goto endmark
:errormark
@echo Error in build
@if "%CALLED_FROM_MAVEN%" == "1" (
@rem echo PATH=[%PATH%]
@ENDLOCAL
exit 1
)
@ENDLOCAL
pause
:endmark
@ENDLOCAL

Change log

r3039 by skarzhevskyy on Mar 31, 2010   Diff
Adding x64 Build for Windows
Go to: 
Project members, sign in to write a code review

Older revisions

r3038 by skarzhevskyy on Mar 31, 2010   Diff
correction to current build ENV
r3037 by skarzhevskyy on Mar 31, 2010   Diff
Adding x64 Build for Windows
r3036 by skarzhevskyy on Mar 31, 2010   Diff
Adding x64 Build for Windows
All revisions of this file

File info

Size: 5430 bytes, 184 lines

File properties

svn:mergeinfo
svn:mime-type
text/plain
svn:eol-style
CRLF
svn:keywords
Date Author Id Revision
Powered by Google Project Hosting