| 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("//build/split_static_library.gni") | 9 import("//build/split_static_library.gni") |
| 10 import("//chrome/common/features.gni") | 10 import("//chrome/common/features.gni") |
| 11 import("//media/media_options.gni") | 11 import("//media/media_options.gni") |
| 12 import("//third_party/protobuf/proto_library.gni") | 12 import("//third_party/protobuf/proto_library.gni") |
| 13 | 13 |
| 14 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which | 14 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 15 # produces a conflict for the "grit" template so we have to only include one. | 15 # produces a conflict for the "grit" template so we have to only include one. |
| 16 if (is_android) { | 16 if (is_android) { |
| 17 import("//build/config/android/rules.gni") | 17 import("//build/config/android/rules.gni") |
| 18 } else { | 18 } else { |
| 19 import("//tools/grit/grit_rule.gni") | 19 import("//tools/grit/grit_rule.gni") |
| 20 } | 20 } |
| 21 if (is_desktop_linux) { | 21 if (is_desktop_linux) { |
| 22 import("//build/config/linux/pkg_config.gni") | 22 import("//build/config/linux/pkg_config.gni") |
| 23 } | 23 } |
| 24 | 24 |
| 25 declare_args() { | |
| 26 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This | |
| 27 # will download a closed-source NaCl module at startup.) Chrome-branded | |
| 28 # ChromeOS builds have this enabled by default. | |
| 29 enable_hotwording = is_chrome_branded && is_chromeos | |
| 30 } | |
| 31 | |
| 32 additional_modules_list_file = | 25 additional_modules_list_file = |
| 33 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 26 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 34 | 27 |
| 35 gypi_values = exec_script("//build/gypi_to_gn.py", | 28 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 36 [ rebase_path("../chrome_browser.gypi") ], | 29 [ rebase_path("../chrome_browser.gypi") ], |
| 37 "scope", | 30 "scope", |
| 38 [ "../chrome_browser.gypi" ]) | 31 [ "../chrome_browser.gypi" ]) |
| 39 | 32 |
| 40 if (is_win) { | 33 if (is_win) { |
| 41 # This is in a separate config so the flags can be applied to dependents. | 34 # This is in a separate config so the flags can be applied to dependents. |
| (...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 # linking all of the test support. | 1368 # linking all of the test support. |
| 1376 static_library("pepper_cdm_test_constants") { | 1369 static_library("pepper_cdm_test_constants") { |
| 1377 testonly = true | 1370 testonly = true |
| 1378 visibility = [ "//chrome/*" ] | 1371 visibility = [ "//chrome/*" ] |
| 1379 sources = [ | 1372 sources = [ |
| 1380 "media/pepper_cdm_test_constants.cc", | 1373 "media/pepper_cdm_test_constants.cc", |
| 1381 "media/pepper_cdm_test_constants.h", | 1374 "media/pepper_cdm_test_constants.h", |
| 1382 ] | 1375 ] |
| 1383 } | 1376 } |
| 1384 } | 1377 } |
| OLD | NEW |