-
Notifications
You must be signed in to change notification settings - Fork 23
/
build_hss1394.bat
48 lines (42 loc) · 1.19 KB
/
build_hss1394.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
SETLOCAL
echo ---- Building HSS1394 ----
set HSS1394_PATH=hss1394-r8
SET VALRETURN=0
if %MACHINE_X86% (
set PLATFORM=Win32
) else (
set PLATFORM=x64
)
if %CONFIG_RELEASE% (
set CONFIG=Release
) else (
set CONFIG=Debug
)
cd build\%HSS1394_PATH%\code\builds\win32\VS2015
echo Cleaning both...
%MSBUILD% libHSS1394.sln /p:Configuration=%CONFIG% /p:Platform=%PLATFORM% /t:libHSS1394:Clean;libHSS1394_dll:Clean
IF ERRORLEVEL 1 (
SET VALRETURN=1
goto END
)
echo Building...
if %STATIC_LIBS% (
%MSBUILD% libHSS1394.sln /p:Configuration=%CONFIG% /p:Platform=%PLATFORM% /t:libHSS1394:Rebuild
) else (
%MSBUILD% libHSS1394.sln /p:Configuration=%CONFIG% /p:Platform=%PLATFORM% /t:libHSS1394_dll:Rebuild
)
IF ERRORLEVEL 1 (
SET VALRETURN=1
goto END
)
copy %PLATFORM%\%CONFIG%\libHSS1394.lib %LIB_DIR%
if NOT %STATIC_LIBS% ( copy %PLATFORM%\%CONFIG%\libHSS1394.dll %LIB_DIR% )
copy %PLATFORM%\%CONFIG%\libHSS1394.pdb %LIB_DIR%
md %INCLUDE_DIR%\hss1394
copy ..\..\..\..\inc\*.h %INCLUDE_DIR%\hss1394\
:END
cd %ROOT_DIR%
REM the GOTO command resets the errorlevel and the endlocal resets the local environment,
REM so I have to use this workaround
ENDLOCAL & SET VALRETURN=%VALRETURN%
exit /b %VALRETURN%