mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-20 14:39:22 +01:00
Land zeroSteiner#1, add CLI build options for the debug configuration
This commit is contained in:
commit
695a6dff39
@ -28,6 +28,10 @@ IF "%1"=="x86" GOTO BUILD_X86
|
||||
IF "%1"=="X86" GOTO BUILD_X86
|
||||
IF "%1"=="x64" GOTO BUILD_X64
|
||||
IF "%1"=="X64" GOTO BUILD_X64
|
||||
IF "%1"=="debug_x86" GOTO DEBUG_BUILD_X86
|
||||
IF "%1"=="debug_x64" GOTO DEBUG_BUILD_X64
|
||||
IF "%1"=="debug_X86" GOTO DEBUG_BUILD_X86
|
||||
IF "%1"=="debug_X64" GOTO DEBUG_BUILD_X64
|
||||
|
||||
ECHO "Building Meterpreter x64 and x86 (Release)"
|
||||
SET PLAT=all
|
||||
@ -38,11 +42,23 @@ ECHO "Building Meterpreter x86 (Release)"
|
||||
SET PLAT=x86
|
||||
GOTO RUN
|
||||
|
||||
:DEBUG_BUILD_X86
|
||||
ECHO "Building Meterpreter x86 (Debug)"
|
||||
SET PREF=debug_
|
||||
SET PLAT=x86
|
||||
GOTO RUN
|
||||
|
||||
:BUILD_X64
|
||||
ECHO "Building Meterpreter x64 (Release)"
|
||||
SET PLAT=x64
|
||||
GOTO RUN
|
||||
|
||||
:DEBUG_BUILD_X64
|
||||
ECHO "Building Meterpreter x64 (Debug)"
|
||||
SET PREF=debug_
|
||||
SET PLAT=x64
|
||||
GOTO RUN
|
||||
|
||||
:RUN
|
||||
PUSHD workspace
|
||||
msbuild.exe make.msbuild /target:%PREF%%PLAT% /p:PlatformToolset=%PTS_VER%
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
<Target Name="all" DependsOnTargets="x86;x64" />
|
||||
<Target Name="r7_all" DependsOnTargets="r7_x86;r7_x64" />
|
||||
<Target Name="debug" DependsOnTargets="debug_x86;debug_x64" />
|
||||
|
||||
<Target Name="x86">
|
||||
<Message Text="Building x86 Release version" />
|
||||
@ -26,5 +27,15 @@
|
||||
<Message Text="Building x64 Release R7 binaries" />
|
||||
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=r7_Release;Platform=x64" Targets="Clean;Rebuild"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="debug_x86">
|
||||
<Message Text="Building x86 Debug version" />
|
||||
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=Debug;Platform=Win32" Targets="Clean;Rebuild"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="debug_x64">
|
||||
<Message Text="Building x64 Debug version" />
|
||||
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=Debug;Platform=x64" Targets="Clean;Rebuild"/>
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user