| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 "//base:base", | 45 "//base:base", |
| 46 "//base:i18n", | 46 "//base:i18n", |
| 47 "//base:prefs", | 47 "//base:prefs", |
| 48 "//base:base_static", | 48 "//base:base_static", |
| 49 "//chrome:resources", | 49 "//chrome:resources", |
| 50 "//chrome:strings", | 50 "//chrome:strings", |
| 51 "//chrome/app/theme:theme_resources", | 51 "//chrome/app/theme:theme_resources", |
| 52 "//chrome/common:constants", | 52 "//chrome/common:constants", |
| 53 "//chrome/common/net", | 53 "//chrome/common/net", |
| 54 "//chrome/common/safe_browsing:proto", | 54 "//chrome/common/safe_browsing:proto", |
| 55 "//chrome/installer/util", |
| 55 "//components/cloud_devices/common", | 56 "//components/cloud_devices/common", |
| 56 "//components/content_settings/core/common", | 57 "//components/content_settings/core/common", |
| 57 "//components/json_schema", | 58 "//components/json_schema", |
| 58 "//components/metrics", | 59 "//components/metrics", |
| 59 "//components/policy:policy_component_common", | 60 "//components/policy:policy_component_common", |
| 60 "//components/translate/core/common", | 61 "//components/translate/core/common", |
| 61 "//components/variations", | 62 "//components/variations", |
| 62 "//content/public/common", | 63 "//content/public/common", |
| 63 "//crypto", | 64 "//crypto", |
| 64 "//extensions:extensions_resources", | 65 "//extensions:extensions_resources", |
| 65 "//extensions/strings", | 66 "//extensions/strings", |
| 67 "//media/cast:net", |
| 66 "//net", | 68 "//net", |
| 67 "//skia", | 69 "//skia", |
| 68 "//third_party/icu", | 70 "//third_party/icu", |
| 69 "//third_party/libxml", | 71 "//third_party/libxml", |
| 70 "//third_party/sqlite", | 72 "//third_party/sqlite", |
| 71 "//third_party/zlib:zip", | 73 "//third_party/zlib:zip", |
| 72 "//ui/resources:resources", | 74 "//ui/resources:resources", |
| 73 "//url", | 75 "//url", |
| 74 #":installer_util", TODO(GYP) | |
| 75 #"//media/cast/cast.gyp:cast_transport", TODO(GYP) | |
| 76 ] | 76 ] |
| 77 | 77 |
| 78 if (is_ios) { | 78 if (is_ios) { |
| 79 sources += [ | 79 sources += [ |
| 80 # Use this Mac file that was filtered out. | 80 # Use this Mac file that was filtered out. |
| 81 "chrome_version_info_mac.mm", | 81 "chrome_version_info_mac.mm", |
| 82 ] | 82 ] |
| 83 } else { | 83 } else { |
| 84 # Non-iOS. | 84 # Non-iOS. |
| 85 deps += [ | 85 deps += [ |
| 86 "//chrome/common/extensions/api", | 86 "//chrome/common/extensions/api", |
| 87 "//components/visitedlink/common", | 87 "//components/visitedlink/common", |
| 88 "//components/autofill/content/common", | 88 "//components/autofill/content/common", |
| 89 "//components/autofill/core/common", | 89 "//components/autofill/core/common", |
| 90 "//components/password_manager/core/common", | 90 "//components/password_manager/core/common", |
| 91 "//components/signin/core/common", | 91 "//components/signin/core/common", |
| 92 "//components/translate/content/common", | 92 "//components/translate/content/common", |
| 93 "//extensions/common", |
| 93 "//extensions/common/api", | 94 "//extensions/common/api", |
| 94 "//ipc", | 95 "//ipc", |
| 95 "//third_party/adobe/flash:flapper_version_h", | 96 "//third_party/adobe/flash:flapper_version_h", |
| 96 "//third_party/re2", | 97 "//third_party/re2", |
| 97 "//third_party/widevine/cdm:version_h", | 98 "//third_party/widevine/cdm:version_h", |
| 98 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) | |
| 99 ] | 99 ] |
| 100 } | 100 } |
| 101 | 101 |
| 102 if (enable_extensions) { | 102 if (enable_extensions) { |
| 103 sources += rebase_path( | 103 sources += rebase_path( |
| 104 gypi_values.chrome_common_extensions_sources, | 104 gypi_values.chrome_common_extensions_sources, |
| 105 ".", "//chrome") | 105 ".", "//chrome") |
| 106 deps += [ | 106 deps += [ |
| 107 "//device/bluetooth", | 107 "//device/bluetooth", |
| 108 "//device/usb", | 108 "//device/usb", |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 sources += rebase_path( | 225 sources += rebase_path( |
| 226 gypi_values.chrome_common_full_safe_browsing_sources, | 226 gypi_values.chrome_common_full_safe_browsing_sources, |
| 227 ".", "//chrome") | 227 ".", "//chrome") |
| 228 } | 228 } |
| 229 if (safe_browsing_mode == 2) { | 229 if (safe_browsing_mode == 2) { |
| 230 defines += [ "MOBILE_SAFE_BROWSING" ] | 230 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 231 } | 231 } |
| 232 } | 232 } |
| 233 | 233 |
| 234 if (is_linux) { | 234 if (is_linux) { |
| 235 action("version") { | 235 # TODO(brettw) this duplicates "//chrome/common:version" which applies to |
| 236 # Windows. |
| 237 import("//chrome/version.gni") |
| 238 process_version("version") { |
| 236 visibility = ":common" | 239 visibility = ":common" |
| 237 script = "//build/util/version.py" | 240 source = "chrome_version_info_posix.h.version" |
| 238 | 241 output = "$target_gen_dir/chrome_version_info_posix.h" |
| 239 lastchange_path = "//build/util/LASTCHANGE" | |
| 240 version_path = "//chrome/VERSION" | |
| 241 template_input_path = "chrome_version_info_posix.h.version" | |
| 242 if (is_chrome_branded) { | |
| 243 branding_path = "//chrome/app/theme/google_chrome/BRANDING" | |
| 244 } else { | |
| 245 branding_path = "//chrome/app/theme/chromium/BRANDING" | |
| 246 } | |
| 247 | |
| 248 inputs = [ | |
| 249 version_path, | |
| 250 template_input_path, | |
| 251 lastchange_path, | |
| 252 branding_path, | |
| 253 ] | |
| 254 | |
| 255 outfile = "$target_gen_dir/chrome_version_info_posix.h" | |
| 256 outputs = [ outfile ] | |
| 257 | |
| 258 args = [ | |
| 259 "-f", rebase_path(version_path, root_build_dir), | |
| 260 "-f", rebase_path(branding_path, root_build_dir), | |
| 261 "-f", rebase_path(lastchange_path, root_build_dir), | |
| 262 rebase_path(template_input_path, root_build_dir), | |
| 263 rebase_path(outfile, root_build_dir), | |
| 264 ] | |
| 265 } | 242 } |
| 266 } else { | 243 } else { |
| 267 # Other platforms have a different way to do versioning. | 244 # Other platforms have a different way to do versioning. |
| 268 group("version") { | 245 group("version") { |
| 269 } | 246 } |
| 270 } | 247 } |
| 271 | 248 |
| 272 # GN version: chrome/common_constants.gyp:common_constants | 249 # GN version: chrome/common_constants.gyp:common_constants |
| 273 static_library("constants") { | 250 static_library("constants") { |
| 274 sources = [ | 251 sources = [ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 303 "//components/bookmarks/common", | 280 "//components/bookmarks/common", |
| 304 "//third_party/widevine/cdm:version_h", | 281 "//third_party/widevine/cdm:version_h", |
| 305 ] | 282 ] |
| 306 | 283 |
| 307 if (enable_nacl) { | 284 if (enable_nacl) { |
| 308 deps += [ | 285 deps += [ |
| 309 #'../components/nacl.gyp:nacl_switches', TODO(GYP) | 286 #'../components/nacl.gyp:nacl_switches', TODO(GYP) |
| 310 ] | 287 ] |
| 311 } | 288 } |
| 312 } | 289 } |
| OLD | NEW |