mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
As the implementation requires C++, the user will have to include SDL_main.h in a C++ source file (that needs to be compiled with /ZW). It's ok to keep the standard main() implementation in plain C and use an otherwise empty C++ source file for the SDL_main implementation part, if both source files #include <SDL3/SDL_main.h> Including SDL_main.h in a C source file will print a message at compilation (when building for WinRT or possibly other not yet implemented platforms that require C++ for main), to remind the user of also including it in a .cpp source file. This message/warning can be disabled with #define SDL_MAIN_NOIMPL before including SDL_main.h in the C file. When including it in a .cpp file, there will be a compiler error with helpful message if it's not compiled with /ZW For this I renamend _SDL_MAIN_NOIMPL to SDL_MAIN_NOIMPL, because now it's not for internal use only anymore, but also useful for users (that want their main() function in a different file than the SDL_main implementation) Add a project for the testdraw2.c test to the WinRT solution to at least get some minimal testing on WinRT. I won't add all tests because it's a lot of manual clicking per test, but this should be better than nothing :)
103 lines
3.5 KiB
XML
103 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup>
|
|
<Filter Include="Common">
|
|
<UniqueIdentifier>95943bbe-f378-4068-a3fd-dae1b8309b6e</UniqueIdentifier>
|
|
</Filter>
|
|
<Filter Include="Assets">
|
|
<UniqueIdentifier>dad3d573-ab33-428d-ae70-6098066c27e7</UniqueIdentifier>
|
|
<Extensions>bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png</Extensions>
|
|
</Filter>
|
|
<Filter Include="Content">
|
|
<UniqueIdentifier>e4caa635-e149-44c2-8915-48ffa6ac48f7</UniqueIdentifier>
|
|
</Filter>
|
|
<Image Include="Assets\LockScreenLogo.scale-200.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
<Image Include="Assets\SplashScreen.scale-200.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
<Image Include="Assets\Square150x150Logo.scale-200.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
<Image Include="Assets\Square44x44Logo.scale-200.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
<Image Include="Assets\Wide310x150Logo.scale-200.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Image Include="Assets\StoreLogo.png">
|
|
<Filter>Assets</Filter>
|
|
</Image>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<AppxManifest Include="Package.appxmanifest" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="..\..\test\main.cpp">
|
|
<Filter>Content</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\test\testdraw2.c">
|
|
<Filter>Content</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_assert.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_common.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_compare.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_crc32.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_font.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_fuzzer.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_harness.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_imageBlit.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_imageBlitBlend.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_imageFace.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_imagePrimitives.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_imagePrimitivesBlend.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_log.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_md5.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_memory.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="..\..\src\test\SDL_test_random.c">
|
|
<Filter>Common</Filter>
|
|
</ClCompile>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="..\..\src\main\winrt\SDL3-WinRTResource_BlankCursor.cur" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ResourceCompile Include="..\..\src\main\winrt\SDL3-WinRTResources.rc" />
|
|
</ItemGroup>
|
|
</Project> |