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/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//chrome/common/features.gni") | 9 import("//chrome/common/features.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
11 import("//third_party/protobuf/proto_library.gni") | 11 import("//third_party/protobuf/proto_library.gni") |
12 | 12 |
13 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which | 13 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
14 # produces a conflict for the "grit" template so we have to only include one. | 14 # produces a conflict for the "grit" template so we have to only include one. |
15 if (is_android) { | 15 if (is_android) { |
16 import("//build/config/android/rules.gni") | 16 import("//build/config/android/rules.gni") |
17 } else { | 17 } else { |
18 import("//tools/grit/grit_rule.gni") | 18 import("//tools/grit/grit_rule.gni") |
19 } | 19 } |
20 if (is_desktop_linux) { | 20 if (is_desktop_linux) { |
21 import("//build/config/linux/pkg_config.gni") | 21 import("//build/config/linux/pkg_config.gni") |
22 } | 22 } |
23 | 23 |
24 declare_args() { | |
25 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This | |
26 # will download a closed-source NaCl module at startup.) Chrome-branded | |
27 # ChromeOS builds have this enabled by default. | |
28 enable_hotwording = is_chrome_branded && is_chromeos | |
29 } | |
30 | |
31 additional_modules_list_file = | 24 additional_modules_list_file = |
32 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 25 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
33 | 26 |
34 gypi_values = exec_script("//build/gypi_to_gn.py", | 27 gypi_values = exec_script("//build/gypi_to_gn.py", |
35 [ rebase_path("../chrome_browser.gypi") ], | 28 [ rebase_path("../chrome_browser.gypi") ], |
36 "scope", | 29 "scope", |
37 [ "../chrome_browser.gypi" ]) | 30 [ "../chrome_browser.gypi" ]) |
38 | 31 |
39 if (is_win) { | 32 if (is_win) { |
40 # This is in a separate config so the flags can be applied to dependents. | 33 # This is in a separate config so the flags can be applied to dependents. |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store
_data_proto" ] | 552 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store
_data_proto" ] |
560 } | 553 } |
561 } else if (safe_browsing_mode == 2) { | 554 } else if (safe_browsing_mode == 2) { |
562 sources += | 555 sources += |
563 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources, | 556 rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources, |
564 ".", | 557 ".", |
565 "//chrome") | 558 "//chrome") |
566 } | 559 } |
567 } | 560 } |
568 | 561 |
569 if (enable_hotwording) { | |
570 defines += [ "ENABLE_HOTWORDING" ] | |
571 } | |
572 | |
573 if (is_linux) { | 562 if (is_linux) { |
574 deps += [ "//device/media_transfer_protocol" ] | 563 deps += [ "//device/media_transfer_protocol" ] |
575 } | 564 } |
576 | 565 |
577 if (use_udev) { | 566 if (use_udev) { |
578 deps += [ "//device/udev_linux" ] | 567 deps += [ "//device/udev_linux" ] |
579 } | 568 } |
580 | 569 |
581 if (is_linux && !is_chromeos) { | 570 if (is_linux && !is_chromeos) { |
582 deps += [ "//third_party/speech-dispatcher" ] | 571 deps += [ "//third_party/speech-dispatcher" ] |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") | 1320 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
1332 deps = [ | 1321 deps = [ |
1333 "//components/google/core/browser", | 1322 "//components/google/core/browser", |
1334 "//components/omnibox/browser", | 1323 "//components/omnibox/browser", |
1335 "//components/rlz", | 1324 "//components/rlz", |
1336 "//components/search_engines", | 1325 "//components/search_engines", |
1337 "//rlz:rlz_lib", | 1326 "//rlz:rlz_lib", |
1338 ] | 1327 ] |
1339 } | 1328 } |
1340 } | 1329 } |
OLD | NEW |