Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: chrome/BUILD.gn

Issue 891893002: Disable chrome target and tests on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try #2 with a flag and a dummy chrome target Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/BUILD.gn
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index e85c1daa41ea794dc45e6c5319836e7fe0bf5141..9341384167efc76b35893ac38a98c774eef3ea10 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -12,7 +12,14 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
-if (!is_android) {
+if (is_win && !link_chrome_on_windows) {
+ # When linking is disabled on Windows, create a dummy Chrome target to
+ # make targets work that depend on Chrome.
+ group("chrome") {
+ }
+}
+
+if (!is_android && (!is_win || link_chrome_on_windows)) {
# TODO(GYP) for Windows need to the the reorder-imports step which probably
# means adding another target and renaming this to chrome_initial like in GYP.
executable("chrome") {
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698