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