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("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 | 9 |
10 about_credits_file = "$target_gen_dir/about_credits.html" | 10 about_credits_file = "$target_gen_dir/about_credits.html" |
(...skipping 22 matching lines...) Expand all Loading... |
33 "//base/allocator", | 33 "//base/allocator", |
34 "//chrome:extra_resources", | 34 "//chrome:extra_resources", |
35 "//chrome:resources", | 35 "//chrome:resources", |
36 "//chrome:strings", | 36 "//chrome:strings", |
37 "//chrome/app:generated_resources_map", | 37 "//chrome/app:generated_resources_map", |
38 "//chrome/app/theme:theme_resources", | 38 "//chrome/app/theme:theme_resources", |
39 "//chrome/browser/net:probe_message_proto", | 39 "//chrome/browser/net:probe_message_proto", |
40 "//chrome/browser/search/suggestions/proto", | 40 "//chrome/browser/search/suggestions/proto", |
41 "//chrome/common", | 41 "//chrome/common", |
42 "//chrome/common/net", | 42 "//chrome/common/net", |
| 43 "//components/cloud_devices/common", |
| 44 "//components/metrics:net", |
| 45 "//components/navigation_metrics", |
| 46 "//components/os_crypt", |
| 47 "//components/policy:policy_component", |
| 48 "//components/query_parser", |
43 "//components/strings", | 49 "//components/strings", |
| 50 "//components/translate:translate_core_browser", |
| 51 "//components/translate:translate_core_common", |
| 52 "//components/user_prefs", |
44 "//content/public/browser", | 53 "//content/public/browser", |
45 "//content/public/common", | 54 "//content/public/common", |
46 "//crypto", | 55 "//crypto", |
47 "//skia", | 56 "//skia", |
48 "//sql", | 57 "//sql", |
49 "//sync", | 58 "//sync", |
50 "//third_party/cacheinvalidation", | 59 "//third_party/cacheinvalidation", |
51 "//third_party/icu", | 60 "//third_party/icu", |
52 "//third_party/libxml", | 61 "//third_party/libxml", |
53 "//third_party/widevine/cdm:version_h", | 62 "//third_party/widevine/cdm:version_h", |
54 "//third_party/zlib", | 63 "//third_party/zlib", |
55 "//third_party/zlib:minizip", | 64 "//third_party/zlib:minizip", |
56 "//third_party/zlib:zip", | 65 "//third_party/zlib:zip", |
57 "//ui/base", | 66 "//ui/base", |
58 "//ui/events", | 67 "//ui/events", |
59 "//ui/gfx", | 68 "//ui/gfx", |
60 "//ui/gfx/geometry", | 69 "//ui/gfx/geometry", |
61 "//ui/strings", | 70 "//ui/strings", |
62 "//ui/resources", | 71 "//ui/resources", |
63 # TODO(GYP) | 72 # TODO(GYP) |
64 #"browser_ui", | 73 #"browser_ui", |
65 #"cert_logger_proto", | 74 #"cert_logger_proto", |
66 #"chrome_resources.gyp:platform_locale_settings", | 75 #"chrome_resources.gyp:platform_locale_settings", |
67 #"in_memory_url_index_cache_proto", | 76 #"in_memory_url_index_cache_proto", |
68 #"../components/components.gyp:autocomplete", | 77 #"../components/components.gyp:autocomplete", |
69 #"../components/components.gyp:autofill_core_browser", | 78 #"../components/components.gyp:autofill_core_browser", |
70 #"../components/components.gyp:bookmarks_browser", | 79 #"../components/components.gyp:bookmarks_browser", |
71 #"../components/components.gyp:captive_portal", | 80 #"../components/components.gyp:captive_portal", |
72 #"../components/components.gyp:cloud_devices_common", | |
73 #"../components/components.gyp:component_metrics_proto", | |
74 #"../components/components.gyp:data_reduction_proxy_browser", | 81 #"../components/components.gyp:data_reduction_proxy_browser", |
75 #"../components/components.gyp:domain_reliability", | 82 #"../components/components.gyp:domain_reliability", |
76 #"../components/components.gyp:favicon_base", | 83 #"../components/components.gyp:favicon_base", |
77 #"../components/components.gyp:favicon_core", | 84 #"../components/components.gyp:favicon_core", |
78 #"../components/components.gyp:feedback_component", | 85 #"../components/components.gyp:feedback_component", |
79 #"../components/components.gyp:gcm_driver", | 86 #"../components/components.gyp:gcm_driver", |
80 #"../components/components.gyp:google_core_browser", | 87 #"../components/components.gyp:google_core_browser", |
81 #"../components/components.gyp:history_core_browser", | 88 #"../components/components.gyp:history_core_browser", |
82 #"../components/components.gyp:history_core_common", | 89 #"../components/components.gyp:history_core_common", |
83 #"../components/components.gyp:infobars_core", | 90 #"../components/components.gyp:infobars_core", |
84 #"../components/components.gyp:invalidation", | 91 #"../components/components.gyp:invalidation", |
85 #"../components/components.gyp:metrics", | |
86 #"../components/components.gyp:metrics_net", | |
87 #"../components/components.gyp:navigation_metrics", | |
88 #"../components/components.gyp:network_time", | 92 #"../components/components.gyp:network_time", |
89 #"../components/components.gyp:omaha_query_params", | 93 #"../components/components.gyp:omaha_query_params", |
90 #"../components/components.gyp:os_crypt", | |
91 #"../components/components.gyp:password_manager_core_browser", | 94 #"../components/components.gyp:password_manager_core_browser", |
92 #"../components/components.gyp:password_manager_core_common", | 95 #"../components/components.gyp:password_manager_core_common", |
93 #"../components/components.gyp:policy_component", | |
94 #"../components/components.gyp:precache_core", | 96 #"../components/components.gyp:precache_core", |
95 #"../components/components.gyp:query_parser", | |
96 #"../components/components.gyp:rappor", | 97 #"../components/components.gyp:rappor", |
97 #"../components/components.gyp:search_engines", | 98 #"../components/components.gyp:search_engines", |
98 #"../components/components.gyp:search_provider_logos", | 99 #"../components/components.gyp:search_provider_logos", |
99 #"../components/components.gyp:signin_core_browser", | 100 #"../components/components.gyp:signin_core_browser", |
100 #"../components/components.gyp:startup_metric_utils", | 101 #"../components/components.gyp:startup_metric_utils", |
101 #"../components/components.gyp:sync_driver", | 102 #"../components/components.gyp:sync_driver", |
102 #"../components/components.gyp:translate_core_browser", | |
103 #"../components/components.gyp:translate_core_common", | |
104 #"../components/components.gyp:url_fixer", | 103 #"../components/components.gyp:url_fixer", |
105 #"../components/components.gyp:user_prefs", | |
106 ## This depends directly on the variations target, rather than just | |
107 ## transitively via the common target because the proto sources need to | |
108 ## be generated before code in this target can start building. | |
109 #"../components/components.gyp:variations", | |
110 #"../components/components.gyp:webdata_common", | 104 #"../components/components.gyp:webdata_common", |
111 #"../courgette/courgette.gyp:courgette_lib", | 105 #"../courgette/courgette.gyp:courgette_lib", |
112 #"../google_apis/google_apis.gyp:google_apis", | 106 #"../google_apis/google_apis.gyp:google_apis", |
113 #"../jingle/jingle.gyp:notifier", | 107 #"../jingle/jingle.gyp:notifier", |
114 #"../third_party/libjingle/libjingle.gyp:libjingle", | 108 #"../third_party/libjingle/libjingle.gyp:libjingle", |
115 #"../ui/message_center/message_center.gyp:message_center", | 109 #"../ui/message_center/message_center.gyp:message_center", |
116 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs", | 110 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs", |
| 111 # Note: variations dependency from GYP build is omitted because we pick it |
| 112 # up via chrome/common, and GN doesn't have the GYP dependency bug that |
| 113 # made it necessary to include here. |
117 ] | 114 ] |
118 | 115 |
119 forward_dependent_configs_from = [ | 116 forward_dependent_configs_from = [ |
120 #"../components/components.gyp:autofill_core_browser", TODO(GYP) | 117 #"../components/components.gyp:autofill_core_browser", TODO(GYP) |
121 "//content/public/browser", | 118 "//content/public/browser", |
122 "//sql", | 119 "//sql", |
123 "//sync", | 120 "//sync", |
124 ] | 121 ] |
125 | 122 |
126 if (!is_ios) { | 123 if (!is_ios) { |
(...skipping 10 matching lines...) Expand all Loading... |
137 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener
ated_resources_map.cc', | 134 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener
ated_resources_map.cc', |
138 | 135 |
139 # TODO(GYP) Also add these nacl_defines to direct dependents. | 136 # TODO(GYP) Also add these nacl_defines to direct dependents. |
140 #defines = nacl_defines | 137 #defines = nacl_defines |
141 | 138 |
142 # TODO(GYP) remove this when the real webrtc target is used below. | 139 # TODO(GYP) remove this when the real webrtc target is used below. |
143 configs += [ "//content:webrtc_stub_config" ] | 140 configs += [ "//content:webrtc_stub_config" ] |
144 | 141 |
145 deps += [ | 142 deps += [ |
146 "//cc", | 143 "//cc", |
| 144 "//chrome/browser/performance_monitor", |
| 145 "//components/keyed_service/content", |
| 146 "//components/url_matcher", |
147 "//components/visitedlink/browser", | 147 "//components/visitedlink/browser", |
148 "//components/visitedlink/common", | 148 "//components/visitedlink/common", |
149 "//net:net_with_v8", | 149 "//net:net_with_v8", |
150 "//third_party/adobe/flash:flapper_version_h", | 150 "//third_party/adobe/flash:flapper_version_h", |
151 "//third_party/expat", | 151 "//third_party/expat", |
152 "//third_party/leveldatabase", | 152 "//third_party/leveldatabase", |
| 153 "//third_party/libaddressinput", |
153 "//third_party/libyuv", | 154 "//third_party/libyuv", |
154 "//third_party/npapi", | 155 "//third_party/npapi", |
155 "//third_party/re2", | 156 "//third_party/re2", |
156 "//third_party/smhasher:cityhash", | 157 "//third_party/smhasher:cityhash", |
157 "//ui/gl", | 158 "//ui/gl", |
158 "//ui/surface", | 159 "//ui/surface", |
| 160 "//v8", |
159 "//webkit:resources", | 161 "//webkit:resources", |
160 "//webkit/browser:storage", | 162 "//webkit/browser:storage", |
161 "//webkit/common", | 163 "//webkit/common", |
162 "//webkit/common:storage", | 164 "//webkit/common:storage", |
163 # TODO(GYP) | 165 # TODO(GYP) |
164 #"apps", | 166 #"apps", |
165 #"browser/performance_monitor/performance_monitor.gyp:performance_monitor"
, | |
166 #"browser_extensions", | 167 #"browser_extensions", |
167 #"common/extensions/api/api.gyp:chrome_api", | 168 #"common/extensions/api/api.gyp:chrome_api", |
168 #"debugger", | 169 #"debugger", |
169 #"installer_util", | 170 #"installer_util", |
170 #"sync_file_system_drive_proto", | 171 #"sync_file_system_drive_proto", |
171 #"sync_file_system_proto", | 172 #"sync_file_system_proto", |
172 #"../components/components.gyp:autofill_content_browser", | 173 #"../components/components.gyp:autofill_content_browser", |
173 #"../components/components.gyp:dom_distiller_content", | 174 #"../components/components.gyp:dom_distiller_content", |
174 #"../components/components.gyp:keyed_service_content", | |
175 #"../components/components.gyp:navigation_interception", | 175 #"../components/components.gyp:navigation_interception", |
176 #"../components/components.gyp:password_manager_content_browser", | 176 #"../components/components.gyp:password_manager_content_browser", |
177 #"../components/components.gyp:precache_content", | 177 #"../components/components.gyp:precache_content", |
178 #"../components/components.gyp:sessions", | 178 #"../components/components.gyp:sessions", |
179 #"../components/components.gyp:storage_monitor", | 179 #"../components/components.gyp:storage_monitor", |
180 #"../components/components.gyp:translate_content_browser", | 180 #"../components/components.gyp:translate_content_browser", |
181 #"../components/components.gyp:url_matcher", | |
182 #"../components/components.gyp:usb_service", | 181 #"../components/components.gyp:usb_service", |
183 #"../components/components.gyp:web_modal", | 182 #"../components/components.gyp:web_modal", |
184 #"../media/cast/cast.gyp:cast_transport", | 183 #"../media/cast/cast.gyp:cast_transport", |
185 #"../media/media.gyp:media", | 184 #"../media/media.gyp:media", |
186 #"../mojo/mojo.gyp:mojo_cpp_bindings", | 185 #"../mojo/mojo.gyp:mojo_cpp_bindings", |
187 #"../mojo/mojo.gyp:mojo_environment_chromium", | 186 #"../mojo/mojo.gyp:mojo_environment_chromium", |
188 #"../mojo/mojo.gyp:mojo_js_bindings", | 187 #"../mojo/mojo.gyp:mojo_js_bindings", |
189 #"../mojo/mojo.gyp:mojo_system_impl", | 188 #"../mojo/mojo.gyp:mojo_system_impl", |
190 ## TODO(tonyg): Remove this dependency (crbug.com/280157). | 189 ## TODO(tonyg): Remove this dependency (crbug.com/280157). |
191 #"../testing/perf/perf_test.gyp:*", | 190 #"../testing/perf/perf_test.gyp:*", |
192 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput", | |
193 # Note: for this one also remove the webrtc_stub_config | 191 # Note: for this one also remove the webrtc_stub_config |
194 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", | 192 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", |
195 #"../ui/web_dialogs/web_dialogs.gyp:web_dialogs", | 193 #"../ui/web_dialogs/web_dialogs.gyp:web_dialogs", |
196 #"../v8/tools/gyp/v8.gyp:v8", | |
197 ] | 194 ] |
198 } else { # iOS | 195 } else { # iOS |
199 sources += rebase_path(gypi_values.chrome_browser_ios_sources, | 196 sources += rebase_path(gypi_values.chrome_browser_ios_sources, |
200 ".", "//chrome") | 197 ".", "//chrome") |
201 deps += [ | 198 deps += [ |
202 "//net", | 199 "//net", |
203 ] | 200 ] |
204 libs += [ | 201 libs += [ |
205 "CoreTelephony.framework", | 202 "CoreTelephony.framework", |
206 "CoreText.framework", | 203 "CoreText.framework", |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 ".", "//chrome") | 306 ".", "//chrome") |
310 deps += [ | 307 deps += [ |
311 "//ppapi:ppapi_ipc", | 308 "//ppapi:ppapi_ipc", |
312 ] | 309 ] |
313 } | 310 } |
314 if (safe_browsing_mode != 0) { | 311 if (safe_browsing_mode != 0) { |
315 sources += rebase_path( | 312 sources += rebase_path( |
316 gypi_values.chrome_browser_basic_safe_browsing_sources, | 313 gypi_values.chrome_browser_basic_safe_browsing_sources, |
317 ".", "//chrome") | 314 ".", "//chrome") |
318 deps += [ | 315 deps += [ |
319 #"safe_browsing_chunk_proto", TODO(GYP) | 316 "//chrome/browser/safe_browsing:chunk_proto", |
320 #"safe_browsing_report_proto", TODO(GYP) | 317 "//chrome/browser/safe_browsing:report_proto", |
321 ] | 318 ] |
322 if (safe_browsing_mode == 1) { | 319 if (safe_browsing_mode == 1) { |
323 sources += rebase_path( | 320 sources += rebase_path( |
324 gypi_values.chrome_browser_full_safe_browsing_sources, | 321 gypi_values.chrome_browser_full_safe_browsing_sources, |
325 ".", "//chrome") | 322 ".", "//chrome") |
326 defines += [ "FULL_SAFE_BROWSING" ] | 323 defines += [ "FULL_SAFE_BROWSING" ] |
327 deps += [ | 324 deps += [ |
328 #"safe_browsing_proto", TODO(GYP) | 325 "//chrome/common/safe_browsing:proto", |
329 ] | 326 ] |
330 } else if (safe_browsing_mode == 2) { | 327 } else if (safe_browsing_mode == 2) { |
331 defines += [ "MOBILE_SAFE_BROWSING" ] | 328 defines += [ "MOBILE_SAFE_BROWSING" ] |
332 } | 329 } |
333 } | 330 } |
334 | 331 |
335 if (is_linux) { | 332 if (is_linux) { |
336 configs += [ "//build/config/linux:udev" ] | 333 configs += [ "//build/config/linux:udev" ] |
337 deps += [ "//device/media_transfer_protocol" ] | 334 deps += [ "//device/media_transfer_protocol" ] |
338 } | 335 } |
(...skipping 12 matching lines...) Expand all Loading... |
351 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, | 348 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, |
352 ".", "//chrome") | 349 ".", "//chrome") |
353 } | 350 } |
354 | 351 |
355 if (use_cups) { | 352 if (use_cups) { |
356 #deps += [ "../printing/printing.gyp:cups" ] TODO(GYP) | 353 #deps += [ "../printing/printing.gyp:cups" ] TODO(GYP) |
357 } | 354 } |
358 if (is_desktop_linux) { | 355 if (is_desktop_linux) { |
359 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, | 356 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, |
360 ".", "//chrome") | 357 ".", "//chrome") |
361 #deps += [ "../build/linux/system.gyp:gnome_keyring" ] TODO(GYP) | 358 configs += [ "//build/config/linux:gnome_keyring" ] |
362 } | 359 } |
363 if (use_aura) { | 360 if (use_aura) { |
364 sources += rebase_path(gypi_values.chrome_browser_aura_sources, | 361 sources += rebase_path(gypi_values.chrome_browser_aura_sources, |
365 ".", "//chrome") | 362 ".", "//chrome") |
366 deps += [ | 363 deps += [ |
367 #"../ui/aura/aura.gyp:aura", TODO(GYP) | 364 "//ui/aura", |
368 #"../ui/compositor/compositor.gyp:compositor", TODO(GYP) | 365 "//ui/compositor", |
369 #"../ui/keyboard/keyboard.gyp:keyboard", TODO(GYP) | 366 #"../ui/keyboard/keyboard.gyp:keyboard", TODO(GYP) |
370 ] | 367 ] |
371 } | 368 } |
372 if (ui_compositor_image_transport) { | 369 if (ui_compositor_image_transport) { |
373 deps += [ "//ui/gl" ] | 370 deps += [ "//ui/gl" ] |
374 } | 371 } |
375 | 372 |
376 if (use_x11) { | 373 if (use_x11) { |
377 sources += rebase_path(gypi_values.chrome_browser_x11_sources, | 374 sources += rebase_path(gypi_values.chrome_browser_x11_sources, |
378 ".", "//chrome") | 375 ".", "//chrome") |
379 if (!is_chromeos) { | 376 if (!is_chromeos) { |
380 deps += [ | 377 configs += [ "//build/config/linux:xscrnsaver" ] |
381 # "../build/linux/system.gyp:xscrnsaver", TODO(GYP) | |
382 ] | |
383 } | 378 } |
384 } | 379 } |
385 if (is_posix && !is_mac && !is_ios) { | 380 if (is_posix && !is_mac && !is_ios) { |
386 sources += [ | 381 sources += [ |
387 "//chrome/app/chrome_breakpad_client.cc", | 382 "//chrome/app/chrome_breakpad_client.cc", |
388 "//chrome/app/chrome_breakpad_client.h", | 383 "//chrome/app/chrome_breakpad_client.h", |
389 ] | 384 ] |
390 deps += [ | 385 deps += [ |
391 #"../components/components.gyp:breakpad_component", TODO(GYP) | 386 #"../components/components.gyp:breakpad_component", TODO(GYP) |
392 #"../components/components.gyp:breakpad_host", TODO(GYP) | 387 #"../components/components.gyp:breakpad_host", TODO(GYP) |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 448 |
454 if (is_android) { | 449 if (is_android) { |
455 sources += rebase_path(gypi_values.chrome_browser_android_sources, | 450 sources += rebase_path(gypi_values.chrome_browser_android_sources, |
456 ".", "//chrome") | 451 ".", "//chrome") |
457 deps += [ | 452 deps += [ |
458 #"../components/components.gyp:cdm_browser", TODO(GYP) | 453 #"../components/components.gyp:cdm_browser", TODO(GYP) |
459 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP) | 454 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP) |
460 #"chrome_browser_jni_headers", TODO(GYP) | 455 #"chrome_browser_jni_headers", TODO(GYP) |
461 ] | 456 ] |
462 deps -= [ | 457 deps -= [ |
| 458 "//third_party/libaddressinput", |
463 #"../components/components.gyp:feedback_component", TODO(GYP) | 459 #"../components/components.gyp:feedback_component", TODO(GYP) |
464 #"../components/components.gyp:storage_monitor", TODO(GYP) | 460 #"../components/components.gyp:storage_monitor", TODO(GYP) |
465 #"../components/components.gyp:usb_service", TODO(GYP) | 461 #"../components/components.gyp:usb_service", TODO(GYP) |
466 #"../components/components.gyp:web_modal", TODO(GYP) | 462 #"../components/components.gyp:web_modal", TODO(GYP) |
467 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput", TO
DO(GYP) | |
468 ] | 463 ] |
469 } else { | 464 } else { |
470 sources += rebase_path(gypi_values.chrome_browser_non_android_sources, | 465 sources += rebase_path(gypi_values.chrome_browser_non_android_sources, |
471 ".", "//chrome") | 466 ".", "//chrome") |
472 } | 467 } |
473 | 468 |
474 if (is_mac) { | 469 if (is_mac) { |
475 deps += [ | 470 deps += [ |
476 #"../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_
toolbox_for_mac", TODO(GYP) | 471 #"../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_
toolbox_for_mac", TODO(GYP) |
477 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP) | 472 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP) |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 # TODO(GYP) write internal action | 654 # TODO(GYP) write internal action |
660 if (false) { #if (is_chrome_branded) { | 655 if (false) { #if (is_chrome_branded) { |
661 action("chrome_internal_resources_gen") { | 656 action("chrome_internal_resources_gen") { |
662 # TODO(GYP) | 657 # TODO(GYP) |
663 } | 658 } |
664 } else { | 659 } else { |
665 group("chrome_internal_resources_gen") { | 660 group("chrome_internal_resources_gen") { |
666 # Empty placeholder. | 661 # Empty placeholder. |
667 } | 662 } |
668 } | 663 } |
OLD | NEW |