diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-02-27 12:33:42 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-02-27 12:33:42 +0800 |
commit | ed5649a44b2dcfd175549aec203bfabc43092aae (patch) | |
tree | 9a8466010b3ff7684060abe24a3d8b4a81ef3067 /build | |
parent | c6eddaafed94bc47f197bfbea90ac9c50adf8f2d (diff) | |
download | gtk+-ed5649a44b2dcfd175549aec203bfabc43092aae.tar.gz |
Fix gtk3-demo Visual Studio projects
Since we are linking in the resource items by the source, we need to
disable WholeProgramOptimization so that the resource stuff does get linked
into the demo binaries, so that they can be loaded properly.
Also make sure that gtk3-demo-application is also built with the multibyte
character set, like the rest.
This should fix bug 694342, at least for Visual Studio builds.
Diffstat (limited to 'build')
-rw-r--r-- | build/win32/vs10/gtk3-demo-application.vcxproj | 16 | ||||
-rw-r--r-- | build/win32/vs10/gtk3-demo.vcxproj | 6 | ||||
-rw-r--r-- | build/win32/vs9/gtk3-demo-application.vcproj | 12 | ||||
-rw-r--r-- | build/win32/vs9/gtk3-demo.vcproj | 4 |
4 files changed, 20 insertions, 18 deletions
diff --git a/build/win32/vs10/gtk3-demo-application.vcxproj b/build/win32/vs10/gtk3-demo-application.vcxproj index 5550650e5f..c48d14b462 100644 --- a/build/win32/vs10/gtk3-demo-application.vcxproj +++ b/build/win32/vs10/gtk3-demo-application.vcxproj @@ -26,21 +26,21 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
- <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ <WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
- <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ <WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -92,7 +92,7 @@ <IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
+ <FunctionLevelLinking>false</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
@@ -136,7 +136,7 @@ <IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
+ <FunctionLevelLinking>false</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
diff --git a/build/win32/vs10/gtk3-demo.vcxproj b/build/win32/vs10/gtk3-demo.vcxproj index 86839f0eec..4e227204e9 100644 --- a/build/win32/vs10/gtk3-demo.vcxproj +++ b/build/win32/vs10/gtk3-demo.vcxproj @@ -27,7 +27,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <CharacterSet>MultiByte</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> + <WholeProgramOptimization>false</WholeProgramOptimization> <PlatformToolset>v100</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> @@ -38,7 +38,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <CharacterSet>MultiByte</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> + <WholeProgramOptimization>false</WholeProgramOptimization> <PlatformToolset>v100</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> @@ -135,6 +135,7 @@ <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Console</SubSystem> + <FunctionLevelLinking>false</FunctionLevelLinking> <OptimizeReferences>true</OptimizeReferences> <EnableCOMDATFolding>true</EnableCOMDATFolding> <RandomizedBaseAddress>false</RandomizedBaseAddress> @@ -158,6 +159,7 @@ <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <GenerateDebugInformation>true</GenerateDebugInformation> <SubSystem>Console</SubSystem> + <FunctionLevelLinking>false</FunctionLevelLinking> <OptimizeReferences>true</OptimizeReferences> <EnableCOMDATFolding>true</EnableCOMDATFolding> <RandomizedBaseAddress>false</RandomizedBaseAddress> diff --git a/build/win32/vs9/gtk3-demo-application.vcproj b/build/win32/vs9/gtk3-demo-application.vcproj index f6ba10a73b..51b90ead6e 100644 --- a/build/win32/vs9/gtk3-demo-application.vcproj +++ b/build/win32/vs9/gtk3-demo-application.vcproj @@ -23,7 +23,7 @@ Name="Debug|Win32"
InheritedPropertySheets=".\gtk+.vsprops"
ConfigurationType="1"
- CharacterSet="1"
+ CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
@@ -51,8 +51,8 @@ Name="Release|Win32"
InheritedPropertySheets=".\gtk+.vsprops"
ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
+ CharacterSet="2"
+ WholeProgramOptimization="0"
>
<Tool
Name="VCPreBuildEventTool"
@@ -82,7 +82,7 @@ Name="Debug|x64"
InheritedPropertySheets=".\gtk+.vsprops"
ConfigurationType="1"
- CharacterSet="1"
+ CharacterSet="2"
>
<Tool
Name="VCMIDLTool"
@@ -111,8 +111,8 @@ Name="Release|x64"
InheritedPropertySheets=".\gtk+.vsprops"
ConfigurationType="1"
- CharacterSet="1"
- WholeProgramOptimization="1"
+ CharacterSet="2"
+ WholeProgramOptimization="0"
>
<Tool
Name="VCMIDLTool"
diff --git a/build/win32/vs9/gtk3-demo.vcproj b/build/win32/vs9/gtk3-demo.vcproj index 1b01ea3103..c2509da8d1 100644 --- a/build/win32/vs9/gtk3-demo.vcproj +++ b/build/win32/vs9/gtk3-demo.vcproj @@ -90,7 +90,7 @@ ConfigurationType="1" InheritedPropertySheets=".\gtk+.vsprops" CharacterSet="2" - WholeProgramOptimization="1" + WholeProgramOptimization="0" > <Tool Name="VCPreBuildEventTool" @@ -123,7 +123,7 @@ ConfigurationType="1" InheritedPropertySheets=".\gtk+.vsprops" CharacterSet="2" - WholeProgramOptimization="1" + WholeProgramOptimization="0" > <Tool Name="VCPreBuildEventTool" |