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