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.
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.
14 # GN version is the group //chrome:browser_dependencies
15 'chromium_browser_dependencies': [
18 '../sync/sync.gyp:sync',
20 # GN version is the group //chrome:child_dependencies
21 'chromium_child_dependencies': [
23 '../sync/sync.gyp:sync',
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',
30 'chromium_browser_dependencies': [
32 '../ppapi/ppapi_internal.gyp:ppapi_host',
34 'chromium_child_dependencies': [
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',
44 [ 'cld_version==0 or cld_version==2', {
45 'chromium_child_dependencies': [
46 # Use whatever CLD2 data access mode that the application
48 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
50 ['enable_plugins==1 and disable_nacl==0', {
51 'chromium_child_dependencies': [
52 '<(DEPTH)/components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin',
56 'chromium_child_dependencies': [
57 '../remoting/remoting.gyp:remoting_client_plugin',
62 ['enable_basic_printing==1 or enable_print_preview==1', {
63 'chromium_browser_dependencies': [
64 '../printing/printing.gyp:printing',
67 ['enable_print_preview==1', {
68 'chromium_browser_dependencies': [
73 'platform_locale_settings_grd':
74 'app/resources/locale_settings_win.grd',
80 ['branding=="Chrome"', {
81 'platform_locale_settings_grd':
82 'app/resources/locale_settings_google_chromeos.grd',
83 }, { # branding!=Chrome
84 'platform_locale_settings_grd':
85 'app/resources/locale_settings_chromiumos.grd',
89 'platform_locale_settings_grd':
90 'app/resources/locale_settings_linux.grd',
94 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
95 'platform_locale_settings_grd':
96 'app/resources/locale_settings_linux.grd',
99 'tweak_info_plist_path': '../build/mac/tweak_info_plist.py',
100 'platform_locale_settings_grd':
101 'app/resources/locale_settings_mac.grd',
106 # Place some targets in gypi files to reduce contention on this file.
107 # By using an include, we keep everything in a single xcodeproj file.
108 # Note on Win64 targets: targets that end with win64 be used
109 # on 64-bit Windows only. Targets that end with nacl_win64 should be used
110 # by Native Client only.
111 # NOTE: Most new includes should go in the OS!="ios" condition below.
112 '../build/chrome_settings.gypi',
113 '../build/util/version.gypi',
114 '../build/win_precompile.gypi',
115 'chrome_browser.gypi',
116 'chrome_browser_ui.gypi',
117 'chrome_common.gypi',
118 'chrome_installer_util.gypi',
124 'app_installer/app_installer.gypi',
126 'chrome_debugger.gypi',
129 'chrome_installer.gypi',
130 'chrome_plugin.gypi',
131 'chrome_renderer.gypi',
133 'chrome_tests_unit.gypi',
134 'chrome_utility.gypi',
135 'policy_templates.gypi',
139 'target_name': 'default_extensions',
145 'destination': '<(PRODUCT_DIR)/extensions',
147 'browser/extensions/default_extensions/external_extensions.json'
158 'app_shim/app_shim.gypi',
159 'browser/apps/app_shim/browser_app_shim.gypi',
163 'target_name': 'helper_app',
164 'type': 'executable',
165 'variables': { 'enable_wexit_time_destructors': 1, },
166 'product_name': '<(mac_product_name) Helper',
170 'infoplist_strings_tool',
173 # chrome_exe_main_mac.cc's main() is the entry point for
174 # the "chrome" (browser app) target. All it does is jump
175 # to chrome_dll's ChromeMain. This is appropriate for
176 # helper processes too, because the logic to discriminate
177 # between process types at run time is actually directed
178 # by the --type command line argument processed by
179 # ChromeMain. Sharing chrome_exe_main_mac.cc with the
180 # browser app will suffice for now.
181 'app/chrome_exe_main_mac.cc',
182 'app/helper-Info.plist',
184 # TODO(mark): Come up with a fancier way to do this. It should only
185 # be necessary to list helper-Info.plist once, not the three times it
187 'mac_bundle_resources!': [
188 'app/helper-Info.plist',
190 # TODO(mark): For now, don't put any resources into this app. Its
191 # resources directory will be a symbolic link to the browser app's
192 # resources directory.
193 'mac_bundle_resources/': [
197 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
198 'CHROMIUM_SHORT_NAME': '<(branding)',
199 'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves',
200 'INFOPLIST_FILE': 'app/helper-Info.plist',
204 # The helper doesn't have real localizations, it just has
205 # empty .lproj directories, which is enough to convince Cocoa
206 # that anything running out of the helper .app supports those
208 'postbuild_name': 'Make Empty Localizations',
211 '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))',
215 'tools/build/mac/make_locale_dirs.sh',
220 # The framework (chrome_dll) defines its load-time path
221 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
222 # (chrome). A different relative path needs to be used in
224 'postbuild_name': 'Fix Framework Link',
228 '@executable_path/../Versions/<(version_full)/<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
229 '@executable_path/../../../<(mac_product_name) Framework.framework/<(mac_product_name) Framework',
230 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
234 # Modify the Info.plist as needed. The script explains why this
235 # is needed. This is also done in the chrome and chrome_dll
236 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
237 # are used because Breakpad, Keystone, and SCM keys are
238 # never placed into the helper.
239 'postbuild_name': 'Tweak Info.plist',
240 'action': ['<(tweak_info_plist_path)',
246 # Make sure there isn't any Objective-C in the helper app's
248 'postbuild_name': 'Verify No Objective-C',
250 '../build/mac/verify_no_objc.sh',
255 ['mac_breakpad==1', {
257 # A real .dSYM is needed for dump_syms to operate on.
261 # With mac_real_dsym set, strip_from_xcode won't be used.
262 # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode.
263 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
266 ['component=="shared_library"', {
268 'LD_RUNPATH_SEARCH_PATHS': [
269 # Get back from Chromium.app/Contents/Versions/V/
270 # Helper.app/Contents/MacOS
271 '@loader_path/../../../../../../..',
276 }, # target helper_app
278 # A library containing the actual code for the app mode app, shared
280 # GN: //chrome/common:app_mode_app_support
281 'target_name': 'app_mode_app_support',
282 'type': 'static_library',
283 'variables': { 'enable_wexit_time_destructors': 1, },
284 'product_name': 'app_mode_app_support',
286 '../base/base.gyp:base',
287 'common_constants.gyp:common_constants',
290 'common/mac/app_mode_chrome_locator.h',
291 'common/mac/app_mode_chrome_locator.mm',
292 'common/mac/app_mode_common.h',
293 'common/mac/app_mode_common.mm',
298 }, # target app_mode_app_support
300 # Convenience target to build a disk image.
301 'target_name': 'build_app_dmg',
302 # Don't place this in the 'all' list; most won't want it.
303 # In GYP, booleans are 0/1, not True/False.
304 'suppress_wildcard': 1,
310 'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg',
311 'pkg_dmg_script_path': 'installer/mac/pkg-dmg',
314 # This duplicates the output path from build_app_dmg.
315 ['branding=="Chrome"', {
316 'dmg_name': 'GoogleChrome.dmg',
317 }, { # else: branding!="Chrome"
318 'dmg_name': 'Chromium.dmg',
325 '<(build_app_dmg_script_path)',
326 '<(pkg_dmg_script_path)',
327 '<(PRODUCT_DIR)/<(mac_product_name).app',
330 '<(PRODUCT_DIR)/<(dmg_name)',
332 'action_name': 'build_app_dmg',
333 'action': ['<(build_app_dmg_script_path)', '<@(branding)'],
338 'target_name': 'infoplist_strings_tool',
339 'type': 'executable',
340 'variables': { 'enable_wexit_time_destructors': 1, },
342 'chrome_resources.gyp:chrome_strings',
343 '../base/base.gyp:base',
344 '../ui/base/ui_base.gyp:ui_base',
345 '../ui/gfx/gfx.gyp:gfx',
346 '../ui/gfx/gfx.gyp:gfx_geometry',
352 'tools/mac_helpers/infoplist_strings_util.mm',
360 'target_name': 'linux_symbols',
363 ['linux_dump_symbols==1', {
366 'action_name': 'dump_symbols',
368 '<(DEPTH)/build/linux/dump_app_syms',
369 '<(PRODUCT_DIR)/dump_syms',
370 '<(PRODUCT_DIR)/chrome',
373 '<(PRODUCT_DIR)/chrome.breakpad.<(target_arch)',
375 'action': ['<(DEPTH)/build/linux/dump_app_syms',
376 '<(PRODUCT_DIR)/dump_syms',
377 '<(linux_strip_binary)',
378 '<(PRODUCT_DIR)/chrome',
380 'message': 'Dumping breakpad symbols to <(_outputs)',
381 'process_outputs_as_sources': 1,
386 '../breakpad/breakpad.gyp:dump_syms',
396 # For historical reasons, chrome/chrome.sln has been the entry point
397 # for new Chrome developers. To assist development, include several
398 # core unittests that are otherwise only accessible side-by-side with
399 # chrome via all/all.sln.
400 'target_name': 'test_targets',
403 '../base/base.gyp:base_unittests',
404 '../content/content_shell_and_tests.gyp:content_browsertests',
405 '../content/content_shell_and_tests.gyp:content_shell',
406 '../content/content_shell_and_tests.gyp:content_unittests',
407 '../net/net.gyp:net_unittests',
408 '../ui/base/ui_base_tests.gyp:ui_base_unittests',
412 'target_name': 'chrome_version_resources',
415 ['branding == "Chrome"', {
417 'branding_path': 'app/theme/google_chrome/BRANDING',
419 }, { # else branding!="Chrome"
421 'branding_path': 'app/theme/chromium/BRANDING',
426 'output_dir': 'chrome_version',
427 'template_input_path': 'app/chrome_version.rc.version',
429 'direct_dependent_settings': {
431 '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
435 'app/chrome_exe.ver',
436 'app/chrome_dll.ver',
437 'app/nacl64_exe.ver',
441 'version_resource_rules.gypi',
445 # GN version: //chrome:version_header
446 'target_name': 'chrome_version_header',
448 'hard_dependency': 1,
451 'action_name': 'version_header',
454 '<(DEPTH)/build/util/LASTCHANGE',
457 ['branding == "Chrome"', {
459 'branding_path': 'app/theme/google_chrome/BRANDING',
461 }, { # else branding!="Chrome"
463 'branding_path': 'app/theme/chromium/BRANDING',
470 '<(lastchange_path)',
474 '<(SHARED_INTERMEDIATE_DIR)/version.h',
478 '<(version_py_path)',
479 '-f', '<(version_path)',
480 '-f', '<(branding_path)',
481 '-f', '<(lastchange_path)',
485 'message': 'Generating version header file: <@(_outputs)',
490 'target_name': 'crash_service',
491 'type': 'executable',
494 '../base/base.gyp:base',
495 '../chrome/common_constants.gyp:common_constants',
496 '../components/components.gyp:breakpad_crash_service',
502 'tools/crash_service/main.cc',
506 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
511 'target_name': 'sb_sigutil',
512 'type': 'executable',
514 '../base/base.gyp:base',
515 '../crypto/crypto.gyp:crypto',
516 'safe_browsing_proto',
519 'common/safe_browsing/binary_feature_extractor.cc',
520 'common/safe_browsing/binary_feature_extractor.h',
521 'common/safe_browsing/binary_feature_extractor_win.cc',
522 'common/safe_browsing/pe_image_reader_win.cc',
523 'common/safe_browsing/pe_image_reader_win.h',
524 'tools/safe_browsing/sb_sigutil.cc',
529 'app_shim/app_shim_win.gypi',
530 'chrome_watcher/chrome_watcher.gypi',
531 'chrome_process_finder.gypi',
535 ['OS=="win" and target_arch=="ia32"',
538 'target_name': 'chrome_user32_delay_imports',
541 'lib_dir': '<(INTERMEDIATE_DIR)',
544 'chrome.user32.delay.imports'
547 '../build/win/importlibs/create_import_lib.gypi',
549 'direct_dependent_settings': {
552 'AdditionalLibraryDirectories': ['<(lib_dir)', ],
553 'AdditionalDependencies': ['chrome.user32.delay.lib', ],
559 'target_name': 'crash_service_win64',
560 'type': 'executable',
561 'product_name': 'crash_service64',
563 'installer_util_nacl_win64',
564 '../base/base.gyp:base_static_win64',
565 '../chrome/common_constants.gyp:common_constants_win64',
566 '../components/components.gyp:breakpad_crash_service_win64',
572 '../content/public/common/content_switches.cc',
573 'tools/crash_service/main.cc',
576 'COMPILE_CONTENT_STATICALLY',
580 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
585 'msvs_target_platform': 'x64',
590 ], # OS=="win" and target_arch=="ia32"
592 'includes': [ 'chrome_browser_chromeos.gypi' ],
598 # GN: //chrome/android:chrome_java
599 'target_name': 'chrome_java',
602 'activity_type_ids_java',
603 'chrome_resources.gyp:chrome_strings',
604 'chrome_strings_grd',
605 'chrome_version_java',
606 'document_tab_model_info_proto_java',
607 'profile_account_management_metrics_java',
608 'content_setting_java',
609 'content_settings_type_java',
610 'page_info_connection_type_java',
611 'profile_sync_service_model_type_selection_java',
613 'toolbar_model_security_levels_java',
614 'tab_load_status_java',
615 '../base/base.gyp:base',
616 '../components/components.gyp:bookmarks_java',
617 '../components/components.gyp:dom_distiller_core_java',
618 '../components/components.gyp:enhanced_bookmarks_launch_location_srcjar',
619 '../components/components.gyp:gcm_driver_java',
620 '../components/components.gyp:invalidation_java',
621 '../components/components.gyp:navigation_interception_java',
622 '../components/components.gyp:precache_java',
623 '../components/components.gyp:variations_java',
624 '../components/components.gyp:web_contents_delegate_android_java',
625 '../content/content.gyp:content_java',
626 '../media/media.gyp:media_java',
627 '../printing/printing.gyp:printing_java',
628 '../sync/sync.gyp:sync_java',
629 '../third_party/android_data_chart/android_data_chart.gyp:android_data_chart_java',
630 '../third_party/android_media/android_media.gyp:android_media_java',
631 '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
632 '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib',
633 '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
634 '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
635 '../ui/android/ui_android.gyp:ui_java',
638 'java_in_dir': '../chrome/android/java',
639 'has_java_resources': 1,
640 'R_package': 'org.chromium.chrome',
641 'R_package_relpath': 'org/chromium/chrome',
642 # Include xml string files generated from generated_resources.grd
643 'res_extra_dirs': ['<(SHARED_INTERMEDIATE_DIR)/chrome/java/res'],
644 'res_extra_files': ['<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)/chrome" app/generated_resources.grd)'],
647 '../build/java.gypi',
651 # GN: //chrome/android:chrome_strings_grd
652 'target_name': 'chrome_strings_grd',
655 'grd_file': '../chrome/android/java/strings/android_chrome_strings.grd',
658 '../build/java_strings_grd.gypi',
662 # GN: //chrome:content_setting_javagen
663 'target_name': 'content_setting_java',
666 'source_file': '../components/content_settings/core/common/content_settings.h',
668 'includes': [ '../build/android/java_cpp_enum.gypi' ],
671 # GN: //chrome:content_settings_type_javagen
672 'target_name': 'content_settings_type_java',
675 'source_file': '../components/content_settings/core/common/content_settings_types.h',
677 'includes': [ '../build/android/java_cpp_enum.gypi' ],
680 # GN: //chrome:page_info_connection_type_javagen
681 'target_name': 'page_info_connection_type_java',
684 'source_file': 'browser/ui/android/website_settings_popup_android.h',
686 'includes': [ '../build/android/java_cpp_enum.gypi' ],
690 'chrome_android.gypi',
693 ['configuration_policy==1 and OS!="android" and OS!="ios"', {
694 'includes': [ 'policy.gypi', ],
696 ['enable_extensions==1', {
698 'chrome_browser_extensions.gypi',
701 ['enable_print_preview==1', {
704 # GN version: //chrome/service
705 'target_name': 'service',
706 'type': 'static_library',
707 'variables': { 'enable_wexit_time_destructors': 1, },
709 'chrome_resources.gyp:chrome_strings',
712 '../base/base.gyp:base',
713 '../components/components.gyp:cloud_devices_common',
714 '../google_apis/google_apis.gyp:google_apis',
715 '../jingle/jingle.gyp:notifier',
716 '../net/net.gyp:net',
717 '../printing/printing.gyp:printing',
718 '../skia/skia.gyp:skia',
719 '../third_party/libjingle/libjingle.gyp:libjingle',
722 # Note: sources list duplicated in GN build.
723 'service/cloud_print/cdd_conversion_win.cc',
724 'service/cloud_print/cdd_conversion_win.h',
725 'service/cloud_print/cloud_print_auth.cc',
726 'service/cloud_print/cloud_print_auth.h',
727 'service/cloud_print/cloud_print_connector.cc',
728 'service/cloud_print/cloud_print_connector.h',
729 'service/cloud_print/cloud_print_proxy.cc',
730 'service/cloud_print/cloud_print_proxy.h',
731 'service/cloud_print/cloud_print_proxy_backend.cc',
732 'service/cloud_print/cloud_print_proxy_backend.h',
733 'service/cloud_print/cloud_print_service_helpers.cc',
734 'service/cloud_print/cloud_print_service_helpers.h',
735 'service/cloud_print/cloud_print_token_store.cc',
736 'service/cloud_print/cloud_print_token_store.h',
737 'service/cloud_print/cloud_print_url_fetcher.cc',
738 'service/cloud_print/cloud_print_url_fetcher.h',
739 'service/cloud_print/cloud_print_wipeout.cc',
740 'service/cloud_print/cloud_print_wipeout.h',
741 'service/cloud_print/connector_settings.cc',
742 'service/cloud_print/connector_settings.h',
743 'service/cloud_print/job_status_updater.cc',
744 'service/cloud_print/job_status_updater.h',
745 'service/cloud_print/print_system.cc',
746 'service/cloud_print/print_system.h',
747 'service/cloud_print/print_system_win.cc',
748 'service/cloud_print/printer_job_handler.cc',
749 'service/cloud_print/printer_job_handler.h',
750 'service/cloud_print/printer_job_queue_handler.cc',
751 'service/cloud_print/printer_job_queue_handler.h',
752 'service/net/service_url_request_context_getter.cc',
753 'service/net/service_url_request_context_getter.h',
754 'service/service_ipc_server.cc',
755 'service/service_ipc_server.h',
756 'service/service_main.cc',
757 'service/service_process.cc',
758 'service/service_process.h',
759 'service/service_process_prefs.cc',
760 'service/service_process_prefs.h',
761 'service/service_utility_process_host.cc',
762 'service/service_utility_process_host.h',
770 '../printing/printing.gyp:cups',
773 'service/cloud_print/print_system_cups.cc',
776 ['OS!="win" and use_cups!=1', {
778 'service/cloud_print/print_system_dummy.cc',
783 'service/service_utility_process_host.cc',
784 'service/service_utility_process_host.h',
793 'kasko_exe_dir': '<(DEPTH)/third_party/kasko',
797 'target_name': 'kasko_dll',
800 '<(PRODUCT_DIR)/kasko.dll',
801 '<(PRODUCT_DIR)/kasko.dll.pdb',
805 'destination': '<(PRODUCT_DIR)',
807 '<(kasko_exe_dir)/kasko.dll',
808 '<(kasko_exe_dir)/kasko.dll.pdb',
812 'direct_dependent_settings': {
815 'AdditionalDependencies': [
818 'AdditionalLibraryDirectories': [
819 '<(DEPTH)/third_party/kasko'