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