From f162e81aef78e3f339cf95d12ebc15de0c41fc27 Mon Sep 17 00:00:00 2001
From: Joerg Bornemann <joerg.bornemann@qt.io>
Date: Thu, 23 Mar 2017 14:50:16 +0100
Subject: [PATCH] Remove superfluous run_gn target from gn_run.pro

Gn is called at qmake time. The run_gn target was empty and did nothing.

Change-Id: I570094e013c63a78ca6cec6987f119bfda45e085
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
---
 src/core/gn_run.pro | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/core/gn_run.pro b/src/core/gn_run.pro
index 12df5d526..07635d04c 100644
--- a/src/core/gn_run.pro
+++ b/src/core/gn_run.pro
@@ -35,7 +35,6 @@ build_pass|!debug_and_release {
     gn_binary = gn
 
     runninja.target = run_ninja
-    rungn.target = run_gn
 
     gn_args = $$gnArgs()
 
@@ -52,11 +51,9 @@ build_pass|!debug_and_release {
     gn_args = $$shell_quote($$gn_args)
     gn_src_root = $$shell_quote($$shell_path($$QTWEBENGINE_ROOT/$$getChromiumSrcDir()))
     gn_build_root = $$shell_quote($$shell_path($$OUT_PWD/$$getConfigDir()))
-    rungn.commands = $$runGn($$gn_binary gen $$gn_build_root --args=$$gn_args --root=$$gn_src_root)
-    QMAKE_EXTRA_TARGETS += rungn
+    $$runGn($$gn_binary gen $$gn_build_root --args=$$gn_args --root=$$gn_src_root)
 
     runninja.commands = $$NINJA \$\(NINJAFLAGS\) -C $$gn_build_root QtWebEngineCore
-    runninja.depends += rungn
     QMAKE_EXTRA_TARGETS += runninja
 
     build_pass:build_all: default_target.target = all
-- 
GitLab