Mercurial > sdl-ios-xcode
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 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 <ItemGroup Label="ProjectConfigurations"> | |
4 <ProjectConfiguration Include="Debug|Win32"> | |
5 <Configuration>Debug</Configuration> | |
6 <Platform>Win32</Platform> | |
7 </ProjectConfiguration> | |
8 <ProjectConfiguration Include="Release|Win32"> | |
9 <Configuration>Release</Configuration> | |
10 <Platform>Win32</Platform> | |
11 </ProjectConfiguration> | |
12 </ItemGroup> | |
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 | 16 <ProjectGuid>{0FFD1A21-11DB-492C-A989-E4F195B0C441}</ProjectGuid> |
17 </PropertyGroup> | |
18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
19 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |
20 <ConfigurationType>Application</ConfigurationType> | |
21 <UseOfMfc>false</UseOfMfc> | |
22 </PropertyGroup> | |
23 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
24 <ConfigurationType>Application</ConfigurationType> | |
25 <UseOfMfc>false</UseOfMfc> | |
26 </PropertyGroup> | |
27 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
28 <ImportGroup Label="ExtensionSettings"> | |
29 </ImportGroup> | |
30 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | |
31 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
32 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" /> | |
33 </ImportGroup> | |
34 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | |
35 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
36 <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC70.props" /> | |
37 </ImportGroup> | |
38 <PropertyGroup Label="UserMacros" /> | |
39 <PropertyGroup> | |
40 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> | |
41 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</OutDir> | |
42 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</IntDir> | |
43 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> | |
44 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</OutDir> | |
45 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</IntDir> | |
46 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> | |
47 </PropertyGroup> | |
48 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
49 <Midl> | |
50 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
51 <MkTypLibCompatible>true</MkTypLibCompatible> | |
52 <SuppressStartupBanner>true</SuppressStartupBanner> | |
53 <TargetEnvironment>Win32</TargetEnvironment> | |
54 <TypeLibraryName>.\Debug/testwin.tlb</TypeLibraryName> | |
55 </Midl> | |
56 <ClCompile> | |
57 <Optimization>Disabled</Optimization> | |
58 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
59 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
60 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |
61 <PrecompiledHeader> | |
62 </PrecompiledHeader> | |
63 <PrecompiledHeaderOutputFile>.\Debug/testwin.pch</PrecompiledHeaderOutputFile> | |
64 <AssemblerListingLocation>.\Debug/</AssemblerListingLocation> | |
65 <ObjectFileName>.\Debug/</ObjectFileName> | |
66 <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName> | |
67 <WarningLevel>Level3</WarningLevel> | |
68 <SuppressStartupBanner>true</SuppressStartupBanner> | |
69 <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | |
70 <CompileAs>Default</CompileAs> | |
71 </ClCompile> | |
72 <ResourceCompile> | |
73 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
74 <Culture>0x0409</Culture> | |
75 </ResourceCompile> | |
76 <Link> | |
77 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions> | |
78 <OutputFile>.\Debug/testwin.exe</OutputFile> | |
79 <SuppressStartupBanner>true</SuppressStartupBanner> | |
80 <GenerateDebugInformation>true</GenerateDebugInformation> | |
81 <ProgramDatabaseFile>.\Debug/testwin.pdb</ProgramDatabaseFile> | |
82 <SubSystem>Windows</SubSystem> | |
83 </Link> | |
84 </ItemDefinitionGroup> | |
85 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
86 <Midl> | |
87 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
88 <MkTypLibCompatible>true</MkTypLibCompatible> | |
89 <SuppressStartupBanner>true</SuppressStartupBanner> | |
90 <TargetEnvironment>Win32</TargetEnvironment> | |
91 <TypeLibraryName>.\Release/testwin.tlb</TypeLibraryName> | |
92 </Midl> | |
93 <ClCompile> | |
94 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | |
95 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
96 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
97 <StringPooling>true</StringPooling> | |
98 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |
99 <FunctionLevelLinking>true</FunctionLevelLinking> | |
100 <PrecompiledHeader> | |
101 </PrecompiledHeader> | |
102 <PrecompiledHeaderOutputFile>.\Release/testwin.pch</PrecompiledHeaderOutputFile> | |
103 <AssemblerListingLocation>.\Release/</AssemblerListingLocation> | |
104 <ObjectFileName>.\Release/</ObjectFileName> | |
105 <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName> | |
106 <WarningLevel>Level3</WarningLevel> | |
107 <SuppressStartupBanner>true</SuppressStartupBanner> | |
108 <CompileAs>Default</CompileAs> | |
109 </ClCompile> | |
110 <ResourceCompile> | |
111 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
112 <Culture>0x0409</Culture> | |
113 </ResourceCompile> | |
114 <Link> | |
115 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions> | |
116 <OutputFile>.\Release/testwin.exe</OutputFile> | |
117 <SuppressStartupBanner>true</SuppressStartupBanner> | |
118 <ProgramDatabaseFile>.\Release/testwin.pdb</ProgramDatabaseFile> | |
119 <SubSystem>Windows</SubSystem> | |
120 </Link> | |
121 </ItemDefinitionGroup> | |
122 <ItemGroup> | |
123 <Library Include="..\..\Sdl\Debug\SDL.lib" /> | |
124 <Library Include="..\..\SDLmain\Debug\SDLmain.lib" /> | |
125 </ItemGroup> | |
126 <ItemGroup> | |
127 <ClCompile Include="..\..\..\Test\Testwin.c" /> | |
128 </ItemGroup> | |
129 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |
130 <ImportGroup Label="ExtensionTargets"> | |
131 </ImportGroup> | |
132 </Project> |