Skip to content

Commit

Permalink
add packaging project that builds 7z and zip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cbucher committed Apr 18, 2014
1 parent 70937c8 commit 1e8f36b
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Console2.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Console", "Console\Console.
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleWow", "ConsoleWow\ConsoleWow.vcxproj", "{8A25E8AF-CC4A-4145-B878-3D99271562D4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Packaging", "Packaging\Packaging.vcxproj", "{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}"
ProjectSection(ProjectDependencies) = postProject
{6EA5C354-A242-49F3-88D1-559EACA7FB8A} = {6EA5C354-A242-49F3-88D1-559EACA7FB8A}
{69234D74-7133-48FF-8DDB-9901FFC4D7FF} = {69234D74-7133-48FF-8DDB-9901FFC4D7FF}
{8A25E8AF-CC4A-4145-B878-3D99271562D4} = {8A25E8AF-CC4A-4145-B878-3D99271562D4}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug aero|Win32 = Debug aero|Win32
Expand Down Expand Up @@ -67,6 +74,18 @@ Global
{8A25E8AF-CC4A-4145-B878-3D99271562D4}.Release|Win32.ActiveCfg = Release|Win32
{8A25E8AF-CC4A-4145-B878-3D99271562D4}.Release|x64.ActiveCfg = Release|Win32
{8A25E8AF-CC4A-4145-B878-3D99271562D4}.Release|x64.Build.0 = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug aero|Win32.ActiveCfg = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug aero|Win32.Build.0 = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug aero|x64.ActiveCfg = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug|Win32.ActiveCfg = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug|Win32.Build.0 = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Debug|x64.ActiveCfg = Debug|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release aero|Win32.ActiveCfg = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release aero|Win32.Build.0 = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release aero|x64.ActiveCfg = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release|Win32.ActiveCfg = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release|Win32.Build.0 = Release|Win32
{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}.Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
64 changes: 64 additions & 0 deletions Packaging/Packaging.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<Text Include="makefile" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{10FD8ABB-2ACC-4EE3-8915-CD0DE3E7809D}</ProjectGuid>
<Keyword>MakeFileProj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Makefile</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Makefile</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<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)'=='Debug|Win32'">
<NMakeBuildCommandLine>nmake release</NMakeBuildCommandLine>
<NMakeCleanCommandLine>nmake clean</NMakeCleanCommandLine>
<NMakeReBuildCommandLine>nmake release /A</NMakeReBuildCommandLine>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
<OutDir>..\bin\$(Platform)\$(Configuration)\</OutDir>
<IntDir>..\obj\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<NMakeBuildCommandLine>nmake release</NMakeBuildCommandLine>
<NMakeCleanCommandLine>nmake clean</NMakeCleanCommandLine>
<NMakeReBuildCommandLine>nmake release /A</NMakeReBuildCommandLine>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
<NMakeOutput>
</NMakeOutput>
<OutDir>..\bin\$(Platform)\$(Configuration)\</OutDir>
<IntDir>..\obj\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
12 changes: 12 additions & 0 deletions Packaging/Packaging.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<Text Include="makefile" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions Packaging/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
!INCLUDE ../shared/version.h

release:
echo "$(MAKEDIR)\..\bin\ConsoleZ.$(VERSION).7z"
"C:\Program Files\7-Zip\7z.exe" a -t7z -m9=lzma2 -mx -mmt2 "$(MAKEDIR)\..\bin\ConsoleZ.$(VERSION).7z" -xr!*.xml "$(MAKEDIR)\..\bin\Win32" "$(MAKEDIR)\..\bin\x64"
echo "$(MAKEDIR)\..\bin\ConsoleZ.x86.$(VERSION).zip"
"C:\Program Files\7-Zip\7z.exe" a -tzip -mx9 -mmt2 "$(MAKEDIR)\..\bin\ConsoleZ.x86.$(VERSION).zip" -xr!*.pdb -xr!*.xml "$(MAKEDIR)\..\bin\Win32\Release aero"
echo "$(MAKEDIR)\..\bin\ConsoleZ.x64.$(VERSION).zip"
"C:\Program Files\7-Zip\7z.exe" a -tzip -mx9 -mmt2 "$(MAKEDIR)\..\bin\ConsoleZ.x64.$(VERSION).zip" -xr!*.pdb -xr!*.xml "$(MAKEDIR)\..\bin\x64\Release aero"


clean:
@echo clean

0 comments on commit 1e8f36b

Please sign in to comment.