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" |
11 additional_modules_list_file = | 11 additional_modules_list_file = |
12 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" | 12 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
13 | 13 |
| 14 # TODO(brettw) uncomment this when this target compiles. |
14 if (false) { | 15 if (false) { |
15 | 16 |
16 #gypi_values = exec_script( | 17 gypi_values = exec_script( |
17 # "//build/gypi_to_gn.py", | 18 "//build/gypi_to_gn.py", |
18 # [ rebase_path("../chrome_browser.gypi") ], | 19 [ rebase_path("../chrome_browser.gypi") ], |
19 # "scope", | 20 "scope", |
20 # [ "../chrome_browser.gypi" ]) | 21 [ "../chrome_browser.gypi" ]) |
21 | 22 |
22 static_library("browser") { | 23 static_library("browser") { |
23 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 24 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
24 defines = [] | 25 defines = [] |
25 sources = [] | 26 sources = [] |
26 libs = [] | 27 libs = [] |
27 ldflags = [] | 28 ldflags = [] |
28 | 29 |
29 # iOS/non-iOS shared deps. New dependencies should generally be added in the | 30 # iOS/non-iOS shared deps. New dependencies should generally be added in the |
30 # non-iOS deps below. | 31 # non-iOS deps below. |
31 deps = [ | 32 deps = [ |
32 "//base/allocator", | 33 "//base/allocator", |
33 "//chrome:extra_resources", | 34 "//chrome:extra_resources", |
34 "//chrome:resources", | 35 "//chrome:resources", |
35 "//chrome:strings", | 36 "//chrome:strings", |
| 37 "//chrome/app:generated_resources_map", |
| 38 "//chrome/app/theme:theme_resources", |
| 39 "//chrome/browser/net:probe_message_proto", |
| 40 "//chrome/browser/search/suggestions/proto", |
36 "//chrome/common", | 41 "//chrome/common", |
37 "//chrome/common/net", | 42 "//chrome/common/net", |
| 43 "//components/strings", |
38 "//content/public/browser", | 44 "//content/public/browser", |
39 "//content/public/common", | 45 "//content/public/common", |
40 "//crypto", | 46 "//crypto", |
41 "//skia", | 47 "//skia", |
42 "//sql", | 48 "//sql", |
43 "//sync", | 49 "//sync", |
| 50 "//third_party/cacheinvalidation", |
44 "//third_party/icu", | 51 "//third_party/icu", |
45 "//third_party/libxml", | 52 "//third_party/libxml", |
46 "//third_party/widevine/cdm:version_h", | 53 "//third_party/widevine/cdm:version_h", |
47 "//third_party/zlib", | 54 "//third_party/zlib", |
48 "//third_party/zlib:minizip", | 55 "//third_party/zlib:minizip", |
49 "//third_party/zlib:zip", | 56 "//third_party/zlib:zip", |
50 "//ui/base", | 57 "//ui/base", |
51 "//ui/events", | 58 "//ui/events", |
52 "//ui/gfx", | 59 "//ui/gfx", |
53 "//ui/gfx/geometry", | 60 "//ui/gfx/geometry", |
54 "//ui/strings", | 61 "//ui/strings", |
| 62 "//ui/resources", |
55 # TODO(GYP) | 63 # TODO(GYP) |
56 #"browser_ui", | 64 #"browser_ui", |
57 #"cert_logger_proto", | 65 #"cert_logger_proto", |
58 #"chrome_resources.gyp:chrome_strings_map", | |
59 #"chrome_resources.gyp:platform_locale_settings", | 66 #"chrome_resources.gyp:platform_locale_settings", |
60 #"chrome_resources.gyp:theme_resources", | |
61 #"in_memory_url_index_cache_proto", | 67 #"in_memory_url_index_cache_proto", |
62 #"probe_message_proto", | |
63 #"suggestions_proto", | |
64 #"../components/components.gyp:autocomplete", | 68 #"../components/components.gyp:autocomplete", |
65 #"../components/components.gyp:autofill_core_browser", | 69 #"../components/components.gyp:autofill_core_browser", |
66 #"../components/components.gyp:bookmarks_browser", | 70 #"../components/components.gyp:bookmarks_browser", |
67 #"../components/components.gyp:captive_portal", | 71 #"../components/components.gyp:captive_portal", |
68 #"../components/components.gyp:cloud_devices_common", | 72 #"../components/components.gyp:cloud_devices_common", |
69 #"../components/components.gyp:component_metrics_proto", | 73 #"../components/components.gyp:component_metrics_proto", |
70 #"../components/components.gyp:data_reduction_proxy_browser", | 74 #"../components/components.gyp:data_reduction_proxy_browser", |
71 #"../components/components.gyp:domain_reliability", | 75 #"../components/components.gyp:domain_reliability", |
72 #"../components/components.gyp:favicon_base", | 76 #"../components/components.gyp:favicon_base", |
73 #"../components/components.gyp:favicon_core", | 77 #"../components/components.gyp:favicon_core", |
(...skipping 18 matching lines...) Expand all Loading... |
92 #"../components/components.gyp:rappor", | 96 #"../components/components.gyp:rappor", |
93 #"../components/components.gyp:search_engines", | 97 #"../components/components.gyp:search_engines", |
94 #"../components/components.gyp:search_provider_logos", | 98 #"../components/components.gyp:search_provider_logos", |
95 #"../components/components.gyp:signin_core_browser", | 99 #"../components/components.gyp:signin_core_browser", |
96 #"../components/components.gyp:startup_metric_utils", | 100 #"../components/components.gyp:startup_metric_utils", |
97 #"../components/components.gyp:sync_driver", | 101 #"../components/components.gyp:sync_driver", |
98 #"../components/components.gyp:translate_core_browser", | 102 #"../components/components.gyp:translate_core_browser", |
99 #"../components/components.gyp:translate_core_common", | 103 #"../components/components.gyp:translate_core_common", |
100 #"../components/components.gyp:url_fixer", | 104 #"../components/components.gyp:url_fixer", |
101 #"../components/components.gyp:user_prefs", | 105 #"../components/components.gyp:user_prefs", |
102 #"../components/components_strings.gyp:components_strings", | |
103 ## This depends directly on the variations target, rather than just | 106 ## This depends directly on the variations target, rather than just |
104 ## transitively via the common target because the proto sources need to | 107 ## transitively via the common target because the proto sources need to |
105 ## be generated before code in this target can start building. | 108 ## be generated before code in this target can start building. |
106 #"../components/components.gyp:variations", | 109 #"../components/components.gyp:variations", |
107 #"../components/components.gyp:webdata_common", | 110 #"../components/components.gyp:webdata_common", |
108 #"../courgette/courgette.gyp:courgette_lib", | 111 #"../courgette/courgette.gyp:courgette_lib", |
109 #"../google_apis/google_apis.gyp:google_apis", | 112 #"../google_apis/google_apis.gyp:google_apis", |
110 #"../jingle/jingle.gyp:notifier", | 113 #"../jingle/jingle.gyp:notifier", |
111 #"../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation", | |
112 #"../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_p
roto_cpp", | |
113 #"../third_party/libjingle/libjingle.gyp:libjingle", | 114 #"../third_party/libjingle/libjingle.gyp:libjingle", |
114 #"../ui/message_center/message_center.gyp:message_center", | 115 #"../ui/message_center/message_center.gyp:message_center", |
115 #"../ui/resources/ui_resources.gyp:ui_resources", | |
116 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs", | 116 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs", |
117 ] | 117 ] |
118 | 118 |
119 forward_dependent_configs_from = [ | 119 forward_dependent_configs_from = [ |
120 #"../components/components.gyp:autofill_core_browser", TODO(GYP) | 120 #"../components/components.gyp:autofill_core_browser", TODO(GYP) |
121 "//content/public/browser", | 121 "//content/public/browser", |
122 "//sql", | 122 "//sql", |
123 "//sync", | 123 "//sync", |
124 ] | 124 ] |
125 | 125 |
126 if (!is_ios) { | 126 if (!is_ios) { |
127 sources += rebase_path(gypi_values.chrome_browser_non_ios_sources, | 127 sources += rebase_path(gypi_values.chrome_browser_non_ios_sources, |
128 ".", "//chrome") | 128 ".", "//chrome") |
129 #TODO(GYP) Add these sources: | 129 #TODO(GYP) Add these sources: |
130 # # These files are generated by GRIT. | 130 # # These files are generated by GRIT. |
131 # '<(grit_out_dir)/grit/component_extension_resources_map.cc', | 131 # '<(grit_out_dir)/grit/component_extension_resources_map.cc', |
132 # '<(grit_out_dir)/grit/theme_resources_map.cc', | 132 # '<(grit_out_dir)/grit/theme_resources_map.cc', |
133 # '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/grit/ui_resources_map.c
c', | 133 # '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/grit/ui_resources_map.c
c', |
134 # | 134 # |
135 # # This file is generated by | 135 # # This file is generated by |
136 # # chrome/browser/metrics/variations/generate_resources_map.py | 136 # # chrome/browser/metrics/variations/generate_resources_map.py |
137 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener
ated_resources_map.cc', | 137 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener
ated_resources_map.cc', |
138 | 138 |
139 # TODO(GYP) Also add these nacl_defines to direct dependents. | 139 # TODO(GYP) Also add these nacl_defines to direct dependents. |
140 #defines = nacl_defines | 140 #defines = nacl_defines |
| 141 |
| 142 # TODO(GYP) remove this when the real webrtc target is used below. |
| 143 configs += [ "//content:webrtc_stub_config" ] |
| 144 |
141 deps += [ | 145 deps += [ |
142 "//cc", | 146 "//cc", |
143 "//components/visitedlink/browser", | 147 "//components/visitedlink/browser", |
144 "//components/visitedlink/common", | 148 "//components/visitedlink/common", |
145 "//net:net_with_v8", | 149 "//net:net_with_v8", |
146 "//third_party/adobe/flash:flapper_version_h", | 150 "//third_party/adobe/flash:flapper_version_h", |
147 "//third_party/expat", | 151 "//third_party/expat", |
148 "//third_party/leveldatabase", | 152 "//third_party/leveldatabase", |
149 "//third_party/libyuv", | 153 "//third_party/libyuv", |
150 "//third_party/npapi", | 154 "//third_party/npapi", |
(...skipping 28 matching lines...) Expand all Loading... |
179 #"../components/components.gyp:web_modal", | 183 #"../components/components.gyp:web_modal", |
180 #"../media/cast/cast.gyp:cast_transport", | 184 #"../media/cast/cast.gyp:cast_transport", |
181 #"../media/media.gyp:media", | 185 #"../media/media.gyp:media", |
182 #"../mojo/mojo.gyp:mojo_cpp_bindings", | 186 #"../mojo/mojo.gyp:mojo_cpp_bindings", |
183 #"../mojo/mojo.gyp:mojo_environment_chromium", | 187 #"../mojo/mojo.gyp:mojo_environment_chromium", |
184 #"../mojo/mojo.gyp:mojo_js_bindings", | 188 #"../mojo/mojo.gyp:mojo_js_bindings", |
185 #"../mojo/mojo.gyp:mojo_system_impl", | 189 #"../mojo/mojo.gyp:mojo_system_impl", |
186 ## TODO(tonyg): Remove this dependency (crbug.com/280157). | 190 ## TODO(tonyg): Remove this dependency (crbug.com/280157). |
187 #"../testing/perf/perf_test.gyp:*", | 191 #"../testing/perf/perf_test.gyp:*", |
188 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput", | 192 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput", |
| 193 # Note: for this one also remove the webrtc_stub_config |
189 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", | 194 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", |
190 #"../ui/web_dialogs/web_dialogs.gyp:web_dialogs", | 195 #"../ui/web_dialogs/web_dialogs.gyp:web_dialogs", |
191 #"../v8/tools/gyp/v8.gyp:v8", | 196 #"../v8/tools/gyp/v8.gyp:v8", |
192 ] | 197 ] |
193 } else { # iOS | 198 } else { # iOS |
194 sources += rebase_path(gypi_values.chrome_browser_ios_sources, | 199 sources += rebase_path(gypi_values.chrome_browser_ios_sources, |
195 ".", "//chrome") | 200 ".", "//chrome") |
196 deps += [ | 201 deps += [ |
197 "//net", | 202 "//net", |
198 ] | 203 ] |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 266 } |
262 # ["debug_devtools==1", { TODO(GYP) | 267 # ["debug_devtools==1", { TODO(GYP) |
263 # "defines": [ | 268 # "defines": [ |
264 # "DEBUG_DEVTOOLS=1", | 269 # "DEBUG_DEVTOOLS=1", |
265 # ], | 270 # ], |
266 if (enable_configuration_policy) { | 271 if (enable_configuration_policy) { |
267 sources += rebase_path( | 272 sources += rebase_path( |
268 gypi_values.chrome_browser_policy_shared_with_ios_sources, | 273 gypi_values.chrome_browser_policy_shared_with_ios_sources, |
269 ".", "//chrome") | 274 ".", "//chrome") |
270 deps += [ | 275 deps += [ |
271 #"../components/components.gyp:cloud_policy_proto", TODO(GYP) | 276 "//components/policy/proto", |
272 #"../components/components.gyp:policy", TODO(GYP) | 277 #"../components/components.gyp:policy", TODO(GYP) |
273 ] | 278 ] |
274 if (!is_ios) { | 279 if (!is_ios) { |
275 sources += rebase_path( | 280 sources += rebase_path( |
276 gypi_values.chrome_browser_policy_non_ios_sources, | 281 gypi_values.chrome_browser_policy_non_ios_sources, |
277 ".", "//chrome") | 282 ".", "//chrome") |
278 } | 283 } |
279 if (!is_chromeos) { | 284 if (!is_chromeos) { |
280 sources += rebase_path( | 285 sources += rebase_path( |
281 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources
, | 286 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources
, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 defines += [ "FULL_SAFE_BROWSING" ] | 326 defines += [ "FULL_SAFE_BROWSING" ] |
322 deps += [ | 327 deps += [ |
323 #"safe_browsing_proto", TODO(GYP) | 328 #"safe_browsing_proto", TODO(GYP) |
324 ] | 329 ] |
325 } else if (safe_browsing_mode == 2) { | 330 } else if (safe_browsing_mode == 2) { |
326 defines += [ "MOBILE_SAFE_BROWSING" ] | 331 defines += [ "MOBILE_SAFE_BROWSING" ] |
327 } | 332 } |
328 } | 333 } |
329 | 334 |
330 if (is_linux) { | 335 if (is_linux) { |
331 deps += [ | 336 configs += [ "//build/config/linux:udev" ] |
332 #"../build/linux/system.gyp:udev", TODO(GYP) | 337 deps += [ "//device/media_transfer_protocol" ] |
333 #"../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_file_e
ntry_proto", TODO(GYP) | |
334 #"../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_storag
e_info_proto", TODO(GYP) | |
335 #"../device/media_transfer_protocol/media_transfer_protocol.gyp:device_med
ia_transfer_protocol", TODO(GYP) | |
336 ] | |
337 } | 338 } |
338 if (is_linux && !is_chromeos) { | 339 if (is_linux && !is_chromeos) { |
339 deps += [ | 340 deps += [ "//build/config/linux:libspeechd" ] |
340 # "../build/linux/system.gyp:libspeechd", TODO(GYP) | |
341 ] | |
342 } | 341 } |
343 | 342 |
344 if (is_chromeos) { | 343 if (is_chromeos) { |
345 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, | 344 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
346 ".", "//chrome") | 345 ".", "//chrome") |
347 deps += [ | 346 deps += [ |
348 #"browser_chromeos", TODO(GYP) | 347 #"browser_chromeos", TODO(GYP) |
349 ] | 348 ] |
350 } else { | 349 } else { |
351 # Non-ChromeOS. | 350 # Non-ChromeOS. |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 # TODO(GYP) write internal action | 659 # TODO(GYP) write internal action |
661 if (false) { #if (is_chrome_branded) { | 660 if (false) { #if (is_chrome_branded) { |
662 action("chrome_internal_resources_gen") { | 661 action("chrome_internal_resources_gen") { |
663 # TODO(GYP) | 662 # TODO(GYP) |
664 } | 663 } |
665 } else { | 664 } else { |
666 group("chrome_internal_resources_gen") { | 665 group("chrome_internal_resources_gen") { |
667 # Empty placeholder. | 666 # Empty placeholder. |
668 } | 667 } |
669 } | 668 } |
OLD | NEW |