| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ] | 222 ] |
| 223 } | 223 } |
| 224 if (!enable_webrtc) { | 224 if (!enable_webrtc) { |
| 225 sources -= [ "media/webrtc_logging_messages.h" ] | 225 sources -= [ "media/webrtc_logging_messages.h" ] |
| 226 } | 226 } |
| 227 if (enable_configuration_policy) { | 227 if (enable_configuration_policy) { |
| 228 deps += [ "//components/policy" ] | 228 deps += [ "//components/policy" ] |
| 229 } | 229 } |
| 230 | 230 |
| 231 if (safe_browsing_mode == 1) { | 231 if (safe_browsing_mode == 1) { |
| 232 defines += [ "FULL_SAFE_BROWSING" ] | |
| 233 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 232 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
| 234 ".", | 233 ".", |
| 235 "//chrome") | 234 "//chrome") |
| 236 } | 235 } |
| 237 if (safe_browsing_mode == 2) { | |
| 238 defines += [ "MOBILE_SAFE_BROWSING" ] | |
| 239 } | |
| 240 if (enable_media_router) { | 236 if (enable_media_router) { |
| 241 defines += [ "ENABLE_MEDIA_ROUTER=1" ] | 237 defines += [ "ENABLE_MEDIA_ROUTER=1" ] |
| 242 } | 238 } |
| 243 } | 239 } |
| 244 | 240 |
| 245 import("//chrome/version.gni") | 241 import("//chrome/version.gni") |
| 246 process_version("version") { | 242 process_version("version") { |
| 247 visibility = [ ":common" ] | 243 visibility = [ ":common" ] |
| 248 template_file = "chrome_version_info_values.h.version" | 244 template_file = "chrome_version_info_values.h.version" |
| 249 output = "$target_gen_dir/chrome_version_info_values.h" | 245 output = "$target_gen_dir/chrome_version_info_values.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 "mac/app_mode_chrome_locator.mm", | 330 "mac/app_mode_chrome_locator.mm", |
| 335 "mac/app_mode_common.h", | 331 "mac/app_mode_common.h", |
| 336 "mac/app_mode_common.mm", | 332 "mac/app_mode_common.mm", |
| 337 ] | 333 ] |
| 338 | 334 |
| 339 deps = [ | 335 deps = [ |
| 340 ":constants", | 336 ":constants", |
| 341 "//base", | 337 "//base", |
| 342 ] | 338 ] |
| 343 } | 339 } |
| OLD | NEW |