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