2011-11-20 22:20:28 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
if Test%BUILD_ALT_DIR%==Test goto usage
|
|
|
|
|
|
|
|
::# /M 2 for multiple cores
|
|
|
|
set BUILD_CMD=build -bcwgZ -M2
|
|
|
|
set PWD=%~dp0
|
|
|
|
|
|
|
|
::# Set target platform type
|
|
|
|
set ARCH_DIR=%_BUILDARCH%
|
|
|
|
if /I Test%_BUILDARCH%==Testx86 set ARCH_DIR=i386
|
|
|
|
|
2012-01-11 00:05:16 +00:00
|
|
|
::# MS-SYS Library
|
|
|
|
cd src\ms-sys
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\ms-sys_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\ms-sys.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
2012-01-12 02:52:40 +00:00
|
|
|
::# SysLinux libfat Library
|
|
|
|
cd ..\syslinux\libfat
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\libfat_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\libfat.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
|
|
|
::# SysLinux libinstaller Library
|
|
|
|
cd ..\libinstaller
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\libinstaller_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\libinstaller.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
2012-01-31 01:40:22 +00:00
|
|
|
::# libcdio iso9660 Library
|
|
|
|
cd ..\..\libcdio\iso9660
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\iso9660_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\iso9660.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
|
|
|
::# libcdio udf Library
|
|
|
|
cd ..\udf
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\udf_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\udf.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
|
|
|
::# libcdio driver Library
|
|
|
|
cd ..\driver
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\driver_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\driver.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
2013-02-04 01:14:28 +00:00
|
|
|
::# getopt Library
|
|
|
|
cd ..\..\getopt
|
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\getopt_sources sources >NUL 2>&1
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\getopt.lib . >NUL 2>&1
|
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
2012-01-11 00:05:16 +00:00
|
|
|
::# Rufus Application
|
2013-02-04 01:14:28 +00:00
|
|
|
cd ..
|
2011-11-20 22:20:28 +00:00
|
|
|
if EXIST Makefile ren Makefile Makefile.hide
|
|
|
|
|
|
|
|
copy .msvc\rufus_sources sources >NUL 2>&1
|
2011-12-05 11:29:31 +00:00
|
|
|
|
2011-11-20 22:20:28 +00:00
|
|
|
@echo on
|
|
|
|
%BUILD_CMD%
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 goto builderror
|
2011-12-05 11:29:31 +00:00
|
|
|
copy obj%BUILD_ALT_DIR%\%ARCH_DIR%\rufus.exe .. >NUL 2>&1
|
2011-11-20 22:20:28 +00:00
|
|
|
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
|
|
|
|
goto done
|
|
|
|
|
|
|
|
:builderror
|
|
|
|
if EXIST Makefile.hide ren Makefile.hide Makefile
|
|
|
|
if EXIST sources del sources >NUL 2>&1
|
|
|
|
echo Build failed
|
|
|
|
goto done
|
|
|
|
|
|
|
|
:usage
|
2011-11-21 22:23:17 +00:00
|
|
|
echo This command must be run in a Windows Driver Kit build environment.
|
|
|
|
echo See: http://msdn.microsoft.com/en-us/windows/hardware/gg487463
|
|
|
|
echo:
|
2011-11-20 22:20:28 +00:00
|
|
|
pause
|
|
|
|
|
|
|
|
:done
|
|
|
|
cd %PWD%
|