Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: chrome/browser/BUILD.gn

Issue 356303002: First pass on adding a chrome/browser GN target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
6 import("//build/config/features.gni")
7 import("//build/config/ui.gni")
5 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
6 9
7 about_credits_file = "$target_gen_dir/about_credits.html" 10 about_credits_file = "$target_gen_dir/about_credits.html"
8 additional_modules_list_file = 11 additional_modules_list_file =
9 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" 12 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
10 13
14 if (false) {
15
16 #gypi_values = exec_script(
17 # "//build/gypi_to_gn.py",
18 # [ rebase_path("../chrome_browser.gypi") ],
19 # "scope",
20 # [ "../chrome_browser.gypi" ])
21
22 static_library("browser") {
23 configs += [ "//build/config/compiler:wexit_time_destructors" ]
24 defines = []
25 sources = []
26 libs = []
27 ldflags = []
28
29 # iOS/non-iOS shared deps. New dependencies should generally be added in the
30 # non-iOS deps below.
31 deps = [
32 "//base/allocator",
33 "//chrome:extra_resources",
34 "//chrome:resources",
35 "//chrome:strings",
36 "//chrome/common",
37 "//chrome/common/net",
38 "//content/public/browser",
39 "//content/public/common",
40 "//crypto",
41 "//skia",
42 "//sql",
43 "//sync",
44 "//third_party/icu",
45 "//third_party/libxml",
46 "//third_party/widevine/cdm:version_h",
47 "//third_party/zlib",
48 "//third_party/zlib:minizip",
49 "//third_party/zlib:zip",
50 "//ui/base",
51 "//ui/events",
52 "//ui/gfx",
53 "//ui/gfx/geometry",
54 "//ui/strings",
55 # TODO(GYP)
56 #"browser_ui",
57 #"cert_logger_proto",
58 #"chrome_resources.gyp:chrome_strings_map",
59 #"chrome_resources.gyp:platform_locale_settings",
60 #"chrome_resources.gyp:theme_resources",
61 #"in_memory_url_index_cache_proto",
62 #"probe_message_proto",
63 #"suggestions_proto",
64 #"../components/components.gyp:autocomplete",
65 #"../components/components.gyp:autofill_core_browser",
66 #"../components/components.gyp:bookmarks_browser",
67 #"../components/components.gyp:captive_portal",
68 #"../components/components.gyp:cloud_devices_common",
69 #"../components/components.gyp:component_metrics_proto",
70 #"../components/components.gyp:data_reduction_proxy_browser",
71 #"../components/components.gyp:domain_reliability",
72 #"../components/components.gyp:favicon_base",
73 #"../components/components.gyp:favicon_core",
74 #"../components/components.gyp:feedback_component",
75 #"../components/components.gyp:gcm_driver",
76 #"../components/components.gyp:google_core_browser",
77 #"../components/components.gyp:history_core_browser",
78 #"../components/components.gyp:history_core_common",
79 #"../components/components.gyp:infobars_core",
80 #"../components/components.gyp:invalidation",
81 #"../components/components.gyp:metrics",
82 #"../components/components.gyp:metrics_net",
83 #"../components/components.gyp:navigation_metrics",
84 #"../components/components.gyp:network_time",
85 #"../components/components.gyp:omaha_query_params",
86 #"../components/components.gyp:os_crypt",
87 #"../components/components.gyp:password_manager_core_browser",
88 #"../components/components.gyp:password_manager_core_common",
89 #"../components/components.gyp:policy_component",
90 #"../components/components.gyp:precache_core",
91 #"../components/components.gyp:query_parser",
92 #"../components/components.gyp:rappor",
93 #"../components/components.gyp:search_engines",
94 #"../components/components.gyp:search_provider_logos",
95 #"../components/components.gyp:signin_core_browser",
96 #"../components/components.gyp:startup_metric_utils",
97 #"../components/components.gyp:sync_driver",
98 #"../components/components.gyp:translate_core_browser",
99 #"../components/components.gyp:translate_core_common",
100 #"../components/components.gyp:url_fixer",
101 #"../components/components.gyp:user_prefs",
102 #"../components/components_strings.gyp:components_strings",
103 ## This depends directly on the variations target, rather than just
104 ## transitively via the common target because the proto sources need to
105 ## be generated before code in this target can start building.
106 #"../components/components.gyp:variations",
107 #"../components/components.gyp:webdata_common",
108 #"../courgette/courgette.gyp:courgette_lib",
109 #"../google_apis/google_apis.gyp:google_apis",
110 #"../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 #"../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",
117 ]
118
119 forward_dependent_configs_from = [
120 #"../components/components.gyp:autofill_core_browser", TODO(GYP)
121 "//content/public/browser",
122 "//sql",
123 "//sync",
124 ]
125
126 if (!is_ios) {
127 sources += rebase_path(gypi_values.chrome_browser_non_ios_sources,
128 ".", "//chrome")
129 #TODO(GYP) Add these sources:
130 # # These files are generated by GRIT.
131 # '<(grit_out_dir)/grit/component_extension_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',
134 #
135 # # This file is generated by
136 # # chrome/browser/metrics/variations/generate_resources_map.py
137 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener ated_resources_map.cc',
138
139 # TODO(GYP) Also add these nacl_defines to direct dependents.
140 #defines = nacl_defines
141 deps += [
142 "//cc",
143 "//components/visitedlink/browser",
144 "//components/visitedlink/common",
145 "//net:net_with_v8",
146 "//third_party/adobe/flash:flapper_version_h",
147 "//third_party/expat",
148 "//third_party/leveldatabase",
149 "//third_party/libyuv",
150 "//third_party/npapi",
151 "//third_party/re2",
152 "//third_party/smhasher:cityhash",
153 "//ui/gl",
154 "//ui/surface",
155 "//webkit:resources",
156 "//webkit/browser:storage",
157 "//webkit/common",
158 "//webkit/common:storage",
159 # TODO(GYP)
160 #"apps",
161 #"browser/performance_monitor/performance_monitor.gyp:performance_monitor" ,
162 #"browser_extensions",
163 #"common/extensions/api/api.gyp:chrome_api",
164 #"debugger",
165 #"installer_util",
166 #"sync_file_system_drive_proto",
167 #"sync_file_system_proto",
168 #"../components/components.gyp:autofill_content_browser",
169 #"../components/components.gyp:dom_distiller_content",
170 #"../components/components.gyp:keyed_service_content",
171 #"../components/components.gyp:navigation_interception",
172 #"../components/components.gyp:password_manager_content_browser",
173 #"../components/components.gyp:precache_content",
174 #"../components/components.gyp:sessions",
175 #"../components/components.gyp:storage_monitor",
176 #"../components/components.gyp:translate_content_browser",
177 #"../components/components.gyp:url_matcher",
178 #"../components/components.gyp:usb_service",
179 #"../components/components.gyp:web_modal",
180 #"../media/cast/cast.gyp:cast_transport",
181 #"../media/media.gyp:media",
182 #"../mojo/mojo.gyp:mojo_cpp_bindings",
183 #"../mojo/mojo.gyp:mojo_environment_chromium",
184 #"../mojo/mojo.gyp:mojo_js_bindings",
185 #"../mojo/mojo.gyp:mojo_system_impl",
186 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
187 #"../testing/perf/perf_test.gyp:*",
188 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput",
189 #"../third_party/webrtc/modules/modules.gyp:desktop_capture",
190 #"../ui/web_dialogs/web_dialogs.gyp:web_dialogs",
191 #"../v8/tools/gyp/v8.gyp:v8",
192 ]
193 } else { # iOS
194 sources += rebase_path(gypi_values.chrome_browser_ios_sources,
195 ".", "//chrome")
196 deps += [
197 "//net",
198 ]
199 libs += [
200 "CoreTelephony.framework",
201 "CoreText.framework",
202 "MobileCoreServices.framework",
203 "QuartzCore.framework",
204 ]
205 ldflags += [ "-weak_framework", "CoreImage" ]
206 }
207
208 if (is_win || is_mac) {
209 sources += rebase_path(gypi_values.chrome_browser_win_mac_sources,
210 ".", "//chrome")
211 }
212 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
213 sources += [
214 "net/disk_cache_dir_policy_handler.cc",
215 "net/disk_cache_dir_policy_handler.h",
216 ]
217 }
218 if (!is_android && !is_ios && enable_configuration_policy) {
219 sources += [
220 "download/download_dir_policy_handler.cc",
221 "download/download_dir_policy_handler.h",
222 ]
223 }
224 if (is_mac) {
225 sources += rebase_path(gypi_values.chrome_browser_mac_sources,
226 ".", "//chrome")
227 deps += [
228 #"app_shim" TODO(GYP)
229 ]
230 }
231 if (cld2_data_source == "component") {
232 sources += [
233 "component_updater/cld_component_installer.cc",
234 "component_updater/cld_component_installer.h",
235 ]
236 }
237 if (enable_extensions) {
238 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
239 ".", "//chrome")
240 }
241 if (enable_background) {
242 sources += rebase_path(gypi_values.chrome_browser_background_sources,
243 ".", "//chrome")
244 if (!use_aura || is_win) {
245 sources -= [ "background/background_mode_manager_aura.cc" ]
246 }
247 }
248 if (enable_task_manager) {
249 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
250 ".", "//chrome")
251 }
252 if (enable_spellcheck) {
253 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
254 ".", "//chrome")
255 deps += [ "//third_party/hunspell" ]
256 }
257 if (enable_nacl) {
258 sources += rebase_path(gypi_values.chrome_browser_nacl_sources,
259 ".", "//chrome")
260 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
261 }
262 # ["debug_devtools==1", { TODO(GYP)
263 # "defines": [
264 # "DEBUG_DEVTOOLS=1",
265 # ],
266 if (enable_configuration_policy) {
267 sources += rebase_path(
268 gypi_values.chrome_browser_policy_shared_with_ios_sources,
269 ".", "//chrome")
270 deps += [
271 #"../components/components.gyp:cloud_policy_proto", TODO(GYP)
272 #"../components/components.gyp:policy", TODO(GYP)
273 ]
274 if (!is_ios) {
275 sources += rebase_path(
276 gypi_values.chrome_browser_policy_non_ios_sources,
277 ".", "//chrome")
278 }
279 if (!is_chromeos) {
280 sources += rebase_path(
281 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources ,
282 ".", "//chrome")
283 }
284 if (is_win || is_mac || is_desktop_linux) {
285 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
286 ".", "//chrome")
287 }
288 if (is_android || is_ios) {
289 sources += rebase_path(gypi_values.chrome_browser_mobile_sources,
290 ".", "//chrome")
291 } else { # Non-mobile
292 deps += [
293 #"policy_path_parser", TODO(GYP)
294 ]
295 }
296 } else {
297 # Configuration policy disabled.
298 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
299 ".", "//chrome")
300 }
301
302 if (enable_plugins) {
303 sources += rebase_path(gypi_values.chrome_browser_plugins_sources,
304 ".", "//chrome")
305 deps += [
306 "//ppapi:ppapi_ipc",
307 ]
308 }
309 if (safe_browsing_mode != 0) {
310 sources += rebase_path(
311 gypi_values.chrome_browser_basic_safe_browsing_sources,
312 ".", "//chrome")
313 deps += [
314 #"safe_browsing_chunk_proto", TODO(GYP)
315 #"safe_browsing_report_proto", TODO(GYP)
316 ]
317 if (safe_browsing_mode == 1) {
318 sources += rebase_path(
319 gypi_values.chrome_browser_full_safe_browsing_sources,
320 ".", "//chrome")
321 defines += [ "FULL_SAFE_BROWSING" ]
322 deps += [
323 #"safe_browsing_proto", TODO(GYP)
324 ]
325 } else if (safe_browsing_mode == 2) {
326 defines += [ "MOBILE_SAFE_BROWSING" ]
327 }
328 }
329
330 if (is_linux) {
331 deps += [
332 #"../build/linux/system.gyp:udev", TODO(GYP)
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 if (is_linux && !is_chromeos) {
339 deps += [
340 # "../build/linux/system.gyp:libspeechd", TODO(GYP)
341 ]
342 }
343
344 if (is_chromeos) {
345 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
346 ".", "//chrome")
347 deps += [
348 #"browser_chromeos", TODO(GYP)
349 ]
350 } else {
351 # Non-ChromeOS.
352 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
353 ".", "//chrome")
354 }
355
356 if (use_cups) {
357 #deps += [ "../printing/printing.gyp:cups" ] TODO(GYP)
358 }
359 if (is_desktop_linux) {
360 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
361 ".", "//chrome")
362 #deps += [ "../build/linux/system.gyp:gnome_keyring" ] TODO(GYP)
363 }
364 if (use_aura) {
365 sources += rebase_path(gypi_values.chrome_browser_aura_sources,
366 ".", "//chrome")
367 deps += [
368 #"../ui/aura/aura.gyp:aura", TODO(GYP)
369 #"../ui/compositor/compositor.gyp:compositor", TODO(GYP)
370 #"../ui/keyboard/keyboard.gyp:keyboard", TODO(GYP)
371 ]
372 }
373 if (ui_compositor_image_transport) {
374 deps += [ "//ui/gl" ]
375 }
376
377 if (use_x11) {
378 sources += rebase_path(gypi_values.chrome_browser_x11_sources,
379 ".", "//chrome")
380 if (!is_chromeos) {
381 deps += [
382 # "../build/linux/system.gyp:xscrnsaver", TODO(GYP)
383 ]
384 }
385 }
386 if (is_posix && !is_mac && !is_ios) {
387 sources += [
388 "//chrome/app/chrome_breakpad_client.cc",
389 "//chrome/app/chrome_breakpad_client.h",
390 ]
391 deps += [
392 #"../components/components.gyp:breakpad_component", TODO(GYP)
393 #"../components/components.gyp:breakpad_host", TODO(GYP)
394 ]
395 }
396 if (use_nss_certs) {
397 sources += rebase_path(gypi_values.chrome_browser_nss_sources,
398 ".", "//chrome")
399 }
400 if (enable_notifications) {
401 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
402 ".", "//chrome")
403 if (!is_android) {
404 sources += rebase_path(
405 gypi_values.chrome_browser_non_android_notifications_sources,
406 ".", "//chrome")
407 }
408 }
409 if (enable_themes) {
410 sources += rebase_path(gypi_values.chrome_browser_themes_sources,
411 ".", "//chrome")
412 }
413
414 if (enable_printing != 0) {
415 # Some form of printing support.
416 sources += rebase_path(gypi_values.chrome_browser_basic_printing_sources,
417 ".", "//chrome")
418 deps += [
419 #"../printing/printing.gyp:printing", TODO(GYP)
420 ]
421 if (is_win && win_pdf_metafile_for_printing) {
422 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
423 ".", "//chrome")
424 }
425 if (enable_printing == 1) {
426 # Full printing on top of the above.
427 sources += rebase_path(gypi_values.chrome_browser_full_printing_sources,
428 ".", "//chrome")
429 } else if (enable_printing == 2) {
430 # Partial-only printing support.
431 sources += rebase_path(
432 gypi_values.chrome_browser_basic_only_printing_sources,
433 ".", "//chrome")
434 }
435 }
436 if (enable_captive_portal_detection) {
437 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
438 ".", "//chrome")
439 }
440 if (enable_session_service) {
441 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
442 ".", "//chrome")
443 }
444
445 if (is_android || is_ios) {
446 # Mobile.
447 sources += rebase_path(gypi_values.chrome_browser_mobile_sources,
448 ".", "//chrome")
449 } else {
450 # Non-mobile.
451 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
452 ".", "//chrome")
453 }
454
455 if (is_android) {
456 sources += rebase_path(gypi_values.chrome_browser_android_sources,
457 ".", "//chrome")
458 deps += [
459 #"../components/components.gyp:cdm_browser", TODO(GYP)
460 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP)
461 #"chrome_browser_jni_headers", TODO(GYP)
462 ]
463 deps -= [
464 #"../components/components.gyp:feedback_component", TODO(GYP)
465 #"../components/components.gyp:storage_monitor", TODO(GYP)
466 #"../components/components.gyp:usb_service", TODO(GYP)
467 #"../components/components.gyp:web_modal", TODO(GYP)
468 #"../third_party/libaddressinput/libaddressinput.gyp:libaddressinput", TO DO(GYP)
469 ]
470 } else {
471 sources += rebase_path(gypi_values.chrome_browser_non_android_sources,
472 ".", "//chrome")
473 }
474
475 if (is_mac) {
476 deps += [
477 #"../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_ toolbox_for_mac", TODO(GYP)
478 #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP)
479 ]
480 libs += [
481 "Accelerate.framework",
482 "AddressBook.framework",
483 "AudioUnit.framework",
484 "DiskArbitration.framework",
485 "IOKit.framework",
486 "ImageCaptureCore.framework",
487 "OpenGL.framework",
488 "QuartzCore.framework",
489 "SecurityInterface.framework",
490 ]
491 }
492
493 if (enable_rlz) {
494 sources += rebase_path(gypi_values.chrome_browser_rlz_sources,
495 ".", "//chrome")
496 deps += [ "//rlz:rlz_lib" ]
497 }
498
499 # TODO(GYP)
500 # Temporary fix to break the browser target into smaller chunks so it
501 # will link with goma builds.
502 #["OS=="win" and chromium_win_pch==0", {
503 # "msvs_shard": 4,
504 #}],
505
506 if (is_win) {
507 sources += rebase_path(gypi_values.chrome_browser_win_sources,
508 ".", "//chrome")
509 deps += [
510 "//third_party/wtl",
511 #"chrome_process_finder", TODO(GYP)
512 #"installer_util_strings", TODO(GYP)
513 #"launcher_support", TODO(GYP)
514 #"../chrome/chrome.gyp:chrome_version_header", TODO(GYP)
515 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
516 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
517 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
518 #"../google_update/google_update.gyp:google_update", TODO(GYP)
519 #"../third_party/iaccessible2/iaccessible2.gyp:iaccessible2", TODO(GYP)
520 #"../third_party/isimpledom/isimpledom.gyp:isimpledom", TODO(GYP)
521 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
522 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP)
523 #"../ui/views/views.gyp:views", TODO(GYP)
524 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
525 ]
526 forward_dependent_configs_from += [
527 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP)
528 #"../ui/views/views.gyp:views", TODO(GYP)
529 ]
530 } else {
531 # Non-Windows.
532 sources += rebase_path(gypi_values.chrome_browser_non_win_sources,
533 ".", "//chrome")
534 if (use_aura) {
535 deps += [
536 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP)
537 #"../ui/views/views.gyp:views", TODO(GYP)
538 ]
539 # TODO(GYP) why is this needed? Very susicious.
540 # "include_dirs": [
541 # "<(INTERMEDIATE_DIR)/chrome",
542 # ],
543 }
544 }
545
546 if (is_linux) {
547 sources += rebase_path(gypi_values.chrome_browser_linux_sources,
548 ".", "//chrome")
549 if (use_aura) {
550 configs += [
551 "//build/config/linux:dbus",
552 "//build/config/linux:fontconfig",
553 ]
554 deps += [
555 "//dbus",
556 ]
557 }
558 if (use_x11) {
559 configs += [ "//build/config/linux:x11" ]
560 deps += [ "//ui/gfx/x" ]
561 }
562 }
563
564 if (is_desktop_linux) {
565 sources += rebase_path(gypi_values.chrome_browser_desktop_linux_sources,
566 ".", "//chrome")
567 }
568 if (enable_plugin_installation) {
569 sources += rebase_path(
570 gypi_values.chrome_browser_plugin_installation_sources,
571 ".", "//chrome")
572 }
573 if (enable_app_list) {
574 deps += [
575 #"../ui/app_list/app_list.gyp:app_list", TODO(GYP)
576 ]
577 }
578 if (enable_managed_users) {
579 sources += rebase_path(
580 gypi_values.chrome_browser_supervised_user_sources,
581 ".", "//chrome")
582 }
583 if (enable_webrtc) {
584 sources += rebase_path(
585 gypi_values.chrome_browser_webrtc_sources,
586 ".", "//chrome")
587 }
588 if (enable_service_discovery) {
589 sources += rebase_path(
590 gypi_values.chrome_browser_service_discovery_sources,
591 ".", "//chrome")
592 }
593 if (enable_mdns) {
594 sources += rebase_path(
595 gypi_values.chrome_browser_mdns_sources,
596 ".", "//chrome")
597 }
598 if (!enable_autofill_dialog || is_android || is_ios) {
599 sources -= [
600 "autofill/validation_rules_storage_factory.cc",
601 "autofill/validation_rules_storage_factory.h",
602 ]
603 }
604 if (enable_wifi_bootstrapping) {
605 sources += rebase_path(
606 gypi_values.chrome_browser_wifi_bootstrapping_sources,
607 ".", "//chrome")
608 if (is_win || is_mac) {
609 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
610 # and Mac, so this test is meaningless. Can we merge these lists?
611 sources += rebase_path(
612 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources,
613 ".", "//chrome")
614 }
615 }
616 }
617
618 } # comment out chrome/browser
619
11 # GYP version: chrome/chrome_resources.gyp:chrome_resources 620 # GYP version: chrome/chrome_resources.gyp:chrome_resources
12 # (generate_browser_resources action) 621 # (generate_browser_resources action)
13 grit("resources") { 622 grit("resources") {
14 source = "browser_resources.grd" 623 source = "browser_resources.grd"
15 624
16 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mo jom.js" 625 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mo jom.js"
17 626
18 grit_flags = [ 627 grit_flags = [
19 "-E", "about_credits_file=" + 628 "-E", "about_credits_file=" +
20 rebase_path(about_credits_file, root_build_dir), 629 rebase_path(about_credits_file, root_build_dir),
(...skipping 30 matching lines...) Expand all
51 # TODO(GYP) write internal action 660 # TODO(GYP) write internal action
52 if (false) { #if (is_chrome_branded) { 661 if (false) { #if (is_chrome_branded) {
53 action("chrome_internal_resources_gen") { 662 action("chrome_internal_resources_gen") {
54 # TODO(GYP) 663 # TODO(GYP)
55 } 664 }
56 } else { 665 } else {
57 group("chrome_internal_resources_gen") { 666 group("chrome_internal_resources_gen") {
58 # Empty placeholder. 667 # Empty placeholder.
59 } 668 }
60 } 669 }
OLDNEW
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698