forked from nativelibs4java/BridJ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildNative.cmd
62 lines (46 loc) · 1.96 KB
/
BuildNative.cmd
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
@echo off
setlocal enabledelayedexpansion
pushd .
cd src\main\cpp\buildsys\vs2008
call SetEnv.cmd
call CopyRulesIfNeeded.cmd
pushd ..
call GenerateJNIStubs.cmd
popd
if "%CONFIG%" == "" set CONFIGS=Release Debug
if not "%CONFIG%" == "" set CONFIGS=%CONFIG%
if "%CONFIG%" == "" set CONFIG=Release
for %%C in (%CONFIGS%) do (
REM if exists "c:\Program Files (x86)"
call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
REM if not exists "c:\Program Files (x86)" call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
devenv /nologo /useenv /Build "%%C|Win32" bridj.sln
echo.
REM if exists "c:\Program Files (x86)"
call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86_amd64
REM if not exists "c:\Program Files (x86)" call "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86_amd64
devenv /nologo /useenv /Build "%%C|x64" bridj.sln
echo.
)
for %%T in (win32 win64) do (
del ..\..\..\resources\org\bridj\lib\%%T\*.dll
del ..\..\..\..\test\resources\org\bridj\lib\%%T\*.dll
)
rem set CONFIG=Debug
rem set CONFIG=Release
copy %CONFIG%\bridj.dll ..\..\..\resources\org\bridj\lib\win32
copy %CONFIG%\test.dll ..\..\..\..\test\resources\org\bridj\lib\win32
copy %CONFIG%\dependsOnTest.dll ..\..\..\..\test\resources\org\bridj\lib\win32
copy x64\%CONFIG%\bridj.dll ..\..\..\resources\org\bridj\lib\win64
copy x64\%CONFIG%\test.dll ..\..\..\..\test\resources\org\bridj\lib\win64
copy x64\%CONFIG%\dependsOnTest.dll ..\..\..\..\test\resources\org\bridj\lib\win64
rem if "%CONFIG%" == "Debug" (
copy %CONFIG%\bridj.pdb ..\..\..\resources\org\bridj\lib\win32
copy %CONFIG%\test.pdb ..\..\..\..\test\resources\org\bridj\lib\win32
copy x64\%CONFIG%\bridj.pdb ..\..\..\resources\org\bridj\lib\win64
copy x64\%CONFIG%\test.pdb ..\..\..\..\test\resources\org\bridj\lib\win64
rem )
rem echo Copied files from %CONFIG% :
rem dir %CONFIG%\bridj.dll x64\%CONFIG%\bridj.dll
popd
if not "%1" == "nopause" pause