| 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("//third_party/protobuf/proto_library.gni") | 9 import("//third_party/protobuf/proto_library.gni") |
| 10 | 10 |
| 11 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which | 11 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 12 # produces a conflict for the "grit" template so we have to only include one. | 12 # produces a conflict for the "grit" template so we have to only include one. |
| 13 if (is_android) { | 13 if (is_android) { |
| 14 import("//build/config/android/rules.gni") | 14 import("//build/config/android/rules.gni") |
| 15 } else { | 15 } else { |
| 16 import("//tools/grit/grit_rule.gni") | 16 import("//tools/grit/grit_rule.gni") |
| 17 } | 17 } |
| 18 if (is_desktop_linux) { | 18 if (is_desktop_linux) { |
| 19 import("//build/config/linux/pkg_config.gni") | 19 import("//build/config/linux/pkg_config.gni") |
| 20 } | 20 } |
| 21 | 21 |
| 22 declare_args() { | 22 declare_args() { |
| 23 # 'Ok Google' hotwording is enabled. | 23 # 'Ok Google' hotwording is disabled by default in open source builds. Set to |
| 24 enable_hotwording = true | 24 # true to enable. (This will download a closed-source NaCl module at startup.) |
| 25 # Chrome-branded builds have this enabled by default. |
| 26 enable_hotwording = is_chrome_branded |
| 25 } | 27 } |
| 26 | 28 |
| 27 about_credits_file = "$target_gen_dir/about_credits.html" | 29 about_credits_file = "$target_gen_dir/about_credits.html" |
| 28 additional_modules_list_file = | 30 additional_modules_list_file = |
| 29 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 31 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 30 | 32 |
| 31 gypi_values = exec_script("//build/gypi_to_gn.py", | 33 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 32 [ rebase_path("../chrome_browser.gypi") ], | 34 [ rebase_path("../chrome_browser.gypi") ], |
| 33 "scope", | 35 "scope", |
| 34 [ "../chrome_browser.gypi" ]) | 36 [ "../chrome_browser.gypi" ]) |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 ] | 1176 ] |
| 1175 } | 1177 } |
| 1176 | 1178 |
| 1177 if (enable_wifi_bootstrapping) { | 1179 if (enable_wifi_bootstrapping) { |
| 1178 sources += [ | 1180 sources += [ |
| 1179 "local_discovery/wifi/mock_wifi_manager.cc", | 1181 "local_discovery/wifi/mock_wifi_manager.cc", |
| 1180 "local_discovery/wifi/mock_wifi_manager.h", | 1182 "local_discovery/wifi/mock_wifi_manager.h", |
| 1181 ] | 1183 ] |
| 1182 } | 1184 } |
| 1183 } | 1185 } |
| OLD | NEW |