Mercurial > sdl-ios-xcode
annotate VisualC/tests/testsprite2/testsprite2_VS2010.vcxproj @ 5130:f2c2f0ecba5f
Fixed bug #1111
kwm@rainbow-runner.nl 2011-01-30 06:28:27 PST
Created attachment 562 [details]
Build fix with clang.
When building sdl 1.2.14 with the Clang compiler http://clang.llvm.org .
The build fails in src/video/mmx.h with the following error:
--------------------------------------------------
./src/video/SDL_RLEaccel.c:831:5: error: invalid operand for instruction
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:831:17: note: instantiated from:
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:831:5: note: instantiated from:
CHOOSE_BLIT(RLECLIPBLIT, alpha, fmt);
^
./src/video/SDL_RLEaccel.c:647:23: note: instantiated from:
blitter(2, Uint8, ALPHA_BLIT16_565MMX); \
^
./src/video/SDL_RLEaccel.c:282:4: note: instantiated from:
movq_r2m(mm3, *dstp); \
^
In file included from ./src/video/SDL_RLEaccel.c:99:
./src/video/mmx.h:379:28: note: instantiated from:
#define movq_r2m(reg, var) mmx_r2m(movq, reg, var)
^
<scratch space>:192:1: note: instantiated from:
"movq"
^
<inline asm>:1:2: note: instantiated into assembly here
movq %mm3, %dx
^
--------------------------------------------------
According to the clang developers this is a invalid inline assembly.
Using the attached patch from the last commit in the below bug report fixes the
compile.
More details from: http://llvm.org/bugs/show_bug.cgi?id=6730
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jan 2011 13:42:05 -0800 |
parents | fc26fb7e20af |
children |
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>testsprite2</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>testsprite2</RootNamespace> |
4823 | 16 <ProjectGuid>{40FB7794-D3C3-4CFE-BCF4-A80C96635682}</ProjectGuid> |
17 </PropertyGroup> | |
18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
19 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
20 <ConfigurationType>Application</ConfigurationType> | |
21 <UseOfMfc>false</UseOfMfc> | |
22 </PropertyGroup> | |
23 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|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)'=='Debug|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)'=='Release|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)'=='Release|Win32'">.\Release\</OutDir> | |
42 <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</IntDir> | |
43 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> | |
44 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</OutDir> | |
45 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</IntDir> | |
46 <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> | |
47 </PropertyGroup> | |
48 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
49 <Midl> | |
50 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
51 <MkTypLibCompatible>true</MkTypLibCompatible> | |
52 <SuppressStartupBanner>true</SuppressStartupBanner> | |
53 <TargetEnvironment>Win32</TargetEnvironment> | |
54 <TypeLibraryName>.\Release/testsprite2.tlb</TypeLibraryName> | |
55 </Midl> | |
56 <ClCompile> | |
57 <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | |
58 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
59 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
60 <StringPooling>true</StringPooling> | |
61 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | |
62 <FunctionLevelLinking>true</FunctionLevelLinking> | |
63 <PrecompiledHeader> | |
64 </PrecompiledHeader> | |
65 <PrecompiledHeaderOutputFile>.\Release/testsprite2.pch</PrecompiledHeaderOutputFile> | |
66 <AssemblerListingLocation>.\Release/</AssemblerListingLocation> | |
67 <ObjectFileName>.\Release/</ObjectFileName> | |
68 <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName> | |
69 <WarningLevel>Level3</WarningLevel> | |
70 <SuppressStartupBanner>true</SuppressStartupBanner> | |
71 <CompileAs>Default</CompileAs> | |
72 </ClCompile> | |
73 <ResourceCompile> | |
74 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
75 <Culture>0x0409</Culture> | |
76 </ResourceCompile> | |
77 <Link> | |
78 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions> | |
79 <OutputFile>.\Release/testsprite2.exe</OutputFile> | |
80 <SuppressStartupBanner>true</SuppressStartupBanner> | |
81 <ProgramDatabaseFile>.\Release/testsprite2.pdb</ProgramDatabaseFile> | |
82 <SubSystem>Windows</SubSystem> | |
83 </Link> | |
5035
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
84 <PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
85 <Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
86 copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp</Command> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
87 </PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
88 <PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
89 <Message>Copy SDL and data files</Message> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
90 </PostBuildEvent> |
4823 | 91 </ItemDefinitionGroup> |
92 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
93 <Midl> | |
94 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
95 <MkTypLibCompatible>true</MkTypLibCompatible> | |
96 <SuppressStartupBanner>true</SuppressStartupBanner> | |
97 <TargetEnvironment>Win32</TargetEnvironment> | |
98 <TypeLibraryName>.\Debug/testsprite2.tlb</TypeLibraryName> | |
99 </Midl> | |
100 <ClCompile> | |
101 <Optimization>Disabled</Optimization> | |
102 <AdditionalIncludeDirectories>..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
103 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
5039
fc26fb7e20af
Use the debug C runtime for the debug configuration
Sam Lantinga <slouken@libsdl.org>
parents:
5035
diff
changeset
|
104 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |
4823 | 105 <PrecompiledHeader> |
106 </PrecompiledHeader> | |
107 <PrecompiledHeaderOutputFile>.\Debug/testsprite2.pch</PrecompiledHeaderOutputFile> | |
108 <AssemblerListingLocation>.\Debug/</AssemblerListingLocation> | |
109 <ObjectFileName>.\Debug/</ObjectFileName> | |
110 <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName> | |
111 <WarningLevel>Level3</WarningLevel> | |
112 <SuppressStartupBanner>true</SuppressStartupBanner> | |
113 <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | |
114 <CompileAs>Default</CompileAs> | |
115 </ClCompile> | |
116 <ResourceCompile> | |
117 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
118 <Culture>0x0409</Culture> | |
119 </ResourceCompile> | |
120 <Link> | |
121 <AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions> | |
122 <OutputFile>.\Debug/testsprite2.exe</OutputFile> | |
123 <SuppressStartupBanner>true</SuppressStartupBanner> | |
124 <GenerateDebugInformation>true</GenerateDebugInformation> | |
125 <ProgramDatabaseFile>.\Debug/testsprite2.pdb</ProgramDatabaseFile> | |
126 <SubSystem>Windows</SubSystem> | |
127 </Link> | |
5035
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
128 <PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
129 <Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
130 copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp</Command> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
131 </PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
132 <PostBuildEvent> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
133 <Message>Copy SDL and data files</Message> |
5bb673951db2
Added post build step to copy SDL and data files into the test projects
Sam Lantinga <slouken@libsdl.org>
parents:
4910
diff
changeset
|
134 </PostBuildEvent> |
4823 | 135 </ItemDefinitionGroup> |
136 <ItemGroup> | |
137 <ClCompile Include="..\..\..\test\common.c" /> | |
138 <ClCompile Include="..\..\..\test\testsprite2.c" /> | |
139 </ItemGroup> | |
140 <ItemGroup> | |
141 <Library Include="..\..\Sdl\Debug\SDL.lib" /> | |
142 <Library Include="..\..\SDLmain\Debug\SDLmain.lib" /> | |
143 </ItemGroup> | |
144 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |
145 <ImportGroup Label="ExtensionTargets"> | |
146 </ImportGroup> | |
147 </Project> |