Enable SitePerProcessAccessibilityBrowserTest on more platforms.
[chromium-blink-merge.git] / chrome / chrome.gyp
blob7dc9de81a3a0dd6d1f67ce45835bb6296dc9f8cf
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5   'variables': {
6     'chromium_code': 1,
8     # Define the common dependencies that contain all the actual
9     # Chromium functionality.  This list gets pulled in below by
10     # the link of the actual chrome (or chromium) executable on
11     # Linux or Mac, and into chrome.dll on Windows.
12     # NOTE: Most new includes should go in the OS!="ios" condition below.
13     #
14     # GN version is the group //chrome:browser_dependencies
15     'chromium_browser_dependencies': [
16       'common',
17       'browser',
18       '../sync/sync.gyp:sync',
19     ],
20     # GN version is the group //chrome:child_dependencies
21     'chromium_child_dependencies': [
22       'common',
23       '../sync/sync.gyp:sync',
24     ],
25     'allocator_target': '../base/allocator/allocator.gyp:allocator',
26     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
27     'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
28     'conditions': [
29       ['OS!="ios"', {
30         'chromium_browser_dependencies': [
31           'debugger',
32           '../ppapi/ppapi_internal.gyp:ppapi_host',
33         ],
34         'chromium_child_dependencies': [
35           'child',
36           'plugin',
37           'renderer',
38           'utility',
39           '../content/content.gyp:content_gpu',
40           '../content/content.gyp:content_ppapi_plugin',
41           '../third_party/WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resources',
42         ],
43         'conditions': [
44           [ 'cld_version==0 or cld_version==2', {
45             'chromium_child_dependencies': [
46               # Use whatever CLD2 data access mode that the application
47               # embedder is using.
48               '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
49           }],
50           ['enable_plugins==1 and disable_nacl==0', {
51             'chromium_child_dependencies': [
52               '<(DEPTH)/components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin',
53             ],
54           }],
55           ['remoting==1', {
56             'chromium_child_dependencies': [
57               '../remoting/remoting.gyp:remoting_client_plugin',
58             ],
59           }],
60         ],
61       }],
62       ['enable_basic_printing==1 or enable_print_preview==1', {
63         'chromium_browser_dependencies': [
64           '../printing/printing.gyp:printing',
65         ],
66       }],
67       ['enable_print_preview==1', {
68         'chromium_browser_dependencies': [
69           'service',
70         ],
71       }],
72       ['OS=="win"', {
73         'platform_locale_settings_grd':
74             'app/resources/locale_settings_win.grd',
75       },],
76       ['OS=="linux"', {
77         'conditions': [
78           ['chromeos==1', {
79             'conditions': [
80               ['branding=="Chrome"', {
81                 'platform_locale_settings_grd':
82                     'app/resources/locale_settings_google_chromeos.grd',
83               }, {  # branding!=Chrome
84                 'platform_locale_settings_grd':
85                     'app/resources/locale_settings_chromiumos.grd',
86               }],
87             ]
88           }, {  # chromeos==0
89             'platform_locale_settings_grd':
90                 'app/resources/locale_settings_linux.grd',
91           }],
92         ],
93       },],
94       ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
95         'platform_locale_settings_grd':
96             'app/resources/locale_settings_linux.grd',
97       },],
98       ['OS=="mac"', {
99         'tweak_info_plist_path': '../build/mac/tweak_info_plist.py',
100         'platform_locale_settings_grd':
101             'app/resources/locale_settings_mac.grd',
102       }],  # OS=="mac"
103     ],  # conditions
104   },  # variables
105   'includes': [
106     # Place some targets in gypi files to reduce contention on this file.
107     # By using an include, we keep everything in a single xcodeproj file.
108     # Note on Win64 targets: targets that end with win64 be used
109     # on 64-bit Windows only. Targets that end with nacl_win64 should be used
110     # by Native Client only.
111     # NOTE: Most new includes should go in the OS!="ios" condition below.
112     '../build/chrome_settings.gypi',
113     '../build/util/version.gypi',
114     '../build/win_precompile.gypi',
115     'chrome_browser.gypi',
116     'chrome_browser_ui.gypi',
117     'chrome_common.gypi',
118     'chrome_installer_util.gypi',
119     '../components/nacl/nacl_defines.gypi',
120   ],
121   'conditions': [
122     ['OS!="ios"', {
123       'includes': [
124         '../apps/apps.gypi',
125         'app_installer/app_installer.gypi',
126         'chrome_child.gypi',
127         'chrome_debugger.gypi',
128         'chrome_dll.gypi',
129         'chrome_exe.gypi',
130         'chrome_installer.gypi',
131         'chrome_plugin.gypi',
132         'chrome_renderer.gypi',
133         'chrome_tests.gypi',
134         'chrome_tests_unit.gypi',
135         'chrome_utility.gypi',
136         'policy_templates.gypi',
137       ],
138       'targets': [
139         {
140           'target_name': 'default_extensions',
141           'type': 'none',
142           'conditions': [
143             ['OS=="win"', {
144               'copies': [
145                 {
146                   'destination': '<(PRODUCT_DIR)/extensions',
147                   'files': [
148                     'browser/extensions/default_extensions/external_extensions.json'
149                   ]
150                 }
151               ],
152             }]
153           ],
154         },
155       ],
156     }],  # OS!="ios"
157     ['OS=="mac"', {
158       'includes': [
159         'app_shim/app_shim.gypi',
160         'browser/apps/app_shim/browser_app_shim.gypi',
161       ],
162       'targets': [
163         {
164           'target_name': 'helper_app',
165           'type': 'executable',
166           'variables': { 'enable_wexit_time_destructors': 1, },
167           'product_name': '<(mac_product_name) Helper',
168           'mac_bundle': 1,
169           'dependencies': [
170             'chrome_dll',
171             'infoplist_strings_tool',
172           ],
173           'sources': [
174             # chrome_exe_main_mac.cc's main() is the entry point for
175             # the "chrome" (browser app) target.  All it does is jump
176             # to chrome_dll's ChromeMain.  This is appropriate for
177             # helper processes too, because the logic to discriminate
178             # between process types at run time is actually directed
179             # by the --type command line argument processed by
180             # ChromeMain.  Sharing chrome_exe_main_mac.cc with the
181             # browser app will suffice for now.
182             'app/chrome_exe_main_mac.cc',
183             'app/helper-Info.plist',
184           ],
185           # TODO(mark): Come up with a fancier way to do this.  It should only
186           # be necessary to list helper-Info.plist once, not the three times it
187           # is listed here.
188           'mac_bundle_resources!': [
189             'app/helper-Info.plist',
190           ],
191           # TODO(mark): For now, don't put any resources into this app.  Its
192           # resources directory will be a symbolic link to the browser app's
193           # resources directory.
194           'mac_bundle_resources/': [
195             ['exclude', '.*'],
196           ],
197           'xcode_settings': {
198             'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
199             'CHROMIUM_SHORT_NAME': '<(branding)',
200             'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves',
201             'INFOPLIST_FILE': 'app/helper-Info.plist',
202           },
203           'postbuilds': [
204             {
205               # The helper doesn't have real localizations, it just has
206               # empty .lproj directories, which is enough to convince Cocoa
207               # that anything running out of the helper .app supports those
208               # languages.
209               'postbuild_name': 'Make Empty Localizations',
210               'variables': {
211                 'locale_dirs': [
212                   '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
213                 ],
214               },
215               'action': [
216                 'tools/build/mac/make_locale_dirs.sh',
217                 '<@(locale_dirs)',
218               ],
219             },
220             {
221               # The framework (chrome_dll) defines its load-time path
222               # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
223               # (chrome).  A different relative path needs to be used in
224               # helper_app.
225               'postbuild_name': 'Fix Framework Link',
226               'action': [
227                 'install_name_tool',
228                 '-change',
229                 '@executable_path/../Versions/<(version_full)/<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
230                 '@executable_path/../../../<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
231                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
232               ],
233             },
234             {
235               # Modify the Info.plist as needed.  The script explains why this
236               # is needed.  This is also done in the chrome and chrome_dll
237               # targets.  In this case, --breakpad=0, --keystone=0, and --scm=0
238               # are used because Breakpad, Keystone, and SCM keys are
239               # never placed into the helper.
240               'postbuild_name': 'Tweak Info.plist',
241               'action': ['<(tweak_info_plist_path)',
242                          '--breakpad=0',
243                          '--keystone=0',
244                          '--scm=0'],
245             },
246             {
247               # Make sure there isn't any Objective-C in the helper app's
248               # executable.
249               'postbuild_name': 'Verify No Objective-C',
250               'action': [
251                 '../build/mac/verify_no_objc.sh',
252               ],
253             },
254           ],
255           'conditions': [
256             ['mac_breakpad==1', {
257               'variables': {
258                 # A real .dSYM is needed for dump_syms to operate on.
259                 'mac_real_dsym': 1,
260               },
261               'xcode_settings': {
262                 # With mac_real_dsym set, strip_from_xcode won't be used.
263                 # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode.
264                 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
265               },
266             }],
267             ['component=="shared_library"', {
268               'xcode_settings': {
269                 'LD_RUNPATH_SEARCH_PATHS': [
270                   # Get back from Chromium.app/Contents/Versions/V/
271                   #                                    Helper.app/Contents/MacOS
272                   '@loader_path/../../../../../../..',
273                 ],
274               },
275             }],
276           ],
277         },  # target helper_app
278         {
279           # A library containing the actual code for the app mode app, shared
280           # by unit tests.
281           'target_name': 'app_mode_app_support',
282           'type': 'static_library',
283           'variables': { 'enable_wexit_time_destructors': 1, },
284           'product_name': 'app_mode_app_support',
285           'dependencies': [
286             '../base/base.gyp:base',
287             'common_constants.gyp:common_constants',
288           ],
289           'sources': [
290             'common/mac/app_mode_chrome_locator.h',
291             'common/mac/app_mode_chrome_locator.mm',
292             'common/mac/app_mode_common.h',
293             'common/mac/app_mode_common.mm',
294           ],
295           'include_dirs': [
296             '..',
297           ],
298         },  # target app_mode_app_support
299         {
300           # Convenience target to build a disk image.
301           'target_name': 'build_app_dmg',
302           # Don't place this in the 'all' list; most won't want it.
303           # In GYP, booleans are 0/1, not True/False.
304           'suppress_wildcard': 1,
305           'type': 'none',
306           'dependencies': [
307             'chrome',
308           ],
309           'variables': {
310             'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg',
311             'pkg_dmg_script_path': 'installer/mac/pkg-dmg',
313             'conditions': [
314               # This duplicates the output path from build_app_dmg.
315               ['branding=="Chrome"', {
316                 'dmg_name': 'GoogleChrome.dmg',
317               }, { # else: branding!="Chrome"
318                 'dmg_name': 'Chromium.dmg',
319               }],
320             ],
321           },
322           'actions': [
323             {
324               'inputs': [
325                 '<(build_app_dmg_script_path)',
326                 '<(pkg_dmg_script_path)',
327                 '<(PRODUCT_DIR)/<(mac_product_name).app',
328               ],
329               'outputs': [
330                 '<(PRODUCT_DIR)/<(dmg_name)',
331               ],
332               'action_name': 'build_app_dmg',
333               'action': ['<(build_app_dmg_script_path)', '<@(branding)'],
334             },
335           ],  # 'actions'
336         },
337         {
338           'target_name': 'infoplist_strings_tool',
339           'type': 'executable',
340           'variables': { 'enable_wexit_time_destructors': 1, },
341           'dependencies': [
342             'chrome_resources.gyp:chrome_strings',
343             '../base/base.gyp:base',
344             '../ui/base/ui_base.gyp:ui_base',
345             '../ui/gfx/gfx.gyp:gfx',
346             '../ui/gfx/gfx.gyp:gfx_geometry',
347           ],
348           'include_dirs': [
349             '<(grit_out_dir)',
350           ],
351           'sources': [
352             'tools/mac_helpers/infoplist_strings_util.mm',
353           ],
354         },
355       ],  # targets
356     }],  # OS=="mac"
357     ['OS=="linux"',
358       { 'targets': [
359         {
360           'target_name': 'linux_symbols',
361           'type': 'none',
362           'conditions': [
363             ['linux_dump_symbols==1', {
364               'actions': [
365                 {
366                   'action_name': 'dump_symbols',
367                   'inputs': [
368                     '<(DEPTH)/build/linux/dump_app_syms',
369                     '<(PRODUCT_DIR)/dump_syms',
370                     '<(PRODUCT_DIR)/chrome',
371                   ],
372                   'outputs': [
373                     '<(PRODUCT_DIR)/chrome.breakpad.<(target_arch)',
374                   ],
375                   'action': ['<(DEPTH)/build/linux/dump_app_syms',
376                              '<(PRODUCT_DIR)/dump_syms',
377                              '<(linux_strip_binary)',
378                              '<(PRODUCT_DIR)/chrome',
379                              '<@(_outputs)'],
380                   'message': 'Dumping breakpad symbols to <(_outputs)',
381                   'process_outputs_as_sources': 1,
382                 },
383               ],
384               'dependencies': [
385                 'chrome',
386                 '../breakpad/breakpad.gyp:dump_syms',
387               ],
388             }],
389           ],
390         },
391       ],
392     }],  # OS=="linux"
393     ['OS=="win"',
394       { 'targets': [
395         {
396           # For historical reasons, chrome/chrome.sln has been the entry point
397           # for new Chrome developers. To assist development, include several
398           # core unittests that are otherwise only accessible side-by-side with
399           # chrome via all/all.sln.
400           'target_name': 'test_targets',
401           'type': 'none',
402           'dependencies': [
403             '../base/base.gyp:base_unittests',
404             '../content/content_shell_and_tests.gyp:content_browsertests',
405             '../content/content_shell_and_tests.gyp:content_shell',
406             '../content/content_shell_and_tests.gyp:content_unittests',
407             '../net/net.gyp:net_unittests',
408             '../ui/base/ui_base_tests.gyp:ui_base_unittests',
409           ],
410         },
411         {
412           'target_name': 'chrome_version_resources',
413           'type': 'none',
414           'conditions': [
415             ['branding == "Chrome"', {
416               'variables': {
417                  'branding_path': 'app/theme/google_chrome/BRANDING',
418               },
419             }, { # else branding!="Chrome"
420               'variables': {
421                  'branding_path': 'app/theme/chromium/BRANDING',
422               },
423             }],
424           ],
425           'variables': {
426             'output_dir': 'chrome_version',
427             'template_input_path': 'app/chrome_version.rc.version',
428           },
429           'direct_dependent_settings': {
430             'include_dirs': [
431               '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
432             ],
433           },
434           'sources': [
435             'app/chrome_exe.ver',
436             'app/chrome_dll.ver',
437             'app/nacl64_exe.ver',
438             'app/other.ver',
439           ],
440           'includes': [
441             'version_resource_rules.gypi',
442           ],
443         },
444         {
445           # GN version: //chrome:version_header
446           'target_name': 'chrome_version_header',
447           'type': 'none',
448           'hard_dependency': 1,
449           'actions': [
450             {
451               'action_name': 'version_header',
452               'variables': {
453                 'lastchange_path':
454                   '<(DEPTH)/build/util/LASTCHANGE',
455               },
456               'conditions': [
457                 ['branding == "Chrome"', {
458                   'variables': {
459                      'branding_path': 'app/theme/google_chrome/BRANDING',
460                   },
461                 }, { # else branding!="Chrome"
462                   'variables': {
463                      'branding_path': 'app/theme/chromium/BRANDING',
464                   },
465                 }],
466               ],
467               'inputs': [
468                 '<(version_path)',
469                 '<(branding_path)',
470                 '<(lastchange_path)',
471                 'version.h.in',
472               ],
473               'outputs': [
474                 '<(SHARED_INTERMEDIATE_DIR)/version.h',
475               ],
476               'action': [
477                 'python',
478                 '<(version_py_path)',
479                 '-f', '<(version_path)',
480                 '-f', '<(branding_path)',
481                 '-f', '<(lastchange_path)',
482                 'version.h.in',
483                 '<@(_outputs)',
484               ],
485               'message': 'Generating version header file: <@(_outputs)',
486             },
487           ],
488         },
489         {
490           'target_name': 'crash_service',
491           'type': 'executable',
492           'dependencies': [
493             'installer_util',
494             '../base/base.gyp:base',
495             '../chrome/common_constants.gyp:common_constants',
496             '../components/components.gyp:breakpad_crash_service',
497           ],
498           'include_dirs': [
499             '..',
500           ],
501           'sources': [
502             'tools/crash_service/main.cc',
503           ],
504           'msvs_settings': {
505             'VCLinkerTool': {
506               'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
507             },
508           },
509         },
510         {
511           'target_name': 'sb_sigutil',
512           'type': 'executable',
513           'dependencies': [
514             '../base/base.gyp:base',
515             '../crypto/crypto.gyp:crypto',
516             'safe_browsing_proto',
517           ],
518           'sources': [
519             'browser/safe_browsing/binary_feature_extractor.cc',
520             'browser/safe_browsing/binary_feature_extractor.h',
521             'browser/safe_browsing/binary_feature_extractor_win.cc',
522             'browser/safe_browsing/pe_image_reader_win.cc',
523             'browser/safe_browsing/pe_image_reader_win.h',
524             'tools/safe_browsing/sb_sigutil.cc',
525           ],
526         },
527       ],  # 'targets'
528       'includes': [
529         'app_shim/app_shim_win.gypi',
530         'chrome_watcher/chrome_watcher.gypi',
531         'chrome_process_finder.gypi',
532         'metro_utils.gypi',
533       ],
534     }],  # OS=="win"
535     ['OS=="win" and target_arch=="ia32"',
536       { 'targets': [
537         {
538           'target_name': 'chrome_user32_delay_imports',
539           'type': 'none',
540           'variables': {
541             'lib_dir': '<(INTERMEDIATE_DIR)',
542           },
543           'sources': [
544               'chrome.user32.delay.imports'
545           ],
546           'includes': [
547               '../build/win/importlibs/create_import_lib.gypi',
548           ],
549           'direct_dependent_settings': {
550             'msvs_settings': {
551               'VCLinkerTool': {
552                 'AdditionalLibraryDirectories': ['<(lib_dir)', ],
553                 'AdditionalDependencies': ['chrome.user32.delay.lib', ],
554               },
555             },
556           },
557         },
558         {
559           'target_name': 'crash_service_win64',
560           'type': 'executable',
561           'product_name': 'crash_service64',
562           'dependencies': [
563             'installer_util_nacl_win64',
564             '../base/base.gyp:base_static_win64',
565             '../chrome/common_constants.gyp:common_constants_win64',
566             '../components/components.gyp:breakpad_crash_service_win64',
567           ],
568           'include_dirs': [
569             '..',
570           ],
571           'sources': [
572             'tools/crash_service/main.cc',
573             '../content/public/common/content_switches.cc',
574           ],
575           'defines': [
576             'COMPILE_CONTENT_STATICALLY',
577           ],
578           'msvs_settings': {
579             'VCLinkerTool': {
580               'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
581             },
582           },
583           'configurations': {
584             'Common_Base': {
585               'msvs_target_platform': 'x64',
586             },
587           },
588         },
589       ]},  # 'targets'
590     ],  # OS=="win" and target_arch=="ia32"
591     ['chromeos==1', {
592       'includes': [ 'chrome_browser_chromeos.gypi' ],
593     }],  # chromeos==1
594     ['OS=="android"',
595       {
596       'targets': [
597         {
598           # GN: //chrome/android:chrome_java
599           'target_name': 'chrome_java',
600           'type': 'none',
601           'dependencies': [
602             'activity_type_ids_java',
603             'app_banner_metrics_ids_java',
604             'chrome_resources.gyp:chrome_strings',
605             'chrome_strings_grd',
606             'chrome_version_java',
607             'document_tab_model_info_proto_java',
608             'profile_account_management_metrics_java',
609             'add_web_contents_result_java',
610             'content_setting_java',
611             'content_settings_type_java',
612             'page_info_connection_type_java',
613             'profile_sync_service_model_type_selection_java',
614             'resource_id_java',
615             'toolbar_model_security_levels_java',
616             'tab_load_status_java',
617             '../base/base.gyp:base',
618             '../components/components.gyp:bookmarks_java',
619             '../components/components.gyp:dom_distiller_core_java',
620             '../components/components.gyp:gcm_driver_java',
621             '../components/components.gyp:invalidation_java',
622             '../components/components.gyp:navigation_interception_java',
623             '../components/components.gyp:variations_java',
624             '../components/components.gyp:web_contents_delegate_android_java',
625             '../content/content.gyp:content_java',
626             '../printing/printing.gyp:printing_java',
627             '../sync/sync.gyp:sync_java',
628             '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
629             '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
630             '../ui/android/ui_android.gyp:ui_java',
631           ],
632           'variables': {
633             'java_in_dir': '../chrome/android/java',
634             'has_java_resources': 1,
635             'R_package': 'org.chromium.chrome',
636             'R_package_relpath': 'org/chromium/chrome',
637             # Include xml string files generated from generated_resources.grd
638             'res_extra_dirs': ['<(SHARED_INTERMEDIATE_DIR)/chrome/java/res'],
639             'res_extra_files': ['<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)/chrome" app/generated_resources.grd)'],
640           },
641           'includes': [
642             '../build/java.gypi',
643           ],
644         },
645         {
646           # GN: //chrome/android:chrome_strings_grd
647           'target_name': 'chrome_strings_grd',
648           'type': 'none',
649           'variables': {
650             'grd_file': '../chrome/android/java/strings/android_chrome_strings.grd',
651           },
652           'includes': [
653             '../build/java_strings_grd.gypi',
654           ],
655         },
656         {
657           # GN: //chrome:content_setting_javagen
658           'target_name': 'content_setting_java',
659           'type': 'none',
660           'variables': {
661             'source_file': '../components/content_settings/core/common/content_settings.h',
662           },
663           'includes': [ '../build/android/java_cpp_enum.gypi' ],
664         },
665         {
666           # GN: //chrome:content_settings_type_javagen
667           'target_name': 'content_settings_type_java',
668           'type': 'none',
669           'variables': {
670             'source_file': '../components/content_settings/core/common/content_settings_types.h',
671           },
672           'includes': [ '../build/android/java_cpp_enum.gypi' ],
673         },
674         {
675           # GN: //chrome:page_info_connection_type_javagen
676           'target_name': 'page_info_connection_type_java',
677           'type': 'none',
678           'variables': {
679             'source_file': 'browser/ui/android/website_settings_popup_android.h',
680           },
681           'includes': [ '../build/android/java_cpp_enum.gypi' ],
682         },
683       ], # 'targets'
684       'includes': [
685         'chrome_android.gypi',
686       ]}, # 'includes'
687     ],  # OS=="android"
688     ['configuration_policy==1 and OS!="android" and OS!="ios"', {
689       'includes': [ 'policy.gypi', ],
690     }],
691     ['enable_extensions==1', {
692       'includes': [
693         'chrome_browser_extensions.gypi',
694       ],
695     }],
696     ['enable_print_preview==1', {
697       'targets': [
698         {
699           # GN version: //chrome/service
700           'target_name': 'service',
701           'type': 'static_library',
702           'variables': { 'enable_wexit_time_destructors': 1, },
703           'dependencies': [
704             'chrome_resources.gyp:chrome_strings',
705             'common',
706             'common_net',
707             '../base/base.gyp:base',
708             '../components/components.gyp:cloud_devices_common',
709             '../google_apis/google_apis.gyp:google_apis',
710             '../jingle/jingle.gyp:notifier',
711             '../net/net.gyp:net',
712             '../printing/printing.gyp:printing',
713             '../skia/skia.gyp:skia',
714             '../third_party/libjingle/libjingle.gyp:libjingle',
715           ],
716           'sources': [
717             # Note: sources list duplicated in GN build.
718             'service/cloud_print/cdd_conversion_win.cc',
719             'service/cloud_print/cdd_conversion_win.h',
720             'service/cloud_print/cloud_print_auth.cc',
721             'service/cloud_print/cloud_print_auth.h',
722             'service/cloud_print/cloud_print_connector.cc',
723             'service/cloud_print/cloud_print_connector.h',
724             'service/cloud_print/cloud_print_proxy.cc',
725             'service/cloud_print/cloud_print_proxy.h',
726             'service/cloud_print/cloud_print_proxy_backend.cc',
727             'service/cloud_print/cloud_print_proxy_backend.h',
728             'service/cloud_print/cloud_print_service_helpers.cc',
729             'service/cloud_print/cloud_print_service_helpers.h',
730             'service/cloud_print/cloud_print_token_store.cc',
731             'service/cloud_print/cloud_print_token_store.h',
732             'service/cloud_print/cloud_print_url_fetcher.cc',
733             'service/cloud_print/cloud_print_url_fetcher.h',
734             'service/cloud_print/cloud_print_wipeout.cc',
735             'service/cloud_print/cloud_print_wipeout.h',
736             'service/cloud_print/connector_settings.cc',
737             'service/cloud_print/connector_settings.h',
738             'service/cloud_print/job_status_updater.cc',
739             'service/cloud_print/job_status_updater.h',
740             'service/cloud_print/print_system.cc',
741             'service/cloud_print/print_system.h',
742             'service/cloud_print/print_system_win.cc',
743             'service/cloud_print/printer_job_handler.cc',
744             'service/cloud_print/printer_job_handler.h',
745             'service/cloud_print/printer_job_queue_handler.cc',
746             'service/cloud_print/printer_job_queue_handler.h',
747             'service/net/service_url_request_context_getter.cc',
748             'service/net/service_url_request_context_getter.h',
749             'service/service_ipc_server.cc',
750             'service/service_ipc_server.h',
751             'service/service_main.cc',
752             'service/service_process.cc',
753             'service/service_process.h',
754             'service/service_process_prefs.cc',
755             'service/service_process_prefs.h',
756             'service/service_utility_process_host.cc',
757             'service/service_utility_process_host.h',
758           ],
759           'include_dirs': [
760             '..',
761           ],
762           'conditions': [
763             ['use_cups==1', {
764               'dependencies': [
765                 '../printing/printing.gyp:cups',
766               ],
767               'sources': [
768                 'service/cloud_print/print_system_cups.cc',
769               ],
770             }],
771             ['OS!="win" and use_cups!=1', {
772               'sources': [
773                 'service/cloud_print/print_system_dummy.cc',
774               ],
775             }],
776             ['OS!="win"', {
777               'sources!': [
778                 'service/service_utility_process_host.cc',
779                 'service/service_utility_process_host.h',
780               ],
781             }],
782           ],
783         },
784       ],
785     }],
786   ],  # 'conditions'