Commit graph

7 commits

Author SHA1 Message Date
David Ludwig
0042b6dee8 Cleaned up and rearranged WinRT project file structure.
All WinRT projects have been merged into a single directory, "VisualC-WinRT",
with platform-specific variants in subdirectories off of it.  This structure
has been applied to a few major SDL satellite libraries as well (SDL_image,
SDL_mixer, and SDL_ttf).

Currently, only Windows 8.0/RT and Windows Phone 8.0 targets are supported.
Windows 8.1/RT/Phone targets are planned.

Projects that use SDL_image/WinRT, and link to it via Visual Studio's
project-to-project reference system, will need to be updated, to reflect the
changes in the project structure.  This can be done by:
1. removing the MSVC project(s) for SDL/WinRT
2. re-added the MSVC project(s) for SDL/WinRT
3. right-clicking on the app, or projects that use those libraries, choosing
References, removing the references to any of these projects (they'll likely
be highlighted with an exclamation mark), then re-adding them

To note, the satellite libraries that reference SDL/WinRT have been updated
already.  The changes for those libraries will be pushed to hg.libsdl.org
shortly.

TODO:
- add support for Windows 8.1 and Windows Phone 8.1 targets, using
Microsoft's new "Universal" app support, if possible.  These will be added to
a new subdirectory, or subdirectories (if more than one sets of projects are
needed, hopefully not), of "VisualC-WinRT".
- investigate NuGet support, which could allow Visual C++ to download
new copies of SDL/WinRT, its satellite libraries, and their dependencies,
from remote servers.
2014-04-19 12:48:45 -04:00
David Ludwig
d760825693 WinRT: renamed SDL_winrt_main.cpp to indicate that it should only be used in non-XAML apps
This can break builds of existing SDL/WinRT apps.  To fix, remove the reference to SDL_winrt_main.cpp, then add a reference to the renamed file, SDL_winrt_main_NonXAML.cpp.  If you get a build error about a missing .winmd file, enable the /ZW compiler flag for that one file (at minimum).

--HG--
rename : src/main/winrt/SDL_winrt_main.cpp => src/main/winrt/SDL_winrt_main_NonXAML.cpp
2013-09-16 22:27:30 -04:00
David Ludwig
5d50184a6f WinRT: project-naming cleanup. Projects that link to SDL will need updating. To update:
1. remove references to SDL's project files from the Visual Studio Solution.  To note, these project files have been renamed, and will show up in Visual Studio with the text, "load failed".
2. add the SDL project files back into the Visual Studio Solution
3. for each project that should link to SDL, add a reference to it.  This can be done by right-clicking on it in Visual Studio, selecting "References...", clicking "Add New Reference", checking the box next to the SDL project, then closing each dialog by clicking OK.

SDL_mixer, SDL_ttf, and SDL_image for WinRT have been updated, and will be pushed to my Bitbucket repos with these changes having been made.  If you do not pull in these changes, be sure to re-add to them the reference to the SDL project, as described above.

--HG--
rename : VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj => VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj
rename : VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters => VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters
rename : VisualC-WinRT/SDL_VS2012-WinRT.sln => VisualC-WinRT/SDL-WinRT_VS2012.sln
rename : VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj => VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj
rename : VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters => VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters
2013-09-14 23:34:27 -04:00
David Ludwig
643ea6407e WinRT: renamed "windowsrt" directories to "winrt"
--HG--
rename : src/joystick/windowsrt/SDL_xinputjoystick.c => src/joystick/winrt/SDL_xinputjoystick.c
rename : src/main/windowsrt/SDL_winrt_main.cpp => src/main/winrt/SDL_winrt_main.cpp
2013-08-27 12:33:36 -04:00
David Ludwig
3a0f7dfe30 WinRT: build fixes for the loopwave and testthread test apps 2013-04-14 12:06:58 -04:00
David Ludwig
62303fa63a WinRT: made project file name include "WinRT", in order to make it distinct from a future WinPhone project
--HG--
rename : VisualC-WinRT/SDL/SDL_VS2012.vcxproj.filters => VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters
rename : VisualC-WinRT/SDL_VS2012.sln => VisualC-WinRT/SDL_VS2012-WinRT.sln
2013-01-28 22:03:12 -05:00
David Ludwig
240e6d6b71 WinRT: separated Win32 and WinRT project files
--HG--
rename : VisualC/SDL/SDL_VS2012_WinRT.vcxproj => VisualC-WinRT/SDL/SDL_VS2012.vcxproj
rename : VisualC/SDL/SDL_VS2012_WinRT.vcxproj.filters => VisualC-WinRT/SDL/SDL_VS2012.vcxproj.filters
rename : VisualC/SDL_VS2012_WinRT.sln => VisualC-WinRT/SDL_VS2012.sln
rename : VisualC/tests/loopwave/WinRT/Assets/Logo.png => VisualC-WinRT/tests/loopwave/Assets/Logo.png
rename : VisualC/tests/loopwave/WinRT/Assets/SmallLogo.png => VisualC-WinRT/tests/loopwave/Assets/SmallLogo.png
rename : VisualC/tests/loopwave/WinRT/Assets/SplashScreen.png => VisualC-WinRT/tests/loopwave/Assets/SplashScreen.png
rename : VisualC/tests/loopwave/WinRT/Assets/StoreLogo.png => VisualC-WinRT/tests/loopwave/Assets/StoreLogo.png
rename : VisualC/tests/loopwave/WinRT/Package.appxmanifest => VisualC-WinRT/tests/loopwave/Package.appxmanifest
rename : VisualC/tests/loopwave/WinRT/loopwave_VS2012_WinRT.vcxproj => VisualC-WinRT/tests/loopwave/loopwave_VS2012.vcxproj
rename : VisualC/tests/loopwave/WinRT/loopwave_VS2012_WinRT_TemporaryKey.pfx => VisualC-WinRT/tests/loopwave/loopwave_VS2012_TemporaryKey.pfx
rename : VisualC/tests/testthread/WinRT/Assets/Logo.png => VisualC-WinRT/tests/testthread/Assets/Logo.png
rename : VisualC/tests/testthread/WinRT/Assets/SmallLogo.png => VisualC-WinRT/tests/testthread/Assets/SmallLogo.png
rename : VisualC/tests/testthread/WinRT/Assets/SplashScreen.png => VisualC-WinRT/tests/testthread/Assets/SplashScreen.png
rename : VisualC/tests/testthread/WinRT/Assets/StoreLogo.png => VisualC-WinRT/tests/testthread/Assets/StoreLogo.png
rename : VisualC/tests/testthread/WinRT/Package.appxmanifest => VisualC-WinRT/tests/testthread/Package.appxmanifest
rename : VisualC/tests/testthread/WinRT/testthread_VS2012_WinRT.vcxproj => VisualC-WinRT/tests/testthread/testthread_VS2012.vcxproj
rename : VisualC/tests/testthread/WinRT/testthread_VS2012_WinRT_TemporaryKey.pfx => VisualC-WinRT/tests/testthread/testthread_VS2012_TemporaryKey.pfx
2013-01-23 23:42:50 -05:00