OLD | NEW |
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 Loading... |
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 "pref_font_script_names-inl.h", | 316 "pref_font_script_names-inl.h", |
309 "pref_font_webkit_names.h", | 317 "pref_font_webkit_names.h", |
310 "pref_names.cc", | 318 "pref_names.cc", |
311 "pref_names.h", | 319 "pref_names.h", |
312 ] | 320 ] |
313 | 321 |
314 public_deps = [ | 322 public_deps = [ |
315 "//content/public/common:result_codes", | 323 "//content/public/common:result_codes", |
316 ] | 324 ] |
317 deps = [ | 325 deps = [ |
| 326 ":features", |
318 ":version_header", | 327 ":version_header", |
319 "//base", | 328 "//base", |
320 "//base/third_party/dynamic_annotations", | 329 "//base/third_party/dynamic_annotations", |
321 "//components/bookmarks/common", | 330 "//components/bookmarks/common", |
322 "//third_party/widevine/cdm:version_h", | 331 "//third_party/widevine/cdm:version_h", |
323 ] | 332 ] |
324 | 333 |
325 if (enable_nacl) { | 334 if (enable_nacl) { |
326 deps += [ "//components/nacl:nacl_switches" ] | 335 deps += [ "//components/nacl:nacl_switches" ] |
327 } | 336 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 ":constants", | 394 ":constants", |
386 "//base", | 395 "//base", |
387 ] | 396 ] |
388 } | 397 } |
389 | 398 |
390 mojom("mojo_bindings") { | 399 mojom("mojo_bindings") { |
391 sources = [ | 400 sources = [ |
392 "resource_usage_reporter.mojom", | 401 "resource_usage_reporter.mojom", |
393 ] | 402 ] |
394 } | 403 } |
OLD | NEW |