From 2ef0c82b8d083790b47119d4f55127323c301fc3 Mon Sep 17 00:00:00 2001
From: Zoltan Arvai <zarvai@inf.u-szeged.hu>
Date: Mon, 13 Jan 2014 17:59:39 +0100
Subject: [PATCH] Fix Qt5 libs linking to Qt5WebEngineCore.dll for Windows

MSVC linker needs file extension, otherwise it searches for .obj
files, but Qt has Qt5*.lib files.

Change-Id: I4fd5e1d6001ea309da456c43ffc79cb5944a1ef3
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
---
 tools/qmake/mkspecs/features/gyp_generator.prf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/qmake/mkspecs/features/gyp_generator.prf b/tools/qmake/mkspecs/features/gyp_generator.prf
index e41b2de50..4a4a8106d 100644
--- a/tools/qmake/mkspecs/features/gyp_generator.prf
+++ b/tools/qmake/mkspecs/features/gyp_generator.prf
@@ -94,7 +94,8 @@ GYP_CONTENTS += "    ],"
 }
 GYP_CONTENTS += "    'link_settings': {" \
                 "      'libraries': ["
-for (library, LIBRARIES): GYP_CONTENTS += "        '$$library',"
+win32: for (library, LIBRARIES): GYP_CONTENTS += "        '$${library}.lib',"
+else:  for (library, LIBRARIES): GYP_CONTENTS += "        '$$library',"
 macx {
     FRAMEWORKS = $$find(LIBS, "Q*")
     FRAMEWORKS = $$unique(FRAMEWORKS)
-- 
GitLab