| 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/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//components/nacl/nacl_defines.gni") | 8 import("//components/nacl/nacl_defines.gni") |
| 9 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which | 9 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 10 # produces a conflict for the "grit" template so we have to only include one. | 10 # produces a conflict for the "grit" template so we have to only include one. |
| 11 if (is_android) { | 11 if (is_android) { |
| 12 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
| 13 } else { | 13 } else { |
| 14 import("//tools/grit/grit_rule.gni") | 14 import("//tools/grit/grit_rule.gni") |
| 15 } | 15 } |
| 16 | 16 |
| 17 about_credits_file = "$target_gen_dir/about_credits.html" | 17 about_credits_file = "$target_gen_dir/about_credits.html" |
| 18 additional_modules_list_file = | 18 additional_modules_list_file = |
| 19 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 19 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 20 | 20 |
| 21 gypi_values = exec_script( | 21 gypi_values = exec_script( |
| 22 "//build/gypi_to_gn.py", | 22 "//build/gypi_to_gn.py", |
| 23 [ rebase_path("../chrome_browser.gypi") ], | 23 [ rebase_path("../chrome_browser.gypi") ], |
| 24 "scope", | 24 "scope", |
| 25 [ "../chrome_browser.gypi" ]) | 25 [ "../chrome_browser.gypi" ]) |
| 26 | 26 |
| 27 static_library("browser") { | 27 static_library("browser") { |
| 28 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 28 configs += [ |
| 29 "//build/config/compiler:wexit_time_destructors", |
| 30 "//third_party/WebKit/public:debug_devtools", |
| 31 ] |
| 29 defines = [] | 32 defines = [] |
| 30 sources = [] | 33 sources = [] |
| 31 libs = [] | 34 libs = [] |
| 32 ldflags = [] | 35 ldflags = [] |
| 33 | 36 |
| 34 # iOS/non-iOS shared deps. New dependencies should generally be added in the | 37 # iOS/non-iOS shared deps. New dependencies should generally be added in the |
| 35 # non-iOS deps below. | 38 # non-iOS deps below. |
| 36 public_deps = [ | 39 public_deps = [ |
| 37 "//components/autofill/core/browser", | 40 "//components/autofill/core/browser", |
| 38 "//content/public/browser", | 41 "//content/public/browser", |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 if (enable_spellcheck) { | 269 if (enable_spellcheck) { |
| 267 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, | 270 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, |
| 268 ".", "//chrome") | 271 ".", "//chrome") |
| 269 deps += [ "//third_party/hunspell" ] | 272 deps += [ "//third_party/hunspell" ] |
| 270 } | 273 } |
| 271 if (enable_nacl) { | 274 if (enable_nacl) { |
| 272 sources += rebase_path(gypi_values.chrome_browser_nacl_sources, | 275 sources += rebase_path(gypi_values.chrome_browser_nacl_sources, |
| 273 ".", "//chrome") | 276 ".", "//chrome") |
| 274 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP) | 277 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP) |
| 275 } | 278 } |
| 276 # ["debug_devtools==1", { TODO(GYP) | 279 |
| 277 # "defines": [ | |
| 278 # "DEBUG_DEVTOOLS=1", | |
| 279 # }], | |
| 280 if (enable_configuration_policy) { | 280 if (enable_configuration_policy) { |
| 281 sources += rebase_path( | 281 sources += rebase_path( |
| 282 gypi_values.chrome_browser_policy_shared_with_ios_sources, | 282 gypi_values.chrome_browser_policy_shared_with_ios_sources, |
| 283 ".", "//chrome") | 283 ".", "//chrome") |
| 284 deps += [ | 284 deps += [ |
| 285 "//components/policy", | 285 "//components/policy", |
| 286 "//components/policy/proto", | 286 "//components/policy/proto", |
| 287 ] | 287 ] |
| 288 if (!is_ios) { | 288 if (!is_ios) { |
| 289 sources += rebase_path( | 289 sources += rebase_path( |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 ] | 924 ] |
| 925 } | 925 } |
| 926 | 926 |
| 927 if (enable_wifi_bootstrapping) { | 927 if (enable_wifi_bootstrapping) { |
| 928 sources += [ | 928 sources += [ |
| 929 "local_discovery/wifi/mock_wifi_manager.cc", | 929 "local_discovery/wifi/mock_wifi_manager.cc", |
| 930 "local_discovery/wifi/mock_wifi_manager.h", | 930 "local_discovery/wifi/mock_wifi_manager.h", |
| 931 ] | 931 ] |
| 932 } | 932 } |
| 933 } | 933 } |
| OLD | NEW |