Skip to content

Commit

Permalink
Add Static-Linked Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
usagirei committed Oct 24, 2017
1 parent da42a33 commit 7e491af
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
[Rr]elease_[Ss]tatic/
x64/
x86/
bld/
Expand Down
23 changes: 23 additions & 0 deletions Pac_Utils.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "patch", "src\patch\patch.vc
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{736E8BC5-B099-4EA9-83FF-54AEAB4D568F}"
ProjectSection(SolutionItems) = preProject
.gitattributes = .gitattributes
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
EndProjectSection
Expand All @@ -23,6 +25,8 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release_Static|x64 = Release_Static|x64
Release_Static|x86 = Release_Static|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
Expand All @@ -31,6 +35,10 @@ Global
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Debug|x64.Build.0 = Debug|x64
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Debug|x86.ActiveCfg = Debug|Win32
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Debug|x86.Build.0 = Debug|Win32
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release_Static|x64.ActiveCfg = Release_Static|x64
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release_Static|x64.Build.0 = Release_Static|x64
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release_Static|x86.ActiveCfg = Release_Static|Win32
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release_Static|x86.Build.0 = Release_Static|Win32
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release|x64.ActiveCfg = Release|x64
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release|x64.Build.0 = Release|x64
{B71DFF40-8991-4D1F-9808-566C6A7EFD6A}.Release|x86.ActiveCfg = Release|Win32
Expand All @@ -39,12 +47,19 @@ Global
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Debug|x64.Build.0 = Debug|x64
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Debug|x86.ActiveCfg = Debug|Win32
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Debug|x86.Build.0 = Debug|Win32
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Release_Static|x64.ActiveCfg = Release_Static|x64
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Release_Static|x64.Build.0 = Release_Static|x64
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Release_Static|x86.ActiveCfg = Release_Static|Win32
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Release|x64.ActiveCfg = Release|x64
{3F8E6E06-8594-4984-90AD-86D22D35C54F}.Release|x86.ActiveCfg = Release|Win32
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Debug|x64.ActiveCfg = Debug|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Debug|x64.Build.0 = Debug|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Debug|x86.ActiveCfg = Debug|Win32
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Debug|x86.Build.0 = Debug|Win32
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release_Static|x64.ActiveCfg = Release_Static|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release_Static|x64.Build.0 = Release_Static|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release_Static|x86.ActiveCfg = Release_Static|Win32
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release_Static|x86.Build.0 = Release_Static|Win32
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release|x64.ActiveCfg = Release|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release|x64.Build.0 = Release|x64
{A668AA45-945A-4CF7-8CB9-BB8BB2BA946A}.Release|x86.ActiveCfg = Release|Win32
Expand All @@ -53,6 +68,10 @@ Global
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Debug|x64.Build.0 = Debug|x64
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Debug|x86.ActiveCfg = Debug|Win32
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Debug|x86.Build.0 = Debug|Win32
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release_Static|x64.ActiveCfg = Release_Static|x64
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release_Static|x64.Build.0 = Release_Static|x64
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release_Static|x86.ActiveCfg = Release_Static|Win32
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release_Static|x86.Build.0 = Release_Static|Win32
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release|x64.ActiveCfg = Release|x64
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release|x64.Build.0 = Release|x64
{CFBCB778-0520-4782-9B82-3AE706DDB3C8}.Release|x86.ActiveCfg = Release|Win32
Expand All @@ -61,6 +80,10 @@ Global
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Debug|x64.Build.0 = Debug|x64
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Debug|x86.ActiveCfg = Debug|Win32
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Debug|x86.Build.0 = Debug|Win32
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release_Static|x64.ActiveCfg = Release_Static|x64
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release_Static|x64.Build.0 = Release_Static|x64
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release_Static|x86.ActiveCfg = Release_Static|Win32
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release_Static|x86.Build.0 = Release_Static|Win32
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release|x64.ActiveCfg = Release|x64
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release|x64.Build.0 = Release|x64
{8D395595-CAB6-4E98-A7DA-20B2A2A46996}.Release|x86.ActiveCfg = Release|Win32
Expand Down
59 changes: 59 additions & 0 deletions src/libPac/libPac.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release_Static|Win32">
<Configuration>Release_Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release_Static|x64">
<Configuration>Release_Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
Expand Down Expand Up @@ -38,6 +46,13 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
Expand All @@ -51,6 +66,13 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -62,12 +84,18 @@
<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>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'" Label="PropertySheets">
<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)'=='Debug|x64'">
<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|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'" Label="PropertySheets">
<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'">
<TargetName>libpac</TargetName>
Expand All @@ -77,6 +105,10 @@
<TargetName>libpac</TargetName>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">
<TargetName>libpac</TargetName>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand All @@ -92,6 +124,20 @@
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
Expand All @@ -118,6 +164,19 @@
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="bitstream.h" />
<ClInclude Include="compressor.h" />
Expand Down
75 changes: 75 additions & 0 deletions src/libPac_Test/libPac_Test.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release_Static|Win32">
<Configuration>Release_Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release_Static|x64">
<Configuration>Release_Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
Expand Down Expand Up @@ -43,6 +51,14 @@
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
Expand All @@ -58,6 +74,14 @@
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -69,12 +93,18 @@
<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>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'" Label="PropertySheets">
<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)'=='Debug|x64'">
<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|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'" Label="PropertySheets">
<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'">
<LinkIncremental>true</LinkIncremental>
Expand All @@ -87,9 +117,16 @@
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
Expand Down Expand Up @@ -136,6 +173,24 @@
<AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;$(SolutionDir)src\libPac;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<UseFullPaths>true</UseFullPaths>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand All @@ -154,6 +209,24 @@
<AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<UseFullPaths>true</UseFullPaths>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
Expand All @@ -165,7 +238,9 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_Static|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_Static|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="bitreader_tests.cpp" />
</ItemGroup>
Expand Down
Loading

0 comments on commit 7e491af

Please sign in to comment.