| 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( | 7 gypi_values = exec_script( |
| 8 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
| 9 [ rebase_path("../chrome_common.gypi") ], | 9 [ rebase_path("../chrome_common.gypi") ], |
| 10 "scope", | 10 "scope", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 "//chrome/installer/util", | 55 "//chrome/installer/util", |
| 56 "//components/cloud_devices/common", | 56 "//components/cloud_devices/common", |
| 57 "//components/content_settings/core/common", | 57 "//components/content_settings/core/common", |
| 58 "//components/json_schema", | 58 "//components/json_schema", |
| 59 "//components/metrics", | 59 "//components/metrics", |
| 60 "//components/policy:policy_component_common", | 60 "//components/policy:policy_component_common", |
| 61 "//components/translate/core/common", | 61 "//components/translate/core/common", |
| 62 "//components/variations", | 62 "//components/variations", |
| 63 "//content/public/common", | 63 "//content/public/common", |
| 64 "//crypto", | 64 "//crypto", |
| 65 "//extensions:extensions_resources", | |
| 66 "//extensions/strings", | |
| 67 "//media/cast:net", | 65 "//media/cast:net", |
| 68 "//net", | 66 "//net", |
| 69 "//skia", | 67 "//skia", |
| 70 "//third_party/icu", | 68 "//third_party/icu", |
| 71 "//third_party/libxml", | 69 "//third_party/libxml", |
| 72 "//third_party/sqlite", | 70 "//third_party/sqlite", |
| 73 "//third_party/zlib:zip", | 71 "//third_party/zlib:zip", |
| 74 "//ui/resources:resources", | 72 "//ui/resources:resources", |
| 75 "//url", | 73 "//url", |
| 76 ] | 74 ] |
| 77 | 75 |
| 78 if (is_ios) { | 76 if (is_ios) { |
| 79 sources += [ | 77 sources += [ |
| 80 # Use this Mac file that was filtered out. | 78 # Use this Mac file that was filtered out. |
| 81 "chrome_version_info_mac.mm", | 79 "chrome_version_info_mac.mm", |
| 82 ] | 80 ] |
| 83 } else { | 81 } else { |
| 84 # Non-iOS. | 82 # Non-iOS. |
| 85 deps += [ | 83 deps += [ |
| 86 "//chrome/common/extensions/api", | 84 "//chrome/common/extensions/api", |
| 87 "//components/visitedlink/common", | 85 "//components/visitedlink/common", |
| 88 "//components/autofill/content/common", | 86 "//components/autofill/content/common", |
| 89 "//components/autofill/core/common", | 87 "//components/autofill/core/common", |
| 90 "//components/password_manager/content/common", | 88 "//components/password_manager/content/common", |
| 91 "//components/password_manager/core/common", | 89 "//components/password_manager/core/common", |
| 92 "//components/signin/core/common", | 90 "//components/signin/core/common", |
| 93 "//components/translate/content/common", | 91 "//components/translate/content/common", |
| 94 "//extensions/common", | |
| 95 "//extensions/common/api", | |
| 96 "//ipc", | 92 "//ipc", |
| 97 "//third_party/re2", | 93 "//third_party/re2", |
| 98 "//third_party/widevine/cdm:version_h", | 94 "//third_party/widevine/cdm:version_h", |
| 99 ] | 95 ] |
| 100 } | 96 } |
| 101 | 97 |
| 102 if (enable_extensions) { | 98 if (enable_extensions) { |
| 103 sources += rebase_path( | 99 sources += rebase_path( |
| 104 gypi_values.chrome_common_extensions_sources, | 100 gypi_values.chrome_common_extensions_sources, |
| 105 ".", "//chrome") | 101 ".", "//chrome") |
| 106 deps += [ | 102 deps += [ |
| 107 "//device/bluetooth", | 103 "//device/bluetooth", |
| 108 "//device/usb", | 104 "//device/usb", |
| 105 "//extensions/common", |
| 106 "//extensions/common/api", |
| 107 "//extensions/strings", |
| 108 "//extensions:extensions_resources", |
| 109 ] | 109 ] |
| 110 } | 110 } |
| 111 | 111 |
| 112 if (is_win || is_mac) { | 112 if (is_win || is_mac) { |
| 113 sources += rebase_path( | 113 sources += rebase_path( |
| 114 gypi_values.chrome_common_win_mac_sources, | 114 gypi_values.chrome_common_win_mac_sources, |
| 115 ".", "//chrome") | 115 ".", "//chrome") |
| 116 if (use_openssl) { | 116 if (use_openssl) { |
| 117 sources -= [ | 117 sources -= [ |
| 118 "extensions/api/networking_private/networking_private_crypto_nss.cc", | 118 "extensions/api/networking_private/networking_private_crypto_nss.cc", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 defines += [ "FULL_SAFE_BROWSING" ] | 228 defines += [ "FULL_SAFE_BROWSING" ] |
| 229 sources += rebase_path( | 229 sources += rebase_path( |
| 230 gypi_values.chrome_common_full_safe_browsing_sources, | 230 gypi_values.chrome_common_full_safe_browsing_sources, |
| 231 ".", "//chrome") | 231 ".", "//chrome") |
| 232 } | 232 } |
| 233 if (safe_browsing_mode == 2) { | 233 if (safe_browsing_mode == 2) { |
| 234 defines += [ "MOBILE_SAFE_BROWSING" ] | 234 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 235 } | 235 } |
| 236 } | 236 } |
| 237 | 237 |
| 238 if (is_linux) { | 238 if (is_linux || is_android) { |
| 239 # TODO(brettw) this duplicates "//chrome/common:version" which applies to | 239 # TODO(brettw) this duplicates "//chrome/common:version" which applies to |
| 240 # Windows. | 240 # Windows. |
| 241 import("//chrome/version.gni") | 241 import("//chrome/version.gni") |
| 242 process_version("version") { | 242 process_version("version") { |
| 243 visibility = [ ":common" ] | 243 visibility = [ ":common" ] |
| 244 source = "chrome_version_info_posix.h.version" | 244 source = "chrome_version_info_posix.h.version" |
| 245 output = "$target_gen_dir/chrome_version_info_posix.h" | 245 output = "$target_gen_dir/chrome_version_info_posix.h" |
| 246 } | 246 } |
| 247 } else { | 247 } else { |
| 248 # Other platforms have a different way to do versioning. | 248 # Other platforms have a different way to do versioning. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 if (is_win || is_mac) { | 310 if (is_win || is_mac) { |
| 311 sources += [ | 311 sources += [ |
| 312 "media_galleries/picasa_test_util.cc", | 312 "media_galleries/picasa_test_util.cc", |
| 313 "media_galleries/picasa_test_util.cc", | 313 "media_galleries/picasa_test_util.cc", |
| 314 "media_galleries/pmp_test_util.cc", | 314 "media_galleries/pmp_test_util.cc", |
| 315 "media_galleries/pmp_test_util.h", | 315 "media_galleries/pmp_test_util.h", |
| 316 ] | 316 ] |
| 317 } | 317 } |
| 318 | 318 |
| 319 } | 319 } |
| OLD | NEW |