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 24 matching lines...) Expand all Loading... |
35 "//base:i18n", | 35 "//base:i18n", |
36 "//base:prefs", | 36 "//base:prefs", |
37 "//base:base_static", | 37 "//base:base_static", |
38 "//chrome:resources", | 38 "//chrome:resources", |
39 "//chrome:strings", | 39 "//chrome:strings", |
40 "//chrome/app/theme:theme_resources", | 40 "//chrome/app/theme:theme_resources", |
41 "//chrome/common:constants", | 41 "//chrome/common:constants", |
42 "//chrome/common/net", | 42 "//chrome/common/net", |
43 "//chrome/common/safe_browsing:proto", | 43 "//chrome/common/safe_browsing:proto", |
44 "//components/cloud_devices/common", | 44 "//components/cloud_devices/common", |
| 45 "//components/json_schema", |
45 "//components/metrics", | 46 "//components/metrics", |
46 "//components/policy:policy_component_common", | 47 "//components/policy:policy_component_common", |
47 "//components/translate/core/common", | 48 "//components/translate/core/common", |
48 "//components/variations", | 49 "//components/variations", |
49 "//content/public/common", | 50 "//content/public/common", |
50 "//crypto", | 51 "//crypto", |
51 "//extensions:extensions_resources", | 52 "//extensions:extensions_resources", |
52 "//extensions/strings", | 53 "//extensions/strings", |
53 "//net", | 54 "//net", |
54 "//skia", | 55 "//skia", |
55 "//third_party/icu", | 56 "//third_party/icu", |
56 "//third_party/libxml", | 57 "//third_party/libxml", |
57 "//third_party/sqlite", | 58 "//third_party/sqlite", |
58 "//third_party/zlib:zip", | 59 "//third_party/zlib:zip", |
59 "//ui/resources:resources", | 60 "//ui/resources:resources", |
60 "//url", | 61 "//url", |
61 #":installer_util", TODO(GYP) | 62 #":installer_util", TODO(GYP) |
62 #"//components/json_schema", TODO(GYP) | |
63 #"//media/cast/cast.gyp:cast_transport", TODO(GYP) | 63 #"//media/cast/cast.gyp:cast_transport", TODO(GYP) |
64 ] | 64 ] |
65 | 65 |
66 if (!is_ios) { | 66 if (is_ios) { |
| 67 sources += [ |
| 68 # Use this Mac file that was filtered out. |
| 69 "chrome_version_info_mac.mm", |
| 70 ] |
| 71 } else { |
| 72 # Non-iOS. |
67 deps += [ | 73 deps += [ |
68 "//chrome/common/extensions/api", | 74 "//chrome/common/extensions/api", |
69 "//components/visitedlink/common", | 75 "//components/visitedlink/common", |
70 "//components/autofill/content/common", | 76 "//components/autofill/content/common", |
71 "//components/autofill/core/common", | 77 "//components/autofill/core/common", |
| 78 "//components/password_manager/core/common", |
| 79 "//components/signin/core/common", |
72 "//components/translate/content/common", | 80 "//components/translate/content/common", |
73 "//extensions/common/api", | 81 "//extensions/common/api", |
74 "//ipc", | 82 "//ipc", |
75 "//third_party/adobe/flash:flapper_version_h", | 83 "//third_party/adobe/flash:flapper_version_h", |
76 "//third_party/re2", | 84 "//third_party/re2", |
77 "//third_party/widevine/cdm:version_h", | 85 "//third_party/widevine/cdm:version_h", |
78 #'<(DEPTH)/components/components.gyp:password_manager_core_common', TODO(
GYP) | |
79 #'<(DEPTH)/components/components.gyp:signin_core_common', TODO(GYP) | |
80 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) | |
81 #'<(DEPTH)/extensions/common/api/api.gyp:extensions_api', TODO(GYP) | |
82 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) | 86 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) |
83 ] | 87 ] |
84 } | 88 } |
85 | 89 |
| 90 if (enable_extensions) { |
| 91 sources += rebase_path( |
| 92 gypi_values.chrome_common_extensions_sources, |
| 93 ".", "//chrome") |
| 94 deps += [ |
| 95 "//device/bluetooth", |
| 96 "//device/usb", |
| 97 ] |
| 98 } |
| 99 |
| 100 if (is_win || is_mac) { |
| 101 sources += rebase_path( |
| 102 gypi_values.chrome_common_win_mac_sources, |
| 103 ".", "//chrome") |
| 104 if (use_openssl) { |
| 105 sources -= [ |
| 106 "extensions/api/networking_private/networking_private_crypto_nss.cc", |
| 107 ] |
| 108 } else { |
| 109 sources -= [ |
| 110 "extensions/api/networking_private/networking_private_crypto_openssl.cc"
, |
| 111 ] |
| 112 } |
| 113 } |
| 114 if (is_mac) { |
| 115 sources += rebase_path( |
| 116 gypi_values.chrome_common_mac_sources, |
| 117 ".", "//chrome") |
| 118 } |
| 119 |
86 if (enable_nacl) { | 120 if (enable_nacl) { |
87 deps += [ | 121 deps += [ |
88 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) | 122 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) |
89 ] | 123 ] |
90 sources += [ | 124 sources += [ |
91 "extensions/manifest_handlers/nacl_modules_handler.cc", | 125 "extensions/manifest_handlers/nacl_modules_handler.cc", |
92 "extensions/manifest_handlers/nacl_modules_handler.h", | 126 "extensions/manifest_handlers/nacl_modules_handler.h", |
93 ] | 127 ] |
94 } | 128 } |
95 | 129 |
| 130 # Printing. |
| 131 if (printing_mode == 0) { |
| 132 sources -= [ |
| 133 "print_messages.cc", |
| 134 "print_messages.h", |
| 135 ] |
| 136 } else { |
| 137 deps += [ "//printing" ] |
| 138 if (printing_mode == 1) { |
| 139 # Full printing support. |
| 140 sources += rebase_path( |
| 141 gypi_values.chrome_common_service_process_sources, |
| 142 ".", "//chrome") |
| 143 } |
| 144 } |
| 145 |
| 146 if (enable_service_discovery) { |
| 147 sources += [ |
| 148 "local_discovery/service_discovery_client.cc", |
| 149 "local_discovery/service_discovery_client.h", |
| 150 ] |
| 151 } |
| 152 if (enable_mdns) { |
| 153 sources += [ |
| 154 "local_discovery/service_discovery_client_impl.cc", |
| 155 "local_discovery/service_discovery_client_impl.h", |
| 156 ] |
| 157 } |
| 158 |
| 159 if (is_android) { |
| 160 sources -= [ |
| 161 "badge_util.cc", |
| 162 "chrome_version_info_posix.cc", |
| 163 "extensions/api/extension_action/browser_action_handler.cc", |
| 164 "extensions/api/extension_action/page_action_handler.cc", |
| 165 "extensions/api/spellcheck/spellcheck_handler.cc", |
| 166 "extensions/manifest_handlers/minimum_chrome_version_checker.cc", |
| 167 "icon_with_badge_image_source.cc", |
| 168 "media_galleries/metadata_types.h", |
| 169 "net/url_util.cc", |
| 170 "spellcheck_common.cc", |
| 171 ] |
| 172 } else { |
| 173 # Non-Android. |
| 174 sources += rebase_path( |
| 175 gypi_values.chrome_common_importer_sources, |
| 176 ".", "//chrome") |
| 177 } |
| 178 |
| 179 if (is_win) { |
| 180 deps += [ "//third_party/wtl" ] |
| 181 } |
| 182 |
| 183 if (enable_mdns) { |
| 184 sources += [ "local_discovery/local_discovery_messages.h" ] |
| 185 } |
| 186 |
| 187 if (is_chromeos) { |
| 188 sources -= [ "chrome_version_info_linux.cc" ] |
| 189 } |
| 190 |
| 191 if (is_mac) { |
| 192 sources -= [ |
| 193 "child_process_logging_posix.cc", |
| 194 "chrome_version_info_posix.cc", |
| 195 ] |
| 196 deps += [ |
| 197 "//third_party/mach_override", |
| 198 #'../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_
toolbox_for_mac', TODO(GYP) |
| 199 ] |
| 200 } |
| 201 |
| 202 if (enable_remoting) { |
| 203 #deps += [ '../remoting/remoting.gyp:remoting_client_plugin' ] TODO(GYP) |
| 204 } |
| 205 if (!enable_plugins) { |
| 206 sources -= [ "pepper_permission_util.cc" ] |
| 207 } |
| 208 if (!enable_webrtc) { |
| 209 sources -= [ "media/webrtc_logging_messages.h" ] |
| 210 } |
| 211 if (enable_configuration_policy) { |
| 212 deps += [ "//components/policy" ] |
| 213 } |
| 214 |
96 if (safe_browsing_mode == 1) { | 215 if (safe_browsing_mode == 1) { |
97 defines += [ "FULL_SAFE_BROWSING" ] | 216 defines += [ "FULL_SAFE_BROWSING" ] |
98 sources += rebase_path( | 217 sources += rebase_path( |
99 gypi_values.chrome_common_full_safe_browsing_sources, | 218 gypi_values.chrome_common_full_safe_browsing_sources, |
100 ".", "//chrome") | 219 ".", "//chrome") |
101 } | 220 } |
102 if (safe_browsing_mode == 2) { | 221 if (safe_browsing_mode == 2) { |
103 defines += [ "MOBILE_SAFE_BROWSING" ] | 222 defines += [ "MOBILE_SAFE_BROWSING" ] |
104 } | 223 } |
105 } | 224 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 "pref_font_webkit_names.h", | 285 "pref_font_webkit_names.h", |
167 "pref_names.cc", | 286 "pref_names.cc", |
168 "pref_names.h", | 287 "pref_names.h", |
169 "widevine_cdm_constants.cc", | 288 "widevine_cdm_constants.cc", |
170 "widevine_cdm_constants.h", | 289 "widevine_cdm_constants.h", |
171 ] | 290 ] |
172 | 291 |
173 deps = [ | 292 deps = [ |
174 "//base", | 293 "//base", |
175 "//base/third_party/dynamic_annotations", | 294 "//base/third_party/dynamic_annotations", |
| 295 "//components/bookmarks/common", |
176 "//third_party/widevine/cdm:version_h", | 296 "//third_party/widevine/cdm:version_h", |
177 #'../components/components.gyp:bookmarks_common', TODO(GYP) | |
178 ] | 297 ] |
179 | 298 |
180 if (enable_nacl) { | 299 if (enable_nacl) { |
181 deps += [ | 300 deps += [ |
182 #'../components/nacl.gyp:nacl_switches', TODO(GYP) | 301 #'../components/nacl.gyp:nacl_switches', TODO(GYP) |
183 ] | 302 ] |
184 } | 303 } |
185 } | 304 } |
OLD | NEW |