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

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

Issue 1458653002: New build flag system, convert Google Now flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/build_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 build_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:i18n", 59 "//base:i18n",
52 "//base:prefs", 60 "//base:prefs",
53 "//base:base_static", 61 "//base:base_static",
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 "pref_font_script_names-inl.h", 315 "pref_font_script_names-inl.h",
308 "pref_font_webkit_names.h", 316 "pref_font_webkit_names.h",
309 "pref_names.cc", 317 "pref_names.cc",
310 "pref_names.h", 318 "pref_names.h",
311 ] 319 ]
312 320
313 public_deps = [ 321 public_deps = [
314 "//content/public/common:result_codes", 322 "//content/public/common:result_codes",
315 ] 323 ]
316 deps = [ 324 deps = [
325 ":features",
317 ":version_header", 326 ":version_header",
318 "//base", 327 "//base",
319 "//base/third_party/dynamic_annotations", 328 "//base/third_party/dynamic_annotations",
320 "//components/bookmarks/common", 329 "//components/bookmarks/common",
321 "//third_party/widevine/cdm:version_h", 330 "//third_party/widevine/cdm:version_h",
322 ] 331 ]
323 332
324 if (enable_nacl) { 333 if (enable_nacl) {
325 deps += [ "//components/nacl:nacl_switches" ] 334 deps += [ "//components/nacl:nacl_switches" ]
326 } 335 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 ":constants", 393 ":constants",
385 "//base", 394 "//base",
386 ] 395 ]
387 } 396 }
388 397
389 mojom("mojo_bindings") { 398 mojom("mojo_bindings") {
390 sources = [ 399 sources = [
391 "resource_usage_reporter.mojom", 400 "resource_usage_reporter.mojom",
392 ] 401 ]
393 } 402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698