VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Dcs_bld.bat
diff options
context:
space:
mode:
authorAlex <kavsrf@gmail.com>2016-08-15 17:11:31 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 17:14:26 +0200
commitb87fc6b140772ba3017de311c7063c259424264c (patch)
tree41ad139e7469380704361ae757a155464e8b68e3 /Dcs_bld.bat
parent68ea2f72cfe6a9b34212ced97882e488c73c8f1d (diff)
downloadVeraCrypt-DCS-b87fc6b140772ba3017de311c7063c259424264c.tar.gz
VeraCrypt-DCS-b87fc6b140772ba3017de311c7063c259424264c.zip
First public release. Used by VeraCrypt 1.18.VeraCrypt_1.18_PreRelease
Diffstat (limited to 'Dcs_bld.bat')
-rw-r--r--Dcs_bld.bat39
1 files changed, 39 insertions, 0 deletions
diff --git a/Dcs_bld.bat b/Dcs_bld.bat
new file mode 100644
index 0000000..ff55c73
--- /dev/null
+++ b/Dcs_bld.bat
@@ -0,0 +1,39 @@
+pushd "%~dp0"
+
+set dcsarch=X64
+set dcstype=DEBUG
+set dcsbldtoolset=VS2010x86
+set dcspkgpath="%~dp0DcsPkg.dsc"
+
+if /I NOT ["%1"]==["X64Rel"] goto :IA32
+set dcsarch=X64
+set dcstype=RELEASE
+goto :bld
+
+:IA32
+if /I NOT ["%1"]==["IA32"] goto :IA32Rel
+set dcsarch=IA32
+set dcstype=DEBUG
+goto :bld
+
+:IA32Rel
+if /I NOT ["%1"]==["IA32rel"] goto :bld
+set dcsarch=IA32
+set dcstype=RELEASE
+
+:bld
+if /I ["%2"]==["VS2015"] set dcsbldtoolset=VS2015x86
+call bld.bat -t %dcsbldtoolset% -DSECURE_BOOT_ENABLE=1 -p %dcspkgpath% -b %dcstype% -a %dcsarch%
+
+if ERRORLEVEL 1 goto :exit
+if not exist SecureBoot\keys\DCS_sign.pfx goto :exit
+
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsBml.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsBoot.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsCfg.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsInt.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\DcsRe.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+call SecureBoot\efi_sign.bat ..\Build\DcsPkg\%dcstype%_%dcsbldtoolset%\%dcsarch%\LegacySpeaker.efi SecureBoot\keys\DCS_sign.pfx SecureBoot\certs\DCS_sign.crt
+
+:exit
+popd