| 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 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("../chrome_common.gypi") ], | 10 [ rebase_path("../chrome_common.gypi") ], |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 static_library("common") { | 40 static_library("common") { |
| 41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") | 41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") |
| 42 defines = [] | 42 defines = [] |
| 43 | 43 |
| 44 configs += [ | 44 configs += [ |
| 45 "//build/config:precompiled_headers", | 45 "//build/config:precompiled_headers", |
| 46 "//build/config/compiler:wexit_time_destructors", | 46 "//build/config/compiler:wexit_time_destructors", |
| 47 ] | 47 ] |
| 48 | 48 |
| 49 public_deps = [ | 49 public_deps = [ |
| 50 "//chrome/common:constants", |
| 51 "//chrome/common/safe_browsing:proto", |
| 52 ] |
| 53 deps = [ |
| 50 "//base:base", | 54 "//base:base", |
| 51 "//base:i18n", | 55 "//base:i18n", |
| 52 "//base:prefs", | 56 "//base:prefs", |
| 53 "//base:base_static", | 57 "//base:base_static", |
| 54 "//chrome:resources", | 58 "//chrome:resources", |
| 55 "//chrome:strings", | 59 "//chrome:strings", |
| 56 "//chrome/app/theme:theme_resources", | 60 "//chrome/app/theme:theme_resources", |
| 57 "//chrome/common:constants", | |
| 58 "//chrome/common/safe_browsing:proto", | |
| 59 "//chrome/common/variations:fieldtrial_testing_config", | 61 "//chrome/common/variations:fieldtrial_testing_config", |
| 60 "//chrome/installer/util", | 62 "//chrome/installer/util", |
| 61 "//components/cloud_devices/common", | 63 "//components/cloud_devices/common", |
| 62 "//components/component_updater", | 64 "//components/component_updater", |
| 63 "//components/content_settings/core/common", | 65 "//components/content_settings/core/common", |
| 64 "//components/crash/core/common", | 66 "//components/crash/core/common", |
| 65 "//components/data_reduction_proxy/content/common", | |
| 66 "//components/dom_distiller/core", | |
| 67 "//components/error_page/common", | |
| 68 "//components/favicon_base", | 67 "//components/favicon_base", |
| 69 "//components/gcm_driver/common", | 68 "//components/gcm_driver/common", |
| 70 "//components/json_schema", | 69 "//components/json_schema", |
| 71 "//components/metrics", | 70 "//components/metrics", |
| 72 "//components/metrics:net", | 71 "//components/metrics:net", |
| 73 "//components/omnibox/common", | 72 "//components/omnibox/common", |
| 74 "//components/policy:policy_component_common", | 73 "//components/policy:policy_component_common", |
| 75 "//components/strings", | 74 "//components/strings", |
| 76 "//components/translate/core/common", | 75 "//components/translate/core/common", |
| 77 "//components/url_formatter", | 76 "//components/url_formatter", |
| 78 "//components/variations", | 77 "//components/variations", |
| 79 "//components/version_info", | 78 "//components/version_info", |
| 80 "//content/public/common", | 79 "//content/public/common", |
| 81 "//crypto", | 80 "//crypto", |
| 82 "//extensions/common:common_constants", | 81 "//extensions/common:common_constants", |
| 83 "//gin", | |
| 84 "//google_apis", | |
| 85 "//gpu/command_buffer/service", | |
| 86 "//gpu/config", | |
| 87 "//net", | 82 "//net", |
| 88 "//ppapi/shared_impl", | |
| 89 "//skia", | 83 "//skia", |
| 90 "//third_party/icu", | 84 "//third_party/icu", |
| 91 "//third_party/zlib:zip", | 85 "//third_party/zlib:zip", |
| 92 "//ui/accessibility", | |
| 93 "//ui/base", | |
| 94 "//ui/gfx/ipc", | |
| 95 "//ui/gl", | |
| 96 "//ui/message_center", | |
| 97 "//ui/resources:resources", | 86 "//ui/resources:resources", |
| 98 "//url", | 87 "//url", |
| 99 ] | 88 ] |
| 100 | 89 |
| 101 if (is_ios) { | 90 if (is_ios) { |
| 102 sources += [ | 91 sources += [ |
| 103 # Use this Mac file that was filtered out. | 92 # Use this Mac file that was filtered out. |
| 104 "channel_info_mac.mm", | 93 "channel_info_mac.mm", |
| 105 ] | 94 ] |
| 106 sources -= [ | 95 sources -= [ |
| 107 "resource_usage_reporter_type_converters.cc", | 96 "resource_usage_reporter_type_converters.cc", |
| 108 "resource_usage_reporter_type_converters.h", | 97 "resource_usage_reporter_type_converters.h", |
| 109 ] | 98 ] |
| 110 } else { | 99 } else { |
| 111 # Non-iOS. | 100 # Non-iOS. |
| 112 public_deps += [ | 101 deps += [ |
| 113 ":mojo_bindings", | 102 ":mojo_bindings", |
| 114 "//chrome/common/net", | |
| 115 "//components/visitedlink/common", | 103 "//components/visitedlink/common", |
| 116 "//components/autofill/content/common", | 104 "//components/autofill/content/common", |
| 117 "//components/autofill/core/common", | 105 "//components/autofill/core/common", |
| 118 "//components/password_manager/content/common", | 106 "//components/password_manager/content/common", |
| 119 "//components/password_manager/core/common", | 107 "//components/password_manager/core/common", |
| 120 "//components/signin/core/common", | 108 "//components/signin/core/common", |
| 121 "//components/translate/content/common", | 109 "//components/translate/content/common", |
| 122 "//media", | 110 "//media", |
| 123 "//ipc", | 111 "//ipc", |
| 124 "//third_party/re2", | 112 "//third_party/re2", |
| 113 "//third_party/widevine/cdm:version_h", |
| 114 ] |
| 115 public_deps += [ |
| 116 "//chrome/common/net", |
| 125 "//third_party/mojo/src/mojo/public/cpp/bindings", | 117 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 126 "//third_party/widevine/cdm:version_h", | |
| 127 ] | 118 ] |
| 128 } | 119 } |
| 129 | 120 |
| 130 if (enable_extensions) { | 121 if (enable_extensions) { |
| 131 sources += rebase_path(gypi_values.chrome_common_extensions_sources, | 122 sources += rebase_path(gypi_values.chrome_common_extensions_sources, |
| 132 ".", | 123 ".", |
| 133 "//chrome") | 124 "//chrome") |
| 134 public_deps += [ | 125 deps += [ |
| 135 "//device/usb", | 126 "//device/usb", |
| 136 "//chrome/common/extensions/api", | 127 "//chrome/common/extensions/api", |
| 137 "//extensions/common", | 128 "//extensions/common", |
| 138 "//extensions/common/api", | 129 "//extensions/common/api", |
| 139 "//extensions:extensions_resources", | 130 "//extensions:extensions_resources", |
| 140 "//extensions/strings", | 131 "//extensions/strings", |
| 141 "//media/cast:net", | 132 "//media/cast:net", |
| 142 | |
| 143 # This dependency is for a header used only by extensions code. | |
| 144 "//ui/keyboard:keyboard_with_content", | |
| 145 ] | 133 ] |
| 146 if (is_chromeos) { | 134 if (is_chromeos) { |
| 147 sources += | 135 sources += |
| 148 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, | 136 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, |
| 149 ".", | 137 ".", |
| 150 "//chrome") | 138 "//chrome") |
| 151 } | 139 } |
| 152 } | 140 } |
| 153 | 141 |
| 154 if (is_win || is_mac) { | 142 if (is_win || is_mac) { |
| 155 sources += | 143 sources += |
| 156 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome") | 144 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome") |
| 157 public_deps += [ "//breakpad:client" ] | 145 deps += [ "//breakpad:client" ] |
| 158 } | 146 } |
| 159 if (is_win || is_mac || is_chromeos) { | 147 if (is_win || is_mac || is_chromeos) { |
| 160 sources += rebase_path(gypi_values.chrome_common_networking_private_sources, | 148 sources += rebase_path(gypi_values.chrome_common_networking_private_sources, |
| 161 ".", | 149 ".", |
| 162 "//chrome") | 150 "//chrome") |
| 163 | 151 |
| 164 # networking_private_crypto.cc depends on boringssl. | 152 # networking_private_crypto.cc depends on boringssl. |
| 165 public_deps += [ "//third_party/boringssl" ] | 153 deps += [ "//third_party/boringssl" ] |
| 166 } | 154 } |
| 167 if (is_mac) { | 155 if (is_mac) { |
| 168 sources += | 156 sources += |
| 169 rebase_path(gypi_values.chrome_common_mac_sources, ".", "//chrome") | 157 rebase_path(gypi_values.chrome_common_mac_sources, ".", "//chrome") |
| 170 public_deps += [ ":app_mode_app_support" ] | 158 deps += [ ":app_mode_app_support" ] |
| 171 } | |
| 172 if (is_chromeos) { | |
| 173 public_deps += [ "//chromeos" ] | |
| 174 } | 159 } |
| 175 | 160 |
| 176 if (enable_nacl) { | 161 if (enable_nacl) { |
| 177 public_deps += [ "//components/nacl:nacl_common" ] | 162 deps += [ "//components/nacl:nacl_common" ] |
| 178 } | 163 } |
| 179 | 164 |
| 180 # Printing. | 165 # Printing. |
| 181 if (enable_basic_printing || enable_print_preview) { | 166 if (enable_basic_printing || enable_print_preview) { |
| 182 public_deps += [ | 167 deps += [ |
| 183 "//components/printing/common", | 168 "//components/printing/common", |
| 184 "//printing", | 169 "//printing", |
| 185 ] | 170 ] |
| 186 if (enable_print_preview) { | 171 if (enable_print_preview) { |
| 187 # Full printing support. | 172 # Full printing support. |
| 188 sources += rebase_path(gypi_values.chrome_common_service_process_sources, | 173 sources += rebase_path(gypi_values.chrome_common_service_process_sources, |
| 189 ".", | 174 ".", |
| 190 "//chrome") | 175 "//chrome") |
| 191 } | 176 } |
| 192 } | 177 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 215 # Non-Android. | 200 # Non-Android. |
| 216 sources += | 201 sources += |
| 217 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") | 202 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") |
| 218 } | 203 } |
| 219 | 204 |
| 220 if (is_chromeos) { | 205 if (is_chromeos) { |
| 221 sources -= [ "channel_info_posix.cc" ] | 206 sources -= [ "channel_info_posix.cc" ] |
| 222 } | 207 } |
| 223 | 208 |
| 224 if (is_win) { | 209 if (is_win) { |
| 225 public_deps += [ | 210 deps += [ |
| 226 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. | 211 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. |
| 227 "//third_party/wtl", | 212 "//third_party/wtl", |
| 228 ] | 213 ] |
| 229 } | 214 } |
| 230 | 215 |
| 231 if (enable_mdns) { | 216 if (enable_mdns) { |
| 232 sources += [ "local_discovery/local_discovery_messages.h" ] | 217 sources += [ "local_discovery/local_discovery_messages.h" ] |
| 233 } | 218 } |
| 234 | 219 |
| 235 if (is_mac) { | 220 if (is_mac) { |
| 236 sources -= [ "channel_info_posix.cc" ] | 221 sources -= [ "channel_info_posix.cc" ] |
| 237 public_deps += [ | 222 deps += [ |
| 238 "//third_party/mach_override", | 223 "//third_party/mach_override", |
| 239 "//third_party/google_toolbox_for_mac", | 224 "//third_party/google_toolbox_for_mac", |
| 240 ] | 225 ] |
| 241 } | 226 } |
| 242 | 227 |
| 243 if (enable_plugins) { | 228 if (enable_plugins) { |
| 244 sources += [ | 229 sources += [ |
| 245 "pepper_flash.cc", | 230 "pepper_flash.cc", |
| 246 "pepper_flash.h", | 231 "pepper_flash.h", |
| 247 "ppapi_utils.cc", | 232 "ppapi_utils.cc", |
| 248 "ppapi_utils.h", | 233 "ppapi_utils.h", |
| 249 ] | 234 ] |
| 250 public_deps += [ "//third_party/adobe/flash:flapper_version_h" ] | 235 deps += [ "//third_party/adobe/flash:flapper_version_h" ] |
| 251 } | 236 } |
| 252 if (enable_plugins && enable_extensions) { | 237 if (enable_plugins && enable_extensions) { |
| 253 sources += [ | 238 sources += [ |
| 254 "pepper_permission_util.cc", | 239 "pepper_permission_util.cc", |
| 255 "pepper_permission_util.h", | 240 "pepper_permission_util.h", |
| 256 ] | 241 ] |
| 257 } | 242 } |
| 258 if (!enable_webrtc) { | 243 if (!enable_webrtc) { |
| 259 sources -= [ "media/webrtc_logging_messages.h" ] | 244 sources -= [ "media/webrtc_logging_messages.h" ] |
| 260 } | 245 } |
| 261 if (enable_configuration_policy) { | 246 if (enable_configuration_policy) { |
| 262 public_deps += [ "//components/policy" ] | 247 deps += [ "//components/policy" ] |
| 263 } | 248 } |
| 264 | 249 |
| 265 if (safe_browsing_mode == 1) { | 250 if (safe_browsing_mode == 1) { |
| 266 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 251 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
| 267 ".", | 252 ".", |
| 268 "//chrome") | 253 "//chrome") |
| 269 } | 254 } |
| 270 } | 255 } |
| 271 | 256 |
| 272 process_version("make_chrome_version") { | 257 process_version("make_chrome_version") { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 ":constants", | 358 ":constants", |
| 374 "//base", | 359 "//base", |
| 375 ] | 360 ] |
| 376 } | 361 } |
| 377 | 362 |
| 378 mojom("mojo_bindings") { | 363 mojom("mojo_bindings") { |
| 379 sources = [ | 364 sources = [ |
| 380 "resource_usage_reporter.mojom", | 365 "resource_usage_reporter.mojom", |
| 381 ] | 366 ] |
| 382 } | 367 } |
| OLD | NEW |