Mercurial > sdl-ios-xcode
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 | 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:
4886
diff
changeset
|
14 <ProjectName>automated</ProjectName> |
4823 | 15 <ProjectGuid>{DDD710DB-EC7B-4CCB-BD75-535D401A2FE0}</ProjectGuid> |
16 <RootNamespace>automated</RootNamespace> | |
17 <Keyword>Win32Proj</Keyword> | |
18 </PropertyGroup> | |
19 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
20 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |
21 <ConfigurationType>Application</ConfigurationType> | |
22 <CharacterSet>Unicode</CharacterSet> | |
23 <WholeProgramOptimization>true</WholeProgramOptimization> | |
24 </PropertyGroup> | |
25 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
26 <ConfigurationType>Application</ConfigurationType> | |
27 <CharacterSet>Unicode</CharacterSet> | |
28 </PropertyGroup> | |
29 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
30 <ImportGroup Label="ExtensionSettings"> | |
31 </ImportGroup> | |
32 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> | |
33 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
34 </ImportGroup> | |
35 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> | |
36 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
37 </ImportGroup> | |
38 <PropertyGroup Label="UserMacros" /> | |
39 <PropertyGroup> | |
40 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> | |
41 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> | |
42 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> | |
43 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> | |
44 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir> | |
45 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> | |
46 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> | |
47 </PropertyGroup> | |
48 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
49 <ClCompile> | |
50 <Optimization>Disabled</Optimization> | |
51 <AdditionalIncludeDirectories>$(SolutionDir)\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
52 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
53 <MinimalRebuild>true</MinimalRebuild> | |
54 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | |
55 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |
56 <PrecompiledHeader> | |
57 </PrecompiledHeader> | |
58 <WarningLevel>Level3</WarningLevel> | |
59 <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | |
60 </ClCompile> | |
61 <Link> | |
62 <GenerateDebugInformation>true</GenerateDebugInformation> | |
63 <SubSystem>Windows</SubSystem> | |
64 <TargetMachine>MachineX86</TargetMachine> | |
65 </Link> | |
66 </ItemDefinitionGroup> | |
67 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
68 <ClCompile> | |
69 <Optimization>MaxSpeed</Optimization> | |
70 <IntrinsicFunctions>true</IntrinsicFunctions> | |
71 <AdditionalIncludeDirectories>$(SolutionDir)\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
72 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
73 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |
74 <FunctionLevelLinking>true</FunctionLevelLinking> | |
75 <PrecompiledHeader> | |
76 </PrecompiledHeader> | |
77 <WarningLevel>Level3</WarningLevel> | |
78 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | |
79 </ClCompile> | |
80 <Link> | |
81 <GenerateDebugInformation>true</GenerateDebugInformation> | |
82 <SubSystem>Windows</SubSystem> | |
83 <OptimizeReferences>true</OptimizeReferences> | |
84 <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
85 <TargetMachine>MachineX86</TargetMachine> | |
86 </Link> | |
87 </ItemDefinitionGroup> | |
88 <ItemGroup> | |
89 <ClCompile Include="..\..\..\test\automated\audio\audio.c" /> | |
90 <ClCompile Include="..\..\..\test\automated\common\common.c" /> | |
91 <ClCompile Include="..\..\..\test\automated\platform\platform.c" /> | |
92 <ClCompile Include="..\..\..\test\automated\rect\rect.c" /> | |
93 <ClCompile Include="..\..\..\test\automated\render\render.c" /> | |
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 | 96 <ClCompile Include="..\..\..\test\automated\SDL_at.c" /> |
97 <ClCompile Include="..\..\..\test\automated\surface\surface.c" /> | |
98 <ClCompile Include="..\..\..\test\automated\testsdl.c" /> | |
99 </ItemGroup> | |
100 <ItemGroup> | |
101 <ClInclude Include="..\..\..\test\automated\audio\audio.h" /> | |
102 <ClInclude Include="..\..\..\test\automated\common\common.h" /> | |
103 <ClInclude Include="..\..\..\test\automated\common\images.h" /> | |
104 <ClInclude Include="..\..\..\test\automated\platform\platform.h" /> | |
105 <ClInclude Include="..\..\..\test\automated\render\render.h" /> | |
106 <ClInclude Include="..\..\..\test\automated\rwops\rwops.h" /> | |
107 <ClInclude Include="..\..\..\test\automated\SDL_at.h" /> | |
108 <ClInclude Include="..\..\..\test\automated\surface\surface.h" /> | |
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 | 123 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
124 <ImportGroup Label="ExtensionTargets"> | |
125 </ImportGroup> | |
126 </Project> |