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

Side by Side Diff: chrome/common/BUILD.gn

Issue 1469383005: New build flag system, convert Google Now flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make separate gyp to avoid cycle Created 5 years 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni")
6 import("//chrome/common/features.gni")
5 import("//chrome/version.gni") 7 import("//chrome/version.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
8 10
9 gypi_values = exec_script("//build/gypi_to_gn.py", 11 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_common.gypi") ], 12 [ rebase_path("../chrome_common.gypi") ],
11 "scope", 13 "scope",
12 [ "../chrome_common.gypi" ]) 14 [ "../chrome_common.gypi" ])
13 15
14 # GYP version: chrome/chrome_resources.gyp:chrome_resources 16 # GYP version: chrome/chrome_resources.gyp:chrome_resources
(...skipping 14 matching lines...) Expand all
29 grit("extensions_api_resources") { 31 grit("extensions_api_resources") {
30 source = "extensions_api_resources.grd" 32 source = "extensions_api_resources.grd"
31 output_dir = "$root_gen_dir/chrome" 33 output_dir = "$root_gen_dir/chrome"
32 outputs = [ 34 outputs = [
33 "grit/extensions_api_resources.h", 35 "grit/extensions_api_resources.h",
34 "extensions_api_resources.pak", 36 "extensions_api_resources.pak",
35 ] 37 ]
36 } 38 }
37 } 39 }
38 40
41 buildflag_header("features") {
42 header = "features.h"
43 flags = [ "ENABLE_GOOGLE_NOW=$enable_google_now" ]
44 }
45
39 # GYP version: chrome/chrome_common.gypi:common 46 # GYP version: chrome/chrome_common.gypi:common
40 static_library("common") { 47 static_library("common") {
41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") 48 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome")
42 defines = [] 49 defines = []
43 50
44 configs += [ 51 configs += [
45 "//build/config:precompiled_headers", 52 "//build/config:precompiled_headers",
46 "//build/config/compiler:wexit_time_destructors", 53 "//build/config/compiler:wexit_time_destructors",
47 ] 54 ]
48 55
49 public_deps = [ 56 public_deps = [
57 ":features",
50 "//base:base", 58 "//base:base",
51 "//base:base_static", 59 "//base:base_static",
52 "//base:i18n", 60 "//base:i18n",
53 "//base:prefs", 61 "//base:prefs",
54 "//chrome:resources", 62 "//chrome:resources",
55 "//chrome:strings", 63 "//chrome:strings",
56 "//chrome/app/theme:theme_resources", 64 "//chrome/app/theme:theme_resources",
57 "//chrome/common:constants", 65 "//chrome/common:constants",
58 "//chrome/common/safe_browsing:proto", 66 "//chrome/common/safe_browsing:proto",
59 "//chrome/common/variations:fieldtrial_testing_config", 67 "//chrome/common/variations:fieldtrial_testing_config",
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 "pref_font_script_names-inl.h", 317 "pref_font_script_names-inl.h",
310 "pref_font_webkit_names.h", 318 "pref_font_webkit_names.h",
311 "pref_names.cc", 319 "pref_names.cc",
312 "pref_names.h", 320 "pref_names.h",
313 ] 321 ]
314 322
315 public_deps = [ 323 public_deps = [
316 "//content/public/common:result_codes", 324 "//content/public/common:result_codes",
317 ] 325 ]
318 deps = [ 326 deps = [
327 ":features",
319 ":version_header", 328 ":version_header",
320 "//base", 329 "//base",
321 "//base/third_party/dynamic_annotations", 330 "//base/third_party/dynamic_annotations",
322 "//components/bookmarks/common", 331 "//components/bookmarks/common",
323 "//third_party/widevine/cdm:version_h", 332 "//third_party/widevine/cdm:version_h",
324 ] 333 ]
325 334
326 if (enable_nacl) { 335 if (enable_nacl) {
327 deps += [ "//components/nacl:nacl_switches" ] 336 deps += [ "//components/nacl:nacl_switches" ]
328 } 337 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 ":constants", 395 ":constants",
387 "//base", 396 "//base",
388 ] 397 ]
389 } 398 }
390 399
391 mojom("mojo_bindings") { 400 mojom("mojo_bindings") {
392 sources = [ 401 sources = [
393 "resource_usage_reporter.mojom", 402 "resource_usage_reporter.mojom",
394 ] 403 ]
395 } 404 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698