Skip to content
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

Update VS projects/solutions to VS2019 #8498

Merged
merged 3 commits into from Dec 3, 2019

Conversation

stenzek
Copy link
Contributor

@stenzek stenzek commented Nov 27, 2019

What the title says. The buildbots were updated a while back, so I don't see much reason to stay on the old toolset.

I'm assuming the plan is still to migrate to cmake, but at least we'll discover any issues with the new compiler this way, changing one thing a time?

Source/VSProps/Base.props Outdated Show resolved Hide resolved
@stenzek stenzek force-pushed the update-vs2019 branch 2 times, most recently from b9ee09a to f2ff456 Compare November 27, 2019 13:06
Copy link
Member

@BhaaLseN BhaaLseN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good in general. Saw it only after commenting on the ARM one, so those comments are probably ignorable over there.

Source/Core/DolphinQt/DolphinQt.vcxproj Outdated Show resolved Hide resolved
@stenzek
Copy link
Contributor Author

stenzek commented Nov 30, 2019

Unless anyone has any objections, I'll go ahead and merge the update. Will wait a couple more days until doing so.

@stenzek stenzek merged commit 15fc71c into dolphin-emu:master Dec 3, 2019
@stenzek stenzek deleted the update-vs2019 branch December 3, 2019 03:03
leoetlino added a commit to leoetlino/sadm that referenced this pull request Apr 17, 2021
Finishes the CMake migration.

Unlike dolphin-emu#113 (the previous attempt), this PR takes a different approach.
Instead of assuming that the compiler and environment variables are
already set, we call the vcvars64.bat batch script to find the WinSDK,
compiler path, include paths, etc. and to set any environment variables
that are required to compile.

This should require less maintenance than the previous approach.
The only time we have to change something in the buildbot config file
is when we upgrade to a new major version of Visual Studio.

One concern that was raised last time is that the WinSDK version is not
pinned so we end up using the latest WinSDK version.
However, since dolphin-emu/dolphin#8498 was
merged, the VS project files also do the exact same thing, and minimum
version checks have been added elsewhere to ensure the WinSDK version
isn't too old.

Anyway, with this approach, if we ever need to use a specific version
of the Windows SDK, we can easily switch to vcvarsall.bat later on:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax

So I don't think this should be a blocker.

I've tested the build steps I added in a Windows VM, but this needs
some testing to make sure e.g. incremental builds work fine.
leoetlino added a commit to leoetlino/sadm that referenced this pull request Apr 19, 2021
Finishes the CMake migration.

Unlike dolphin-emu#113 (the previous attempt), this PR takes a different approach.
Instead of assuming that the compiler and environment variables are
already set, we call the vcvars64.bat batch script to find the WinSDK,
compiler path, include paths, etc. and to set any environment variables
that are required to compile.

This should require less maintenance than the previous approach.
The only time we have to change something in the buildbot config file
is when we upgrade to a new major version of Visual Studio.

One concern that was raised last time is that the WinSDK version is not
pinned so we end up using the latest WinSDK version.
However, since dolphin-emu/dolphin#8498 was
merged, the VS project files also do the exact same thing, and minimum
version checks have been added elsewhere to ensure the WinSDK version
isn't too old.

Anyway, with this approach, if we ever need to use a specific version
of the Windows SDK, we can easily switch to vcvarsall.bat later on:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax

So I don't think this should be a blocker.

I've tested the build steps I added in a Windows VM, but this needs
some testing to make sure e.g. incremental builds work fine.
leoetlino added a commit to leoetlino/sadm that referenced this pull request Apr 24, 2021
Finishes the CMake migration.

Unlike dolphin-emu#113 (the previous attempt), this PR takes a different approach.
Instead of assuming that the compiler and environment variables are
already set, we call the vcvars64.bat batch script to find the WinSDK,
compiler path, include paths, etc. and to set any environment variables
that are required to compile.

This should require less maintenance than the previous approach.
The only time we have to change something in the buildbot config file
is when we upgrade to a new major version of Visual Studio.

One concern that was raised last time is that the WinSDK version is not
pinned so we end up using the latest WinSDK version.
However, since dolphin-emu/dolphin#8498 was
merged, the VS project files also do the exact same thing, and minimum
version checks have been added elsewhere to ensure the WinSDK version
isn't too old.

Anyway, with this approach, if we ever need to use a specific version
of the Windows SDK, we can easily switch to vcvarsall.bat later on:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax

So I don't think this should be a blocker.

I've tested the build steps I added in a Windows VM, but this needs
some testing to make sure e.g. incremental builds work fine.
leoetlino added a commit to leoetlino/sadm that referenced this pull request Apr 25, 2021
Finishes the CMake migration.

Unlike dolphin-emu#113 (the previous attempt), this PR takes a different approach.
Instead of assuming that the compiler and environment variables are
already set, we call the vcvars64.bat batch script to find the WinSDK,
compiler path, include paths, etc. and to set any environment variables
that are required to compile.

This should require less maintenance than the previous approach.
The only time we have to change something in the buildbot config file
is when we upgrade to a new major version of Visual Studio.

One concern that was raised last time is that the WinSDK version is not
pinned so we end up using the latest WinSDK version.
However, since dolphin-emu/dolphin#8498 was
merged, the VS project files also do the exact same thing, and minimum
version checks have been added elsewhere to ensure the WinSDK version
isn't too old.

Anyway, with this approach, if we ever need to use a specific version
of the Windows SDK, we can easily switch to vcvarsall.bat later on:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax

So I don't think this should be a blocker.
leoetlino added a commit to leoetlino/sadm that referenced this pull request May 24, 2021
Finishes the CMake migration.

Unlike dolphin-emu#113 (the previous attempt), this PR takes a different approach.
Instead of assuming that the compiler and environment variables are
already set, we call the vcvars64.bat batch script to find the WinSDK,
compiler path, include paths, etc. and to set any environment variables
that are required to compile.

This should require less maintenance than the previous approach.
The only time we have to change something in the buildbot config file
is when we upgrade to a new major version of Visual Studio.

One concern that was raised last time is that the WinSDK version is not
pinned so we end up using the latest WinSDK version.
However, since dolphin-emu/dolphin#8498 was
merged, the VS project files also do the exact same thing, and minimum
version checks have been added elsewhere to ensure the WinSDK version
isn't too old.

Anyway, with this approach, if we ever need to use a specific version
of the Windows SDK, we can easily switch to vcvarsall.bat later on:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#vcvarsall-syntax

So I don't think this should be a blocker.
@SternXD
Copy link

SternXD commented Jul 9, 2021

Unless anyone has any objections, I'll go ahead and merge the update. Will wait a couple more days until doing so.

so i cannot install VS2019 is it possible to use the older one on my end?

@JosJuice
Copy link
Member

JosJuice commented Jul 9, 2021

No, you need VS2019 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants