This commit is contained in:
glachancecmaisonneuve
2019-02-18 14:00:27 -05:00
parent f623539c73
commit 758c3790d3
2 changed files with 112 additions and 31 deletions

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{2E507455-9726-46EE-8DE1-10B26C238535}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Makefile</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings"></ImportGroup>
<ImportGroup Label="Shared"></ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<NMakeBuildCommandLine>
SET CPU=AMD64
SET MY_STATIC_LINK=1
SET _SFX=1
SET O=$(OutDir).TrimEnd('\')
SET LFLAGS=/DEBUG /SUBSYSTEM:WINDOWS,"5.02"
nmake /f Makefile
</NMakeBuildCommandLine>
<NMakePreprocessorDefinitions>NDEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<ItemDefinitionGroup></ItemDefinitionGroup>
<ItemGroup></ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"></ImportGroup>
</Project>

101
build.cmd
View File

@@ -1,93 +1,132 @@
@echo off
set OPTS=CPU=AMD64 MY_STATIC_LINK=1 _SFX=1
set LFLAGS=/SUBSYSTEM:WINDOWS,"5.02"
set LFLAGS=/DEBUG /SUBSYSTEM:WINDOWS,"5.02"
@echo ^_^_^_^_^_ ^_ ^_ ^_^_ ^_^_
@echo ^| ^_^_^_(^_) ^| ^_^_^_^| \^/ ^| ^_^_ ^_ ^_ ^_^_ ^_^_ ^_ ^_^_ ^_ ^_^_^_ ^_ ^_^_
@echo ^| ^|^_ ^| ^| ^|^/ ^_ \ ^|\^/^| ^|^/ ^_^` ^| '^_ \ ^/ ^_^` ^|^/ ^_^` ^|^/ ^_ \ '^_^_^|
@echo ^| ^_^| ^| ^| ^| ^_^_^/ ^| ^| ^| (^_^| ^| ^| ^| ^| (^_^| ^| (^_^| ^| ^_^_^/ ^|
@echo ^|^_^| ^|^_^|^_^|\^_^_^_^|^_^| ^|^_^|\^_^_,^_^|^_^| ^|^_^|\^_^_,^_^|\^_^_, ^|\^_^_^_^|^_^|
@echo ^|^_^_^_^/
@echo
set O=%~dp0out\FileManager
mkdir %O%
pushd %~dp0CPP\7zip\UI\FileManager
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zFM.exe" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zFM.exe" >> errorfile.txt
popd
@echo ^_^_^_^_^_ ^_^_^_^_ ^_ ^_ ^_^_^_
@echo ^|^_^_^_ ^|^_^_^_^/ ^_^_^_^| ^| ^| ^|^_ ^_^|
@echo ^/ ^/^_ ^/ ^| ^_^| ^| ^| ^|^| ^|
@echo ^/ ^/ ^/ ^/^| ^|^_^| ^| ^|^_^| ^|^| ^|
@echo ^/^_^/ ^/^_^_^_^|\^_^_^_^_^|\^_^_^_^/^|^_^_^_^|
set O=%~dp0out\GUI
mkdir %O%
pushd %~dp0CPP\7zip\UI\GUI
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zG.exe" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zG.exe" >> errorfile.txt
popd
@echo ^_^_^_^_^_ ^_^_^_^_^_ ^_
@echo ^|^_^_^_ ^|^_^_^| ^_^_^_^_^|^_ ^_^_^_ ^_^_ ^| ^| ^_^_^_ ^_ ^_^_ ^_^_^_ ^_ ^_^_
@echo ^/ ^/^_ ^/ ^_^| \ \^/ ^/ '^_ \^| ^|^/ ^_ \^| '^_^_^/ ^_ \ '^_^_^|
@echo ^/ ^/ ^/ ^/^| ^|^_^_^_ ^> ^<^| ^|^_) ^| ^| (^_) ^| ^| ^| ^_^_^/ ^|
@echo ^/^_^/ ^/^_^_^_^|^_^_^_^_^_^/^_^/\^_\ .^_^_^/^|^_^|\^_^_^_^/^|^_^| \^_^_^_^|^_^|
@echo ^|^_^|
set O=%~dp0out\Explorer
mkdir %O%
pushd %~dp0CPP\7zip\UI\Explorer
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7-zip.dll" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7-zip.dll" >> errorfile.txt
popd
@echo ^_^_^_^_ ^_^_ ^_^_ ^_^_^_
@echo ^/ ^_^_^_^| ^/ ^_^|^_ ^_\ \ ^/ (^_)^_ ^_^_
@echo \^_^_^_ \^| ^|^_\ \^/ ^/\ \ ^/\ ^/ ^/^| ^| '^_ \
@echo ^_^_^_) ^| ^_^|^> ^< \ V V ^/ ^| ^| ^| ^| ^|
@echo ^|^_^_^_^_^/^|^_^| ^/^_^/\^_\ \^_^/\^_^/ ^|^_^|^_^| ^|^_^|
set O=%~dp0out\SFXWin
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\SFXWin
nmake %OPTS%
IF %errorlevel% NE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|^_^|
@echo ^|^_^|
set O=%~dp0out\7zipUninstall
mkdir %O%
pushd %~dp0C\Util\7zipUninstall
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ Uninstall.exe" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ Uninstall.exe" >> errorfile.txt
popd
set LFLAGS=/SUBSYSTEM:CONSOLE,"5.02"
@echo ^_^_^_^_^_ ^_^_^_^_ ^_
@echo ^|^_^_^_ ^|^_^_^_^/ ^_^_^_^|^_^_^_ ^_ ^_^_ ^_^_^_ ^_^_^_ ^| ^| ^_^_^_
@echo ^/ ^/^_ ^/ ^| ^/ ^_ \^| '^_ \^/ ^_^_^|^/ ^_ \^| ^|^/ ^_ \
@echo ^/ ^/ ^/ ^/^| ^|^_^_^| (^_) ^| ^| ^| \^_^_ \ (^_) ^| ^| ^_^_^/
@echo ^/^_^/ ^/^_^_^_^|\^_^_^_^_\^_^_^_^/^|^_^| ^|^_^|^_^_^_^/\^_^_^_^/^|^_^|\^_^_^_^|
set O=%~dp0out\Console
mkdir %O%
pushd %~dp0CPP\7zip\UI\Console
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7z.exe" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7z.exe" >> errorfile.txt
popd
@echo ^_^_ ^_
@echo ^_^_^_ ^/ ^_^|^_ ^_^_^_^_^_ ^_^_^_ ^_ ^_^_ ^_^_^_ ^_^_^_ ^| ^| ^_^_^_
@echo ^/ ^_^_^| ^|^_\ \^/ ^/ ^_^_^/ ^_ \^| '^_ \^/ ^_^_^|^/ ^_ \^| ^|^/ ^_ \
@echo \^_^_ \ ^_^|^> ^< (^_^| (^_) ^| ^| ^| \^_^_ \ (^_) ^| ^| ^_^_^/
@echo ^|^_^_^_^/^_^| ^/^_^/\^_\^_^_^_\^_^_^_^/^|^_^| ^|^_^|^_^_^_^/\^_^_^_^/^|^_^|\^_^_^_^|
set O=%~dp0out\SFXCon
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\SFXCon
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zCon.sfx" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zCon.sfx" >> errorfile.txt
popd
set O=%~dp0out\Alone
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\Alone
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7za.exe" >> %ERRFILE%
popd
set O=%~dp0out\Format7z
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\Format7z
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7za.dll" >> %ERRFILE%
popd
@echo ^_^_ ^_ ^_^_^_^_^_
@echo ^/ ^_^| ^_^_^_ ^_ ^_^_ ^_ ^_^_ ^_^_^_ ^_^_ ^_^| ^|^|^_^_^_ ^|^_^_^_
@echo ^| ^|^_ ^/ ^_ \^| '^_^_^| '^_ ^` ^_ \ ^/ ^_^` ^| ^_^_^| ^/ ^/^_ ^/
@echo ^| ^_^| (^_) ^| ^| ^| ^| ^| ^| ^| ^| (^_^| ^| ^|^_ ^/ ^/ ^/ ^/
@echo ^|^_^| \^_^_^_^/^|^_^| ^|^_^| ^|^_^| ^|^_^|\^_^_,^_^|\^_^_^/^_^/ ^/^_^_^_^|
set O=%~dp0out\Format7zF
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\Format7zF
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7z.dll" >> %ERRFILE%
popd
set O=%~dp0out\Format7zExtract
mkdir %O%
pushd %~dp0CPP\7zip\Bundles\Format7zExtract
nmake %OPTS%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7zxa.dll" >> %ERRFILE%
IF %errorlevel% NEQ 0 echo "Error x64 @ 7z.dll" >> errorfile.txt
popd
cd /d %~dp0out
powershell -Command "Copy-Item .\*\*\*.exe,.\*\*\*.dll,.\*\*\*.lib,.\*\*\*.pdb -Destination .\out\"
explorer.exe %~dp0out