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