-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add examples to SDL.sln
#11255
base: main
Are you sure you want to change the base?
Add examples to SDL.sln
#11255
Conversation
This seems reasonable to me, @icculus? |
I'm curious whether the examples rebuild when switching between Configuration (Release|Debug)and Platform (Win32|x64). |
It does rebuild, both the example and the main SDL project. For some reason, the examples don't work when I build |
This looks fine to me as a first version. Our vcxproj projects contain a lot of repeated code. Perhaps we should add all common code in a shared |
I'm not against this, but we're absolutely going to forget to add new programs over time. |
As specified in CMakeLists.txt
Description
Each C example from the
examples/
directory is added as a Visual C++ project toSDL.sln
, making it easy to test and see the examples on Windows. The projects include the.c
file andREADME.txt
. To avoid code duplication in.vcxproj
files, common code is moved toDirectory.Build.props
.The project files can be automatically generated with the provided
generate.py
python file, but they still need to be manually added to the appropriate place in the VS solution (using Add existing project).The initial project files were made with JetBrains Rider and not Visual Studio, but they do work in VS. There might be slight differences if you compare with the test projects.
Existing Issue(s)
SDL.sln
(visual studio solutions) #11207