Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / chrome.gyp
blob0d35d967e7a5c49951c994ad67449b47de4c6429
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     'chromium_dependencies': [
14       'common',
15       'browser',
16       '../content/content.gyp:content_app',
17       '../sync/sync.gyp:sync_core',
18     ],
19     'allocator_target': '../base/allocator/allocator.gyp:allocator',
20     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
21     'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
22     'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
23     # TODO: remove this helper when we have loops in GYP
24     'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py'],
25     'conditions': [
26       ['OS!="ios"', {
27         'chromium_dependencies': [
28           'debugger',
29           'plugin',
30           'renderer',
31           'utility',
32           '../content/content.gyp:content_gpu',
33           '../content/content.gyp:content_ppapi_plugin',
34           '../content/content.gyp:content_worker',
35           '../printing/printing.gyp:printing',
36           '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:inspector_resources',
37         ],
38       }],
39       ['OS=="win"', {
40         'nacl_defines': [
41           'NACL_WINDOWS=1',
42           'NACL_LINUX=0',
43           'NACL_OSX=0',
44         ],
45         'platform_locale_settings_grd':
46             'app/resources/locale_settings_win.grd',
47       },],
48       ['OS!="android" and OS!="ios"', {
49         'chromium_dependencies': [
50           # Android doesn't use the service process (only needed for print).
51           'service',
52         ],
53       }],
54       ['OS=="linux"', {
55         'nacl_defines': [
56           'NACL_WINDOWS=0',
57           'NACL_LINUX=1',
58           'NACL_OSX=0',
59         ],
60         'conditions': [
61           ['chromeos==1', {
62             'platform_locale_settings_grd':
63                 'app/resources/locale_settings_cros.grd',
64           }, {  # chromeos==0
65             'platform_locale_settings_grd':
66                 'app/resources/locale_settings_linux.grd',
67           }],
68         ],
69       },],
70       ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
71         'platform_locale_settings_grd':
72             'app/resources/locale_settings_linux.grd',
73       },],
74       ['OS=="mac"', {
75         'tweak_info_plist_path': '../build/mac/tweak_info_plist.py',
76         'nacl_defines': [
77           'NACL_WINDOWS=0',
78           'NACL_LINUX=0',
79           'NACL_OSX=1',
80         ],
81         'platform_locale_settings_grd':
82             'app/resources/locale_settings_mac.grd',
83         'conditions': [
84           ['branding=="Chrome"', {
85             'mac_bundle_id': 'com.google.Chrome',
86             'mac_creator': 'rimZ',
87             # The policy .grd file also needs the bundle id.
88             'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'],
89           }, {  # else: branding!="Chrome"
90             'mac_bundle_id': 'org.chromium.Chromium',
91             'mac_creator': 'Cr24',
92             # The policy .grd file also needs the bundle id.
93             'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'],
94           }],  # branding
95         ],  # conditions
96       }],  # OS=="mac"
97       # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
98       # we should figure out a way to unify the settings.
99       ['target_arch=="ia32"', {
100         'nacl_defines': [
101           'NACL_TARGET_SUBARCH=32',
102           'NACL_TARGET_ARCH=x86',
103           'NACL_BUILD_SUBARCH=32',
104           'NACL_BUILD_ARCH=x86',
105         ],
106       }],
107       ['target_arch=="x64"', {
108         'nacl_defines': [
109           'NACL_TARGET_SUBARCH=64',
110           'NACL_TARGET_ARCH=x86',
111           'NACL_BUILD_SUBARCH=64',
112           'NACL_BUILD_ARCH=x86',
113         ],
114       }],
115       ['target_arch=="arm"', {
116         'nacl_defines': [
117           'NACL_BUILD_ARCH=arm',
118           'NACL_BUILD_SUBARCH=32',
119           'NACL_TARGET_ARCH=arm',
120           'NACL_TARGET_SUBARCH=32',
121         ],
122       }],
123     ],  # conditions
124   },  # variables
125   'includes': [
126     # Place some targets in gypi files to reduce contention on this file.
127     # By using an include, we keep everything in a single xcodeproj file.
128     # Note on Win64 targets: targets that end with win64 be used
129     # on 64-bit Windows only. Targets that end with nacl_win64 should be used
130     # by Native Client only.
131     # NOTE: Most new includes should go in the OS!="ios" condition below.
132     '../build/win_precompile.gypi',
133     'chrome_browser.gypi',
134     'chrome_browser_ui.gypi',
135     'chrome_common.gypi',
136     'chrome_tests_unit.gypi',
137     'version.gypi',
138   ],
139   'conditions': [
140     ['OS!="ios"', {
141       'includes': [
142         'app/policy/policy_templates.gypi',
143         'chrome_browser_extensions.gypi',
144         'chrome_dll.gypi',
145         'chrome_exe.gypi',
146         'chrome_installer.gypi',
147         'chrome_installer_util.gypi',
148         'chrome_renderer.gypi',
149         'chrome_tests.gypi',
150         'nacl.gypi',
151       ],
152       'targets': [
153         {
154           'target_name': 'default_extensions',
155           'type': 'none',
156           'conditions': [
157             ['OS=="win"', {
158               'copies': [
159                 {
160                   'destination': '<(PRODUCT_DIR)/extensions',
161                   'files': [
162                     'browser/extensions/default_extensions/external_extensions.json'
163                   ]
164                 }
165               ],
166             }],
167             ['OS=="linux" and chromeos==1 and branding=="Chrome"', {
168               'copies': [
169                 {
170                   'destination': '<(PRODUCT_DIR)/extensions',
171                   'files': [
172                     '>!@(ls browser/extensions/default_extensions/chromeos/cache/*)'
173                   ]
174                 }
175               ],
176             }],
177           ],
178         },
179         {
180           'target_name': 'debugger',
181           'type': 'static_library',
182           'variables': { 'enable_wexit_time_destructors': 1, },
183           'dependencies': [
184             'chrome_resources.gyp:chrome_extra_resources',
185             'chrome_resources.gyp:chrome_resources',
186             'chrome_resources.gyp:chrome_strings',
187             'chrome_resources.gyp:theme_resources',
188             '../base/base.gyp:base',
189             '../content/content.gyp:content_browser',
190             '../net/net.gyp:http_server',
191             '../net/net.gyp:net',
192             '../skia/skia.gyp:skia',
193             '../third_party/icu/icu.gyp:icui18n',
194             '../third_party/icu/icu.gyp:icuuc',
195             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
196           ],
197           'include_dirs': [
198             '..',
199           ],
200           'sources': [
201             'browser/debugger/browser_list_tabcontents_provider.cc',
202             'browser/debugger/browser_list_tabcontents_provider.h',
203             'browser/debugger/devtools_file_helper.cc',
204             'browser/debugger/devtools_file_helper.h',
205             'browser/debugger/devtools_toggle_action.h',
206             'browser/debugger/devtools_window.cc',
207             'browser/debugger/devtools_window.h',
208             'browser/debugger/remote_debugging_server.cc',
209             'browser/debugger/remote_debugging_server.h',
210           ],
211           'conditions': [
212             ['toolkit_uses_gtk == 1', {
213               'dependencies': [
214                 '../build/linux/system.gyp:gtk',
215               ],
216             }],
217             ['OS=="android"', {
218               'sources!': [
219                 'browser/debugger/browser_list_tabcontents_provider.cc',
220                 'browser/debugger/devtools_window.cc',
221                 'browser/debugger/remote_debugging_server.cc',
222               ],
223             }],
224             ['debug_devtools==1', {
225               'defines': [
226                 'DEBUG_DEVTOOLS=1',
227                ],
228             }],
229           ],
230         },
231         {
232           'target_name': 'plugin',
233           'type': 'static_library',
234           'variables': { 'enable_wexit_time_destructors': 1, },
235           'dependencies': [
236             'chrome_resources.gyp:chrome_strings',
237             '../base/base.gyp:base',
238             '../content/content.gyp:content_plugin',
239           ],
240           'sources': [
241             'plugin/chrome_content_plugin_client.cc',
242             'plugin/chrome_content_plugin_client.h',
243           ],
244           'include_dirs': [
245             '..',
246             '<(grit_out_dir)',
247           ],
248         },
249         {
250           'target_name': 'utility',
251           'type': 'static_library',
252           'variables': { 'enable_wexit_time_destructors': 1, },
253           'dependencies': [
254             '../base/base.gyp:base',
255             '../content/content.gyp:content_utility',
256             '../skia/skia.gyp:skia',
257           ],
258           'sources': [
259             'utility/chrome_content_utility_client.cc',
260             'utility/chrome_content_utility_client.h',
261             'utility/profile_import_handler.cc',
262             'utility/profile_import_handler.h',
263           ],
264           'include_dirs': [
265             '..',
266           ],
267           'conditions': [
268             ['toolkit_uses_gtk == 1', {
269               'dependencies': [
270                 '../build/linux/system.gyp:gtk',
271               ],
272             }],
273             ['OS=="android"', {
274               'sources!': [
275                 'utility/profile_import_handler.cc',
276               ],
277             }],
278           ],
279         },
280         {
281           'target_name': 'service',
282           'type': 'static_library',
283           'variables': { 'enable_wexit_time_destructors': 1, },
284           'dependencies': [
285             'chrome_resources.gyp:chrome_strings',
286             'common',
287             'common_net',
288             '../base/base.gyp:base',
289             '../google_apis/google_apis.gyp:google_apis',
290             '../jingle/jingle.gyp:notifier',
291             '../net/net.gyp:net',
292             '../printing/printing.gyp:printing',
293             '../skia/skia.gyp:skia',
294             '../third_party/libjingle/libjingle.gyp:libjingle',
295           ],
296           'sources': [
297             'service/chrome_service_application_mac.h',
298             'service/chrome_service_application_mac.mm',
299             'service/service_ipc_server.cc',
300             'service/service_ipc_server.h',
301             'service/service_main.cc',
302             'service/service_process.cc',
303             'service/service_process.h',
304             'service/service_process_prefs.cc',
305             'service/service_process_prefs.h',
306             'service/service_utility_process_host.cc',
307             'service/service_utility_process_host.h',
308             'service/cloud_print/cloud_print_auth.cc',
309             'service/cloud_print/cloud_print_auth.h',
310             'service/cloud_print/cloud_print_connector.cc',
311             'service/cloud_print/cloud_print_connector.h',
312             'service/cloud_print/cloud_print_consts.cc',
313             'service/cloud_print/cloud_print_consts.h',
314             'service/cloud_print/cloud_print_helpers.cc',
315             'service/cloud_print/cloud_print_helpers.h',
316             'service/cloud_print/cloud_print_proxy.cc',
317             'service/cloud_print/cloud_print_proxy.h',
318             'service/cloud_print/cloud_print_proxy_backend.cc',
319             'service/cloud_print/cloud_print_proxy_backend.h',
320             'service/cloud_print/cloud_print_token_store.cc',
321             'service/cloud_print/cloud_print_token_store.h',
322             'service/cloud_print/cloud_print_url_fetcher.cc',
323             'service/cloud_print/cloud_print_url_fetcher.h',
324             'service/cloud_print/cloud_print_wipeout.cc',
325             'service/cloud_print/cloud_print_wipeout.h',
326             'service/cloud_print/connector_settings.cc',
327             'service/cloud_print/connector_settings.h',
328             'service/cloud_print/job_status_updater.cc',
329             'service/cloud_print/job_status_updater.h',
330             'service/cloud_print/print_system_dummy.cc',
331             'service/cloud_print/print_system.cc',
332             'service/cloud_print/print_system.h',
333             'service/cloud_print/printer_job_handler.cc',
334             'service/cloud_print/printer_job_handler.h',
335             'service/gaia/service_gaia_authenticator.cc',
336             'service/gaia/service_gaia_authenticator.h',
337             'service/net/service_url_request_context.cc',
338             'service/net/service_url_request_context.h',
339           ],
340           'include_dirs': [
341             '..',
342           ],
343           'conditions': [
344             ['OS=="win"', {
345               'defines': [
346                 # CP_PRINT_SYSTEM_AVAILABLE disables default dummy implementation
347                 # of cloud print system, and allows to use custom implementaiton.
348                 'CP_PRINT_SYSTEM_AVAILABLE',
349               ],
350               'sources': [
351                 'service/cloud_print/print_system_win.cc',
352               ],
353             }],
354             ['toolkit_uses_gtk == 1', {
355               'dependencies': [
356                 '../build/linux/system.gyp:gtk',
357               ],
358             }],
359             ['use_cups==1', {
360               'dependencies': [
361                 '../printing/printing.gyp:cups',
362               ],
363               'defines': [
364                 # CP_PRINT_SYSTEM_AVAILABLE disables default dummy implementation
365                 # of cloud print system, and allows to use custom implementaiton.
366                 'CP_PRINT_SYSTEM_AVAILABLE',
367               ],
368               'sources': [
369                 'service/cloud_print/print_system_cups.cc',
370               ],
371             }],
372           ],
373         },
374         {
375           'target_name': 'ipclist',
376           'type': 'executable',
377           'variables': { 'enable_wexit_time_destructors': 1, },
378           'dependencies': [
379             'test_support_common',
380             '../skia/skia.gyp:skia',
381             '../sync/sync.gyp:sync_core',
382           ],
383           'include_dirs': [
384              '..',
385           ],
386           'sources': [
387             'tools/ipclist/ipclist.cc',
388           ],
389         },
390       ],
391     }],  # OS!="ios"
392     ['OS=="mac"',
393       { 'targets': [
394         {
395           'target_name': 'helper_app',
396           'type': 'executable',
397           'variables': { 'enable_wexit_time_destructors': 1, },
398           'product_name': '<(mac_product_name) Helper',
399           'mac_bundle': 1,
400           'dependencies': [
401             'chrome_dll',
402             'infoplist_strings_tool',
403           ],
404           'sources': [
405             # chrome_exe_main_mac.cc's main() is the entry point for
406             # the "chrome" (browser app) target.  All it does is jump
407             # to chrome_dll's ChromeMain.  This is appropriate for
408             # helper processes too, because the logic to discriminate
409             # between process types at run time is actually directed
410             # by the --type command line argument processed by
411             # ChromeMain.  Sharing chrome_exe_main_mac.cc with the
412             # browser app will suffice for now.
413             'app/chrome_exe_main_mac.cc',
414             'app/helper-Info.plist',
415           ],
416           # TODO(mark): Come up with a fancier way to do this.  It should only
417           # be necessary to list helper-Info.plist once, not the three times it
418           # is listed here.
419           'mac_bundle_resources!': [
420             'app/helper-Info.plist',
421           ],
422           # TODO(mark): For now, don't put any resources into this app.  Its
423           # resources directory will be a symbolic link to the browser app's
424           # resources directory.
425           'mac_bundle_resources/': [
426             ['exclude', '.*'],
427           ],
428           'xcode_settings': {
429             'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
430             'CHROMIUM_SHORT_NAME': '<(branding)',
431             'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves',
432             'INFOPLIST_FILE': 'app/helper-Info.plist',
433           },
434           'postbuilds': [
435             {
436               # The helper doesn't have real localizations, it just has
437               # empty .lproj directories, which is enough to convince Cocoa
438               # that anything running out of the helper .app supports those
439               # languages.
440               'postbuild_name': 'Make Empty Localizations',
441               'variables': {
442                 'locale_dirs': [
443                   '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
444                 ],
445               },
446               'action': [
447                 'tools/build/mac/make_locale_dirs.sh',
448                 '<@(locale_dirs)',
449               ],
450             },
451             {
452               # The framework (chrome_dll) defines its load-time path
453               # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
454               # (chrome).  A different relative path needs to be used in
455               # helper_app.
456               'postbuild_name': 'Fix Framework Link',
457               'action': [
458                 'install_name_tool',
459                 '-change',
460                 '@executable_path/../Versions/<(version_full)/<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
461                 '@executable_path/../../../<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
462                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
463               ],
464             },
465             {
466               # Modify the Info.plist as needed.  The script explains why this
467               # is needed.  This is also done in the chrome and chrome_dll
468               # targets.  In this case, --breakpad=0, --keystone=0, and --scm=0
469               # are used because Breakpad, Keystone, and SCM keys are
470               # never placed into the helper.
471               'postbuild_name': 'Tweak Info.plist',
472               'action': ['<(tweak_info_plist_path)',
473                          '--breakpad=0',
474                          '--keystone=0',
475                          '--scm=0'],
476             },
477             {
478               # Make sure there isn't any Objective-C in the helper app's
479               # executable.
480               'postbuild_name': 'Verify No Objective-C',
481               'action': [
482                 '../build/mac/verify_no_objc.sh',
483               ],
484             },
485           ],
486           'conditions': [
487             ['mac_breakpad==1', {
488               'variables': {
489                 # A real .dSYM is needed for dump_syms to operate on.
490                 'mac_real_dsym': 1,
491               },
492               'xcode_settings': {
493                 # With mac_real_dsym set, strip_from_xcode won't be used.
494                 # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode.
495                 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
496               },
497             }],
498             ['asan==1', {
499               'xcode_settings': {
500                 # Override the outer definition of CHROMIUM_STRIP_SAVE_FILE.
501                 'CHROMIUM_STRIP_SAVE_FILE': 'app/app_asan.saves',
502               },
503             }],
504             ['component=="shared_library"', {
505               'xcode_settings': {
506                 'LD_RUNPATH_SEARCH_PATHS': [
507                   # Get back from Chromium.app/Contents/Versions/V/
508                   #                                    Helper.app/Contents/MacOS
509                   '@loader_path/../../../../../../..',
510                 ],
511               },
512             }],
513           ],
514         },  # target helper_app
515         {
516           # A library containing the actual code for the app mode app, shared
517           # by unit tests.
518           'target_name': 'app_mode_app_support',
519           'type': 'static_library',
520           'variables': { 'enable_wexit_time_destructors': 1, },
521           'product_name': 'app_mode_app_support',
522           'dependencies': [
523             '../base/base.gyp:base',
524           ],
525           'sources': [
526             'common/mac/app_mode_chrome_locator.h',
527             'common/mac/app_mode_chrome_locator.mm',
528             'common/mac/app_mode_common.h',
529             'common/mac/app_mode_common.mm',
530           ],
531           'include_dirs': [
532             '..',
533           ],
534         },  # target app_mode_app_support
535         {
536           # This produces the template for app mode loader bundles. It's a
537           # template in the sense that parts of it need to be "filled in" by
538           # Chrome before it can be executed.
539           'target_name': 'app_mode_app',
540           'type': 'executable',
541           'mac_bundle' : 1,
542           'variables': { 'enable_wexit_time_destructors': 1, },
543           'product_name': 'app_mode_loader',
544           'dependencies': [
545             'app_mode_app_support',
546             'infoplist_strings_tool',
547           ],
548           'sources': [
549             'app/app_mode_loader_mac.mm',
550             'app/app_mode-Info.plist',
551           ],
552           'include_dirs': [
553             '..',
554           ],
555           'link_settings': {
556             'libraries': [
557               '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
558               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
559             ],
560           },
561           'mac_bundle_resources!': [
562             'app/app_mode-Info.plist',
563           ],
564           'mac_bundle_resources/': [
565             ['exclude', '.*'],
566           ],
567           'xcode_settings': {
568             'INFOPLIST_FILE': 'app/app_mode-Info.plist',
569             'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_ID@',
570           },
571           'postbuilds' : [
572             {
573               # Modify the Info.plist as needed.  The script explains why this
574               # is needed.  This is also done in the chrome and chrome_dll
575               # targets.  In this case, --breakpad=0, --keystone=0, and --scm=0
576               # are used because Breakpad, Keystone, and SCM keys are
577               # never placed into the app mode loader.
578               'postbuild_name': 'Tweak Info.plist',
579               'action': ['<(tweak_info_plist_path)',
580                          '--breakpad=0',
581                          '--keystone=0',
582                          '--scm=0'],
583             },
584           ],
585         },  # target app_mode_app
586         {
587           # Convenience target to build a disk image.
588           'target_name': 'build_app_dmg',
589           # Don't place this in the 'all' list; most won't want it.
590           # In GYP, booleans are 0/1, not True/False.
591           'suppress_wildcard': 1,
592           'type': 'none',
593           'dependencies': [
594             'chrome',
595           ],
596           'variables': {
597             'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg',
598             'pkg_dmg_script_path': 'installer/mac/pkg-dmg',
600             'conditions': [
601               # This duplicates the output path from build_app_dmg.
602               ['branding=="Chrome"', {
603                 'dmg_name': 'GoogleChrome.dmg',
604               }, { # else: branding!="Chrome"
605                 'dmg_name': 'Chromium.dmg',
606               }],
607             ],
608           },
609           'actions': [
610             {
611               'inputs': [
612                 '<(build_app_dmg_script_path)',
613                 '<(pkg_dmg_script_path)',
614                 '<(PRODUCT_DIR)/<(mac_product_name).app',
615               ],
616               'outputs': [
617                 '<(PRODUCT_DIR)/<(dmg_name)',
618               ],
619               'action_name': 'build_app_dmg',
620               'action': ['<(build_app_dmg_script_path)', '<@(branding)'],
621             },
622           ],  # 'actions'
623         },
624         {
625           # Dummy target to allow chrome to require plugin_carbon_interpose to
626           # build without actually linking to the resulting library.
627           'target_name': 'interpose_dependency_shim',
628           'type': 'executable',
629           'variables': { 'enable_wexit_time_destructors': 1, },
630           'dependencies': [
631             'plugin_carbon_interpose',
632           ],
633           # In release, we end up with a strip step that is unhappy if there is
634           # no binary. Rather than check in a new file for this temporary hack,
635           # just generate a source file on the fly.
636           'actions': [
637             {
638               'action_name': 'generate_stub_main',
639               'process_outputs_as_sources': 1,
640               'inputs': [],
641               'outputs': [ '<(INTERMEDIATE_DIR)/dummy_main.c' ],
642               'action': [
643                 'bash', '-c',
644                 'echo "int main() { return 0; }" > <(INTERMEDIATE_DIR)/dummy_main.c'
645               ],
646             },
647           ],
648         },
649         {
650           # dylib for interposing Carbon calls in the plugin process.
651           'target_name': 'plugin_carbon_interpose',
652           'type': 'shared_library',
653           'variables': { 'enable_wexit_time_destructors': 1, },
654           # This target must not depend on static libraries, else the code in
655           # those libraries would appear twice in plugin processes: Once from
656           # Chromium Framework, and once from this dylib.
657           'dependencies': [
658             'chrome_dll',
659           ],
660           'conditions': [
661             ['component=="shared_library"', {
662               'dependencies': [
663                 '../webkit/support/webkit_support.gyp:glue',
664                 '../content/content.gyp:content_plugin',
665               ],
666               'xcode_settings': {
667                 'LD_RUNPATH_SEARCH_PATHS': [
668                   # Get back from Chromium.app/Contents/Versions/V
669                   '@loader_path/../../../..',
670                 ],
671               },
672             }],
673           ],
674           'sources': [
675             '../content/plugin/plugin_carbon_interpose_mac.cc',
676           ],
677           'include_dirs': [
678             '..',
679           ],
680           'link_settings': {
681             'libraries': [
682               '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
683             ],
684           },
685           'xcode_settings': {
686             'DYLIB_COMPATIBILITY_VERSION': '<(version_mac_dylib)',
687             'DYLIB_CURRENT_VERSION': '<(version_mac_dylib)',
688             'DYLIB_INSTALL_NAME_BASE': '@executable_path/../../..',
689           },
690           'postbuilds': [
691             {
692               # The framework (chrome_dll) defines its load-time path
693               # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
694               # (chrome).  A different relative path needs to be used in
695               # plugin_carbon_interpose, which runs in the helper_app.
696               'postbuild_name': 'Fix Framework Link',
697               'action': [
698                 'install_name_tool',
699                 '-change',
700                 '@executable_path/../Versions/<(version_full)/<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
701                 '@executable_path/../../../<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
702                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
703               ],
704             },
705           ],
706         },
707         {
708           'target_name': 'infoplist_strings_tool',
709           'type': 'executable',
710           'variables': { 'enable_wexit_time_destructors': 1, },
711           'dependencies': [
712             'chrome_resources.gyp:chrome_strings',
713             '../base/base.gyp:base',
714             '../ui/ui.gyp:ui',
715           ],
716           'include_dirs': [
717             '<(grit_out_dir)',
718           ],
719           'sources': [
720             'tools/mac_helpers/infoplist_strings_util.mm',
721           ],
722         },
723       ],  # targets
724     }],  # OS=="mac"
725     ['OS!="mac" and OS!="ios"', {
726       'targets': [
727         {
728           'target_name': 'convert_dict',
729           'type': 'executable',
730           'variables': { 'enable_wexit_time_destructors': 1, },
731           'dependencies': [
732             '../base/base.gyp:base',
733             '../base/base.gyp:base_i18n',
734             'convert_dict_lib',
735             '../third_party/hunspell/hunspell.gyp:hunspell',
736           ],
737           'sources': [
738             'tools/convert_dict/convert_dict.cc',
739           ],
740         },
741         {
742           'target_name': 'convert_dict_lib',
743           'product_name': 'convert_dict',
744           'type': 'static_library',
745           'variables': { 'enable_wexit_time_destructors': 1, },
746           'include_dirs': [
747             '..',
748           ],
749           'dependencies': [
750             '../base/base.gyp:base',
751           ],
752           'sources': [
753             'tools/convert_dict/aff_reader.cc',
754             'tools/convert_dict/aff_reader.h',
755             'tools/convert_dict/dic_reader.cc',
756             'tools/convert_dict/dic_reader.h',
757             'tools/convert_dict/hunspell_reader.cc',
758             'tools/convert_dict/hunspell_reader.h',
759           ],
760         },
761         {
762           'target_name': 'flush_cache',
763           'type': 'executable',
764           'dependencies': [
765             '../base/base.gyp:base',
766             '../base/base.gyp:test_support_base',
767           ],
768           'sources': [
769             'tools/perf/flush_cache/flush_cache.cc',
770           ],
771         },
772       ],
773     }],  # OS!="mac" and OS!="ios"
774     ['OS=="linux"',
775       { 'targets': [
776         {
777           'target_name': 'linux_symbols',
778           'type': 'none',
779           'conditions': [
780             ['linux_dump_symbols==1', {
781               'actions': [
782                 {
783                   'action_name': 'dump_symbols',
784                   'inputs': [
785                     '<(DEPTH)/build/linux/dump_app_syms',
786                     '<(PRODUCT_DIR)/dump_syms',
787                     '<(PRODUCT_DIR)/chrome',
788                   ],
789                   'outputs': [
790                     '<(PRODUCT_DIR)/chrome.breakpad.<(target_arch)',
791                   ],
792                   'action': ['<(DEPTH)/build/linux/dump_app_syms',
793                              '<(PRODUCT_DIR)/dump_syms',
794                              '<(linux_strip_binary)',
795                              '<(PRODUCT_DIR)/chrome',
796                              '<@(_outputs)'],
797                   'message': 'Dumping breakpad symbols to <(_outputs)',
798                   'process_outputs_as_sources': 1,
799                 },
800               ],
801               'dependencies': [
802                 'chrome',
803                 '../breakpad/breakpad.gyp:dump_syms',
804               ],
805             }],
806             ['linux_strip_reliability_tests==1', {
807               'actions': [
808                 {
809                   'action_name': 'strip_reliability_tests',
810                   'inputs': [
811                     '<(PRODUCT_DIR)/automated_ui_tests',
812                     '<(PRODUCT_DIR)/reliability_tests',
813                     '<(PRODUCT_DIR)/_pyautolib.so',
814                   ],
815                   'outputs': [
816                     '<(PRODUCT_DIR)/strip_reliability_tests.stamp',
817                   ],
818                   'action': ['strip',
819                              '-g',
820                              '<@(_inputs)'],
821                   'message': 'Stripping reliability tests',
822                 },
823               ],
824               'dependencies': [
825                 'automated_ui_tests',
826                 'reliability_tests',
827               ],
828             }],
829           ],
830         },
831         {
832           'target_name': 'ipcfuzz',
833           'type': 'loadable_module',
834           'include_dirs': [
835             '..',
836           ],
837           'dependencies': [
838             'test_support_common',
839             '../skia/skia.gyp:skia',
840           ],
841           'sources': [
842             'tools/ipclist/ipcfuzz.cc',
843           ],
844         },
845       ],
846     },],  # OS=="linux"
847     ['OS=="win"',
848       { 'targets': [
849         {
850           # For historical reasons, chrome/chrome.sln has been the entry point
851           # for new Chrome developers. To assist development, include several
852           # core unittests that are otherwise only accessible side-by-side with
853           # chrome via all/all.sln.
854           'target_name': 'test_targets',
855           'type': 'none',
856           'dependencies': [
857             '../base/base.gyp:base_unittests',
858             '../chrome_frame/chrome_frame.gyp:chrome_frame_tests',
859             '../chrome_frame/chrome_frame.gyp:chrome_frame_net_tests',
860             '../content/content.gyp:content_browsertests',
861             '../content/content.gyp:content_shell',
862             '../content/content.gyp:content_unittests',
863             '../net/net.gyp:net_unittests',
864             '../ui/ui.gyp:ui_unittests',
865           ],
866           'conditions': [
867             ['use_aura==1', {
868               'dependencies!': [
869                 '../chrome_frame/chrome_frame.gyp:chrome_frame_tests',
870                 '../chrome_frame/chrome_frame.gyp:chrome_frame_net_tests',
871               ],
872             }],
873           ],
874         },
875         {
876           'target_name': 'chrome_version_resources',
877           'type': 'none',
878           'conditions': [
879             ['branding == "Chrome"', {
880               'variables': {
881                  'branding_path': 'app/theme/google_chrome/BRANDING',
882               },
883             }, { # else branding!="Chrome"
884               'variables': {
885                  'branding_path': 'app/theme/chromium/BRANDING',
886               },
887             }],
888           ],
889           'variables': {
890             'output_dir': 'chrome_version',
891             'template_input_path': 'app/chrome_version.rc.version',
892           },
893           'direct_dependent_settings': {
894             'include_dirs': [
895               '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
896             ],
897           },
898           'sources': [
899             'app/app_host_exe.ver',
900             'app/chrome_exe.ver',
901             'app/chrome_dll.ver',
902             'app/nacl64_exe.ver',
903             'app/other.ver',
904           ],
905           'includes': [
906             'version_resource_rules.gypi',
907           ],
908         },
909         {
910           'target_name': 'chrome_version_header',
911           'type': 'none',
912           'hard_dependency': 1,
913           'actions': [
914             {
915               'action_name': 'version_header',
916               'variables': {
917                 'lastchange_path':
918                   '<(DEPTH)/build/util/LASTCHANGE',
919               },
920               'conditions': [
921                 ['branding == "Chrome"', {
922                   'variables': {
923                      'branding_path': 'app/theme/google_chrome/BRANDING',
924                   },
925                 }, { # else branding!="Chrome"
926                   'variables': {
927                      'branding_path': 'app/theme/chromium/BRANDING',
928                   },
929                 }],
930               ],
931               'inputs': [
932                 '<(version_path)',
933                 '<(branding_path)',
934                 '<(lastchange_path)',
935                 'version.h.in',
936               ],
937               'outputs': [
938                 '<(SHARED_INTERMEDIATE_DIR)/version.h',
939               ],
940               'action': [
941                 'python',
942                 '<(version_py_path)',
943                 '-f', '<(version_path)',
944                 '-f', '<(branding_path)',
945                 '-f', '<(lastchange_path)',
946                 'version.h.in',
947                 '<@(_outputs)',
948               ],
949               'message': 'Generating version header file: <@(_outputs)',
950             },
951           ],
952         },
953         {
954           'target_name': 'automation',
955           'type': 'static_library',
956           'dependencies': [
957             'chrome_resources.gyp:theme_resources',
958             '../skia/skia.gyp:skia',
959           ],
960           'include_dirs': [
961             '..',
962           ],
963           'sources': [
964              'test/automation/automation_handle_tracker.cc',
965              'test/automation/automation_handle_tracker.h',
966              'test/automation/automation_json_requests.cc',
967              'test/automation/automation_json_requests.h',
968              'test/automation/automation_proxy.cc',
969              'test/automation/automation_proxy.h',
970              'test/automation/browser_proxy.cc',
971              'test/automation/browser_proxy.h',
972              'test/automation/tab_proxy.cc',
973              'test/automation/tab_proxy.h',
974              'test/automation/value_conversion_traits.cc',
975              'test/automation/value_conversion_traits.h',
976              'test/automation/value_conversion_util.h',
977              'test/automation/window_proxy.cc',
978              'test/automation/window_proxy.h',
979           ],
980         },
981         {
982           'target_name': 'crash_service',
983           'type': 'executable',
984           'dependencies': [
985             'app/policy/cloud_policy_codegen.gyp:policy',
986             'installer_util',
987             '../base/base.gyp:base',
988             '../breakpad/breakpad.gyp:breakpad_handler',
989             '../breakpad/breakpad.gyp:breakpad_sender',
990             '../chrome/common_constants.gyp:common_constants',
991           ],
992           'include_dirs': [
993             '..',
994           ],
995           'sources': [
996             'tools/crash_service/crash_service.cc',
997             'tools/crash_service/crash_service.h',
998             'tools/crash_service/main.cc',
999           ],
1000           'msvs_settings': {
1001             'VCLinkerTool': {
1002               'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
1003             },
1004           },
1005         },
1006         {
1007           'target_name': 'crash_service_win64',
1008           'type': 'executable',
1009           'product_name': 'crash_service64',
1010           'dependencies': [
1011             'installer_util_nacl_win64',
1012             '../base/base.gyp:base_static_win64',
1013             '../breakpad/breakpad.gyp:breakpad_handler_win64',
1014             '../breakpad/breakpad.gyp:breakpad_sender_win64',
1015             '../chrome/common_constants.gyp:common_constants_win64',
1016           ],
1017           'include_dirs': [
1018             '..',
1019           ],
1020           'sources': [
1021             'tools/crash_service/crash_service.cc',
1022             'tools/crash_service/crash_service.h',
1023             'tools/crash_service/main.cc',
1024             '../content/public/common/content_switches.cc',
1025           ],
1026           'defines': [
1027             'COMPILE_CONTENT_STATICALLY',
1028           ],
1029           'msvs_settings': {
1030             'VCLinkerTool': {
1031               'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
1032             },
1033           },
1034           'configurations': {
1035             'Common_Base': {
1036               'msvs_target_platform': 'x64',
1037             },
1038           },
1039         },
1040         {
1041           'target_name': 'sb_sigutil',
1042           'type': 'executable',
1043           'dependencies': [
1044             '../base/base.gyp:base',
1045             'safe_browsing_proto',
1046           ],
1047           'sources': [
1048             'browser/safe_browsing/signature_util.h',
1049             'browser/safe_browsing/signature_util_win.cc',
1050             'tools/safe_browsing/sb_sigutil.cc',
1051           ],
1052         },
1053       ]},  # 'targets'
1054     ],  # OS=="win"
1055     ['chromeos==1', {
1056       'includes': [ 'chrome_browser_chromeos.gypi' ],
1057     }],  # chromeos==1
1058     ['OS=="android"',
1059       {
1060       'targets': [
1061         {
1062           'target_name': 'chrome_java',
1063           'type': 'none',
1064           'dependencies': [
1065             '../base/base.gyp:base',
1066             '../content/content.gyp:content_java',
1067             '../content/content.gyp:navigation_interception_java',
1068             '../content/content.gyp:web_contents_delegate_android_java',
1069             '../ui/ui.gyp:ui_java',
1070           ],
1071           'variables': {
1072             'package_name': 'chrome',
1073             'java_in_dir': '../chrome/android/java',
1074           },
1075           'includes': [
1076             '../build/java.gypi',
1077           ],
1078         },
1079       ], # 'targets'
1080       'includes': [
1081         'chrome_android.gypi',
1082       ]}, # 'includes'
1083     ],  # OS=="android"
1084   ],  # 'conditions'