Skip to content

Commit

Permalink
Merge pull request #5668 from shuffle2/qt-winmain
Browse files Browse the repository at this point in the history
Qt/Windows: Properly link against qtmain.
  • Loading branch information
shuffle2 committed Jun 23, 2017
2 parents 4e39a42 + 38b61ed commit 485589f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Externals/Qt
2 changes: 2 additions & 0 deletions Source/Core/DolphinQt2/Main.cpp
Expand Up @@ -19,6 +19,8 @@
#include "UICommon/CommandLineParse.h"
#include "UICommon/UICommon.h"

// N.B. On Windows, this should be called from WinMain. Link against qtmain and specify
// /SubSystem:Windows
int main(int argc, char* argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
Expand Down
1 change: 1 addition & 0 deletions Source/VSProps/QtCompile.props
Expand Up @@ -36,6 +36,7 @@
<Link>
<AdditionalLibraryDirectories>$(QtLibDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>qtmain$(QtLibSuffix).lib;Qt5Core$(QtLibSuffix).lib;Qt5Gui$(QtLibSuffix).lib;Qt5Widgets$(QtLibSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Windows</SubSystem>
<!--
<AdditionalOptions>"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\" %(AdditionalOptions)</AdditionalOptions>
-->
Expand Down

0 comments on commit 485589f

Please sign in to comment.