annotate VisualC/tests/testwin/testwin_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 5bb673951db2
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: 4823
diff changeset
14 <ProjectName>testwin</ProjectName>
f205711f73d5 Fix and rename VS2010 project files, add tests to VS2010 solution, fix VS compiler warning
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 4823
diff changeset
15 <RootNamespace>testwin</RootNamespace>
4823
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
16 <ProjectGuid>{0FFD1A21-11DB-492C-A989-E4F195B0C441}</ProjectGuid>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
17 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
19 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
20 <ConfigurationType>Application</ConfigurationType>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
21 <UseOfMfc>false</UseOfMfc>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
22 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
23 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
24 <ConfigurationType>Application</ConfigurationType>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
25 <UseOfMfc>false</UseOfMfc>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
26 </PropertyGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
27 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
28 <ImportGroup Label="ExtensionSettings">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
29 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
30 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
31 <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
32 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
33 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
34 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
35 <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
36 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" />
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'">.\Debug\</OutDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
42 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</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'">.\Release\</OutDir>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
45 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</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 <Midl>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
50 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
51 <MkTypLibCompatible>true</MkTypLibCompatible>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
52 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
53 <TargetEnvironment>Win32</TargetEnvironment>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
54 <TypeLibraryName>.\Debug/testwin.tlb</TypeLibraryName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
55 </Midl>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
56 <ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
57 <Optimization>Disabled</Optimization>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
58 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
59 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
60 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
61 <PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
62 </PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
63 <PrecompiledHeaderOutputFile>.\Debug/testwin.pch</PrecompiledHeaderOutputFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
64 <AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
65 <ObjectFileName>.\Debug/</ObjectFileName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
66 <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
67 <WarningLevel>Level3</WarningLevel>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
68 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
69 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
70 <CompileAs>Default</CompileAs>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
71 </ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
72 <ResourceCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
73 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
74 <Culture>0x0409</Culture>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
75 </ResourceCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
76 <Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
77 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
78 <OutputFile>.\Debug/testwin.exe</OutputFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
79 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
80 <GenerateDebugInformation>true</GenerateDebugInformation>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
81 <ProgramDatabaseFile>.\Debug/testwin.pdb</ProgramDatabaseFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
82 <SubSystem>Windows</SubSystem>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
83 </Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
84 </ItemDefinitionGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
85 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
86 <Midl>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
87 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
88 <MkTypLibCompatible>true</MkTypLibCompatible>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
89 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
90 <TargetEnvironment>Win32</TargetEnvironment>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
91 <TypeLibraryName>.\Release/testwin.tlb</TypeLibraryName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
92 </Midl>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
93 <ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
94 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
95 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
96 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
97 <StringPooling>true</StringPooling>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
98 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
99 <FunctionLevelLinking>true</FunctionLevelLinking>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
100 <PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
101 </PrecompiledHeader>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
102 <PrecompiledHeaderOutputFile>.\Release/testwin.pch</PrecompiledHeaderOutputFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
103 <AssemblerListingLocation>.\Release/</AssemblerListingLocation>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
104 <ObjectFileName>.\Release/</ObjectFileName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
105 <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
106 <WarningLevel>Level3</WarningLevel>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
107 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
108 <CompileAs>Default</CompileAs>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
109 </ClCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
110 <ResourceCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
111 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
112 <Culture>0x0409</Culture>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
113 </ResourceCompile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
114 <Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
115 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
116 <OutputFile>.\Release/testwin.exe</OutputFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
117 <SuppressStartupBanner>true</SuppressStartupBanner>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
118 <ProgramDatabaseFile>.\Release/testwin.pdb</ProgramDatabaseFile>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
119 <SubSystem>Windows</SubSystem>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
120 </Link>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
121 </ItemDefinitionGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
122 <ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
123 <Library Include="..\..\Sdl\Debug\SDL.lib" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
124 <Library Include="..\..\SDLmain\Debug\SDLmain.lib" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
125 </ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
126 <ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
127 <ClCompile Include="..\..\..\Test\Testwin.c" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
128 </ItemGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
129 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
130 <ImportGroup Label="ExtensionTargets">
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
131 </ImportGroup>
6547943feda9 Added VS2010 build files.
egottlieb
parents:
diff changeset
132 </Project>