diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-15 23:46:06 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-15 23:46:06 +0400 |
commit | 2b8835c3c30317f5b45ee64d7230056b3e65aa03 (patch) | |
tree | 8d3bda3972889ebab4af2b86bcfe0709f2149251 /src/thirdparty/lcms2 | |
parent | c0753aa72a841068dc7c220e18cf0c31f0db2af5 (diff) |
* Use precompiled headers
* add support for precompiled headers for BaseClasses, lcms2, libpng
* create/use precompiled headers for Kasumi and MPCVideoDec Release configs
Overall decrease in compilation time approx. 45% on my machine
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3667 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/thirdparty/lcms2')
-rw-r--r-- | src/thirdparty/lcms2/lcms2.vcxproj | 14 | ||||
-rw-r--r-- | src/thirdparty/lcms2/lcms2.vcxproj.filters | 3 | ||||
-rw-r--r-- | src/thirdparty/lcms2/src/precomp.c | 3 |
3 files changed, 16 insertions, 4 deletions
diff --git a/src/thirdparty/lcms2/lcms2.vcxproj b/src/thirdparty/lcms2/lcms2.vcxproj index 98ff3758a..528518301 100644 --- a/src/thirdparty/lcms2/lcms2.vcxproj +++ b/src/thirdparty/lcms2/lcms2.vcxproj @@ -65,8 +65,8 @@ <ClCompile>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>include</AdditionalIncludeDirectories>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
+ <PrecompiledHeaderFile>lcms2_internal.h</PrecompiledHeaderFile>
</ClCompile>
<Lib>
<TargetMachine>MachineX86</TargetMachine>
@@ -77,8 +77,8 @@ <PreprocessorDefinitions>_WIN64;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>include</AdditionalIncludeDirectories>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
+ <PrecompiledHeaderFile>lcms2_internal.h</PrecompiledHeaderFile>
</ClCompile>
<Lib>
<TargetMachine>MachineX64</TargetMachine>
@@ -88,8 +88,8 @@ <ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>include</AdditionalIncludeDirectories>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
+ <PrecompiledHeaderFile>lcms2_internal.h</PrecompiledHeaderFile>
</ClCompile>
<Lib>
<TargetMachine>MachineX86</TargetMachine>
@@ -99,8 +99,8 @@ <ClCompile>
<PreprocessorDefinitions>_WIN64;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>include</AdditionalIncludeDirectories>
- <PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
+ <PrecompiledHeaderFile>lcms2_internal.h</PrecompiledHeaderFile>
</ClCompile>
<Lib>
<TargetMachine>MachineX64</TargetMachine>
@@ -136,6 +136,12 @@ <ClCompile Include="src\cmsvirt.c" />
<ClCompile Include="src\cmswtpnt.c" />
<ClCompile Include="src\cmsxform.c" />
+ <ClCompile Include="src\precomp.c">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/thirdparty/lcms2/lcms2.vcxproj.filters b/src/thirdparty/lcms2/lcms2.vcxproj.filters index a7a69fcf5..b2b6f1c1c 100644 --- a/src/thirdparty/lcms2/lcms2.vcxproj.filters +++ b/src/thirdparty/lcms2/lcms2.vcxproj.filters @@ -94,5 +94,8 @@ <ClCompile Include="src\cmsxform.c">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\precomp.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file diff --git a/src/thirdparty/lcms2/src/precomp.c b/src/thirdparty/lcms2/src/precomp.c new file mode 100644 index 000000000..c9fb16975 --- /dev/null +++ b/src/thirdparty/lcms2/src/precomp.c @@ -0,0 +1,3 @@ +// precompiled headers support
+
+#include "lcms2_internal.h"
|