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