| 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 | 6 |
| 7 gypi_values = exec_script("//build/gypi_to_gn.py", | 7 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 8 [ rebase_path("../chrome_common.gypi") ], | 8 [ rebase_path("../chrome_common.gypi") ], |
| 9 "scope", | 9 "scope", |
| 10 [ "../chrome_common.gypi" ]) | 10 [ "../chrome_common.gypi" ]) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 "//chrome") | 103 "//chrome") |
| 104 deps += [ | 104 deps += [ |
| 105 "//device/usb", | 105 "//device/usb", |
| 106 "//chrome/common/extensions/api", | 106 "//chrome/common/extensions/api", |
| 107 "//extensions/common", | 107 "//extensions/common", |
| 108 "//extensions/common/api", | 108 "//extensions/common/api", |
| 109 "//extensions:extensions_resources", | 109 "//extensions:extensions_resources", |
| 110 "//extensions/strings", | 110 "//extensions/strings", |
| 111 "//media/cast:net", | 111 "//media/cast:net", |
| 112 ] | 112 ] |
| 113 if (enable_media_router) { | |
| 114 defines += [ "ENABLE_MEDIA_ROUTER=1" ] | |
| 115 } | |
| 116 if (is_chromeos) { | 113 if (is_chromeos) { |
| 117 sources += | 114 sources += |
| 118 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, | 115 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, |
| 119 ".", | 116 ".", |
| 120 "//chrome") | 117 "//chrome") |
| 121 } | 118 } |
| 122 } | 119 } |
| 123 | 120 |
| 124 if (is_win || is_mac) { | 121 if (is_win || is_mac) { |
| 125 sources += | 122 sources += |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 233 } |
| 237 if (enable_configuration_policy) { | 234 if (enable_configuration_policy) { |
| 238 deps += [ "//components/policy" ] | 235 deps += [ "//components/policy" ] |
| 239 } | 236 } |
| 240 | 237 |
| 241 if (safe_browsing_mode == 1) { | 238 if (safe_browsing_mode == 1) { |
| 242 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 239 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
| 243 ".", | 240 ".", |
| 244 "//chrome") | 241 "//chrome") |
| 245 } | 242 } |
| 246 if (enable_media_router) { | |
| 247 defines += [ "ENABLE_MEDIA_ROUTER=1" ] | |
| 248 } | |
| 249 } | 243 } |
| 250 | 244 |
| 251 import("//chrome/version.gni") | 245 import("//chrome/version.gni") |
| 252 process_version("version") { | 246 process_version("version") { |
| 253 visibility = [ ":common" ] | 247 visibility = [ ":common" ] |
| 254 template_file = "chrome_version_info_values.h.version" | 248 template_file = "chrome_version_info_values.h.version" |
| 255 output = "$target_gen_dir/chrome_version_info_values.h" | 249 output = "$target_gen_dir/chrome_version_info_values.h" |
| 256 } | 250 } |
| 257 | 251 |
| 258 process_version("make_chrome_version") { | 252 process_version("make_chrome_version") { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 "mac/app_mode_chrome_locator.mm", | 333 "mac/app_mode_chrome_locator.mm", |
| 340 "mac/app_mode_common.h", | 334 "mac/app_mode_common.h", |
| 341 "mac/app_mode_common.mm", | 335 "mac/app_mode_common.mm", |
| 342 ] | 336 ] |
| 343 | 337 |
| 344 deps = [ | 338 deps = [ |
| 345 ":constants", | 339 ":constants", |
| 346 "//base", | 340 "//base", |
| 347 ] | 341 ] |
| 348 } | 342 } |
| OLD | NEW |