annotate VisualC/tests/automated/automated_VS2010.vcxproj @ 5029:5d7d48157be7

Greg Jandl to SDL I did some digging, and I think I've found a better solution. By including some additional .m4 macros in the acinclude directory (http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html, http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html) then using the patch below (same as previous patch + one line change to configure.in), SDL will build correctly out of the box. The arch can then be overridden by --with-gcc-arch=<arch> (most will probably want to build with i686 there for general distribution) or --without-gcc-arch, to disable setting the arch all together. On my Atom netbook, I get -march=PentiumPro by default, which works great, as does --with-gcc-arch=i686.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 18 Jan 2011 22:40:45 -0800
parents f205711f73d5
children fc26fb7e20af
rev   line source
4823
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
3 <ItemGroup Label="ProjectConfigurations">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
4 <ProjectConfiguration Include="Debug|Win32">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
5 <Configuration>Debug</Configuration>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
6 <Platform>Win32</Platform>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
7 </ProjectConfiguration>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
8 <ProjectConfiguration Include="Release|Win32">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
9 <Configuration>Release</Configuration>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
10 <Platform>Win32</Platform>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
11 </ProjectConfiguration>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
12 </ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
13 <PropertyGroup Label="Globals">
4910
f205711f73d5 Fix and rename VS2010 project files, add tests to VS2010 solution, fix VS compiler warning
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 4886
diff changeset
14 <ProjectName>automated</ProjectName>
4823
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
15 <ProjectGuid>{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}</ProjectGuid>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
16 <RootNamespace>automated</RootNamespace>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
17 <Keyword>Win32Proj</Keyword>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
18 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
19 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
20 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
21 <ConfigurationType>Application</ConfigurationType>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
22 <CharacterSet>Unicode</CharacterSet>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
23 <WholeProgramOptimization>true</WholeProgramOptimization>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
24 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
25 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
26 <ConfigurationType>Application</ConfigurationType>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
27 <CharacterSet>Unicode</CharacterSet>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
28 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
29 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
30 <ImportGroup Label="ExtensionSettings">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
31 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
32 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
33 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
34 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
35 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
36 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
37 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
38 <PropertyGroup Label="UserMacros" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
39 <PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
40 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
41 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
42 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
43 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
44 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
45 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
46 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
47 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
48 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
49 <ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
50 <Optimization>Disabled</Optimization>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
51 <AdditionalIncludeDirectories>$(SolutionDir)\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
52 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
53 <MinimalRebuild>true</MinimalRebuild>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
54 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
55 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
56 <PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
57 </PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
58 <WarningLevel>Level3</WarningLevel>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
59 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
60 </ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
61 <Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
62 <GenerateDebugInformation>true</GenerateDebugInformation>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
63 <SubSystem>Windows</SubSystem>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
64 <TargetMachine>MachineX86</TargetMachine>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
65 </Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
66 </ItemDefinitionGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
67 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
68 <ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
69 <Optimization>MaxSpeed</Optimization>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
70 <IntrinsicFunctions>true</IntrinsicFunctions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
71 <AdditionalIncludeDirectories>$(SolutionDir)\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
72 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
73 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
74 <FunctionLevelLinking>true</FunctionLevelLinking>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
75 <PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
76 </PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
77 <WarningLevel>Level3</WarningLevel>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
78 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
79 </ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
80 <Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
81 <GenerateDebugInformation>true</GenerateDebugInformation>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
82 <SubSystem>Windows</SubSystem>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
83 <OptimizeReferences>true</OptimizeReferences>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
84 <EnableCOMDATFolding>true</EnableCOMDATFolding>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
85 <TargetMachine>MachineX86</TargetMachine>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
86 </Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
87 </ItemDefinitionGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
88 <ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
89 <ClCompile Include="..\..\..\test\automated\audio\audio.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
90 <ClCompile Include="..\..\..\test\automated\common\common.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
91 <ClCompile Include="..\..\..\test\automated\platform\platform.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
92 <ClCompile Include="..\..\..\test\automated\rect\rect.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
93 <ClCompile Include="..\..\..\test\automated\render\render.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
94 <ClCompile Include="..\..\..\test\automated\rwops\rwops.c" />
4886
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
95 <ClCompile Include="..\..\..\test\automated\rwops\TestSupportRWops_Generic.c" />
4823
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
96 <ClCompile Include="..\..\..\test\automated\SDL_at.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
97 <ClCompile Include="..\..\..\test\automated\surface\surface.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
98 <ClCompile Include="..\..\..\test\automated\testsdl.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
99 </ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
100 <ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
101 <ClInclude Include="..\..\..\test\automated\audio\audio.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
102 <ClInclude Include="..\..\..\test\automated\common\common.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
103 <ClInclude Include="..\..\..\test\automated\common\images.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
104 <ClInclude Include="..\..\..\test\automated\platform\platform.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
105 <ClInclude Include="..\..\..\test\automated\render\render.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
106 <ClInclude Include="..\..\..\test\automated\rwops\rwops.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
107 <ClInclude Include="..\..\..\test\automated\SDL_at.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
108 <ClInclude Include="..\..\..\test\automated\surface\surface.h" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
109 </ItemGroup>
4886
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
110 <ItemGroup>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
111 <ProjectReference Include="..\..\SDLmain\SDLmain_VS2010.vcxproj">
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
112 <Project>{da956fd3-e142-46f2-9dd5-c78bebb56b7a}</Project>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
113 <Private>false</Private>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
114 <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
115 <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
116 <LinkLibraryDependencies>true</LinkLibraryDependencies>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
117 <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
118 </ProjectReference>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
119 <ProjectReference Include="..\..\SDL\SDL_VS2010.vcxproj">
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
120 <Project>{81ce8daf-ebb2-4761-8e45-b71abcca8c68}</Project>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
121 </ProjectReference>
df5525eb7c41 Updated build for Visual Studio 2010
Sam Lantinga <slouken@libsdl.org>
parents: 4823
diff changeset
122 </ItemGroup>
4823
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
123 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
124 <ImportGroup Label="ExtensionTargets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
125 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
126 </Project>