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