| # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| { |
| 'variables': { |
| 'chromium_code': 1, |
| |
| # Define the common dependencies that contain all the actual |
| # Chromium functionality. This list gets pulled in below by |
| # the link of the actual chrome (or chromium) executable on |
| # Linux or Mac, and into chrome.dll on Windows. |
| # NOTE: Most new includes should go in the OS!="ios" condition below. |
| # |
| # GN version is the group //chrome:browser_dependencies |
| 'chromium_browser_dependencies': [ |
| 'common', |
| 'browser', |
| '../components/sync.gyp:sync', |
| ], |
| # GN version is the group //chrome:child_dependencies |
| 'chromium_child_dependencies': [ |
| 'common', |
| '../components/sync.gyp:sync', |
| ], |
| 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
| 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 'conditions': [ |
| ['OS!="ios"', { |
| 'chromium_browser_dependencies': [ |
| 'debugger', |
| '../ppapi/ppapi_internal.gyp:ppapi_host', |
| ], |
| 'chromium_child_dependencies': [ |
| 'child', |
| 'gpu', |
| 'renderer', |
| 'utility', |
| '../content/content.gyp:content_gpu', |
| '../content/content.gyp:content_ppapi_plugin', |
| '../third_party/WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resources', |
| ], |
| 'conditions': [ |
| ['enable_plugins==1 and disable_nacl==0', { |
| 'chromium_child_dependencies': [ |
| '<(DEPTH)/components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin', |
| ], |
| }], |
| ], |
| }], |
| ['enable_basic_printing==1 or enable_print_preview==1', { |
| 'chromium_browser_dependencies': [ |
| '../printing/printing.gyp:printing', |
| ], |
| }], |
| ['enable_print_preview==1', { |
| 'chromium_browser_dependencies': [ |
| 'service', |
| ], |
| }], |
| ['OS=="win"', { |
| 'platform_locale_settings_grd': |
| 'app/resources/locale_settings_win.grd', |
| },], |
| ['OS=="linux"', { |
| 'conditions': [ |
| ['chromeos==1', { |
| 'platform_locale_settings_grd': |
| 'app/resources/locale_settings_<(branding_path_component)os.grd', |
| }, { # chromeos==0 |
| 'platform_locale_settings_grd': |
| 'app/resources/locale_settings_linux.grd', |
| }], |
| ], |
| },], |
| ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', { |
| 'platform_locale_settings_grd': |
| 'app/resources/locale_settings_linux.grd', |
| },], |
| ['OS=="mac"', { |
| 'tweak_info_plist_path': '../build/mac/tweak_info_plist.py', |
| 'platform_locale_settings_grd': |
| 'app/resources/locale_settings_mac.grd', |
| }], # OS=="mac" |
| ], # conditions |
| }, # variables |
| 'includes': [ |
| # Place some targets in gypi files to reduce contention on this file. |
| # By using an include, we keep everything in a single xcodeproj file. |
| # Note on Win64 targets: targets that end with win64 be used |
| # on 64-bit Windows only. Targets that end with nacl_win64 should be used |
| # by Native Client only. |
| # NOTE: Most new includes should go in the OS!="ios" condition below. |
| '../build/chrome_settings.gypi', |
| '../build/util/version.gypi', |
| '../build/win_precompile.gypi', |
| 'chrome_browser.gypi', |
| 'chrome_browser_ui.gypi', |
| 'chrome_common.gypi', |
| 'chrome_installer_static.gypi', |
| 'chrome_installer_util.gypi', |
| 'chrome_features.gypi', |
| ], |
| 'conditions': [ |
| ['OS!="ios"', { |
| 'includes': [ |
| '../apps/apps.gypi', |
| 'chrome_child.gypi', |
| 'chrome_debugger.gypi', |
| 'chrome_dll.gypi', |
| 'chrome_exe.gypi', |
| 'chrome_gpu.gypi', |
| 'chrome_installer.gypi', |
| 'chrome_renderer.gypi', |
| 'chrome_tests.gypi', |
| 'chrome_tests_unit.gypi', |
| 'chrome_utility.gypi', |
| 'policy_templates.gypi', |
| ], |
| 'targets': [ |
| { |
| # GN version: //chrome/browser/extensions/default_extensions |
| 'target_name': 'default_extensions', |
| 'type': 'none', |
| 'conditions': [ |
| ['OS=="win"', { |
| 'copies': [ |
| { |
| 'destination': '<(PRODUCT_DIR)/extensions', |
| 'files': [ |
| 'browser/extensions/default_extensions/external_extensions.json' |
| ] |
| } |
| ], |
| }] |
| ], |
| }, |
| ], |
| }], # OS!="ios" |
| ['OS=="mac"', { |
| 'includes': [ |
| 'app_shim/app_shim.gypi', |
| 'browser/apps/app_shim/browser_app_shim.gypi', |
| ], |
| 'targets': [ |
| { |
| 'target_name': 'helper_app', |
| 'type': 'executable', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 'product_name': '<(mac_product_name) Helper', |
| 'mac_bundle': 1, |
| 'dependencies': [ |
| 'chrome_dll_dependency_shim', |
| 'infoplist_strings_tool', |
| 'common_constants.gyp:version_header', |
| ], |
| 'defines': [ |
| 'HELPER_EXECUTABLE' |
| ], |
| 'sources': [ |
| # chrome_exe_main_mac.c's main() is the entry point for |
| # the "chrome" (browser app) target. All it does is jump |
| # to chrome_dll's ChromeMain. This is appropriate for |
| # helper processes too, because the logic to discriminate |
| # between process types at run time is actually directed |
| # by the --type command line argument processed by |
| # ChromeMain. Sharing chrome_exe_main_mac.c with the |
| # browser app will suffice for now. |
| 'app/chrome_exe_main_mac.c', |
| 'app/helper-Info.plist', |
| ], |
| # TODO(mark): Come up with a fancier way to do this. It should only |
| # be necessary to list helper-Info.plist once, not the three times it |
| # is listed here. |
| 'mac_bundle_resources!': [ |
| 'app/helper-Info.plist', |
| ], |
| # TODO(mark): For now, don't put any resources into this app. Its |
| # resources directory will be a symbolic link to the browser app's |
| # resources directory. |
| 'mac_bundle_resources/': [ |
| ['exclude', '.*'], |
| ], |
| 'xcode_settings': { |
| 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', |
| 'CHROMIUM_SHORT_NAME': '<(branding)', |
| 'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves', |
| 'INFOPLIST_FILE': 'app/helper-Info.plist', |
| }, |
| 'postbuilds': [ |
| { |
| # The helper doesn't have real localizations, it just has |
| # empty .lproj directories, which is enough to convince Cocoa |
| # that anything running out of the helper .app supports those |
| # languages. |
| 'postbuild_name': 'Make Empty Localizations', |
| 'variables': { |
| 'locale_dirs': [ |
| '>!@(<(apply_locales_cmd) -d ZZLOCALE.lproj <(locales))', |
| ], |
| }, |
| 'action': [ |
| 'tools/build/mac/make_locale_dirs.sh', |
| '<@(locale_dirs)', |
| ], |
| }, |
| { |
| # The framework (chrome_dll) defines its load-time path |
| # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| # (chrome). A different relative path needs to be used in |
| # helper_app. |
| 'postbuild_name': 'Fix Framework Link', |
| 'action': [ |
| 'install_name_tool', |
| '-change', |
| '@executable_path/../Versions/<(version_full)/<(mac_product_name) Framework.framework/<(mac_product_name) Framework', |
| '@executable_path/../../../<(mac_product_name) Framework.framework/<(mac_product_name) Framework', |
| '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| ], |
| }, |
| { |
| # Modify the Info.plist as needed. The script explains why this |
| # is needed. This is also done in the chrome and chrome_dll |
| # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 |
| # are used because Breakpad, Keystone, and SCM keys are |
| # never placed into the helper. |
| 'postbuild_name': 'Tweak Info.plist', |
| 'action': ['<(tweak_info_plist_path)', |
| '--plist=${TARGET_BUILD_DIR}/${INFOPLIST_PATH}', |
| '--breakpad=0', |
| '--keystone=0', |
| '--scm=0'], |
| }, |
| ], |
| 'conditions': [ |
| ['mac_breakpad==1', { |
| 'variables': { |
| # A real .dSYM is needed for dump_syms to operate on. |
| 'mac_real_dsym': 1, |
| }, |
| 'xcode_settings': { |
| # With mac_real_dsym set, strip_from_xcode won't be used. |
| # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode. |
| 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', |
| }, |
| }], |
| ['component=="shared_library"', { |
| 'xcode_settings': { |
| 'LD_RUNPATH_SEARCH_PATHS': [ |
| # Get back from Chromium.app/Contents/Versions/V/ |
| # Helper.app/Contents/MacOS |
| '@loader_path/../../../../../../..', |
| ], |
| }, |
| }], |
| ], |
| }, # target helper_app |
| { |
| # A library containing the actual code for the app mode app, shared |
| # by unit tests. |
| # GN: //chrome/common:app_mode_app_support |
| 'target_name': 'app_mode_app_support', |
| 'type': 'static_library', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 'product_name': 'app_mode_app_support', |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| 'common_constants.gyp:common_constants', |
| ], |
| 'sources': [ |
| 'common/mac/app_mode_chrome_locator.h', |
| 'common/mac/app_mode_chrome_locator.mm', |
| 'common/mac/app_mode_common.h', |
| 'common/mac/app_mode_common.mm', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| }, # target app_mode_app_support |
| { |
| # Convenience target to build a disk image. |
| 'target_name': 'build_app_dmg', |
| # Don't place this in the 'all' list; most won't want it. |
| # In GYP, booleans are 0/1, not True/False. |
| 'suppress_wildcard': 1, |
| 'type': 'none', |
| 'dependencies': [ |
| 'chrome', |
| ], |
| 'variables': { |
| 'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg', |
| 'pkg_dmg_script_path': 'installer/mac/pkg-dmg', |
| |
| 'conditions': [ |
| # This duplicates the output path from build_app_dmg. |
| ['branding=="Chrome"', { |
| 'dmg_name': 'GoogleChrome.dmg', |
| }, { # else: branding!="Chrome" |
| 'dmg_name': 'Chromium.dmg', |
| }], |
| ], |
| }, |
| 'actions': [ |
| { |
| 'inputs': [ |
| '<(build_app_dmg_script_path)', |
| '<(pkg_dmg_script_path)', |
| '<(PRODUCT_DIR)/<(mac_product_name).app', |
| ], |
| 'outputs': [ |
| '<(PRODUCT_DIR)/<(dmg_name)', |
| ], |
| 'action_name': 'build_app_dmg', |
| 'action': ['<(build_app_dmg_script_path)', '<@(branding)'], |
| }, |
| ], # 'actions' |
| }, |
| { |
| 'target_name': 'infoplist_strings_tool', |
| 'type': 'executable', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 'dependencies': [ |
| 'chrome_resources.gyp:chrome_strings', |
| '../base/base.gyp:base', |
| '../base/base.gyp:base_i18n', |
| '../ui/base/ui_base.gyp:ui_data_pack', |
| ], |
| 'include_dirs': [ |
| '<(grit_out_dir)', |
| ], |
| 'sources': [ |
| 'tools/mac_helpers/infoplist_strings_util.mm', |
| ], |
| }, |
| ], # targets |
| }], # OS=="mac" |
| ['OS=="linux"', |
| { 'targets': [ |
| { |
| # GN version: //chrome:linux_symbols |
| 'target_name': 'linux_symbols', |
| 'type': 'none', |
| 'conditions': [ |
| ['linux_dump_symbols==1', { |
| 'actions': [ |
| { |
| 'action_name': 'dump_symbols', |
| 'inputs': [ |
| '<(DEPTH)/build/linux/dump_app_syms.py', |
| '<(PRODUCT_DIR)/dump_syms', |
| '<(PRODUCT_DIR)/chrome', |
| ], |
| 'outputs': [ |
| '<(PRODUCT_DIR)/chrome.breakpad.<(target_arch)', |
| ], |
| 'action': ['python', |
| '<(DEPTH)/build/linux/dump_app_syms.py', |
| '<(PRODUCT_DIR)/dump_syms', |
| '<(linux_strip_binary)', |
| '<(PRODUCT_DIR)/chrome', |
| '<@(_outputs)'], |
| 'message': 'Dumping breakpad symbols to <(_outputs)', |
| 'process_outputs_as_sources': 1, |
| }, |
| ], |
| 'dependencies': [ |
| 'chrome', |
| '../breakpad/breakpad.gyp:dump_syms#host', |
| ], |
| }], |
| ], |
| }, |
| ], |
| }], # OS=="linux" |
| ['OS=="win"', |
| { 'targets': [ |
| { |
| # For historical reasons, chrome/chrome.sln has been the entry point |
| # for new Chrome developers. To assist development, include several |
| # core unittests that are otherwise only accessible side-by-side with |
| # chrome via all/all.sln. |
| 'target_name': 'test_targets', |
| 'type': 'none', |
| 'dependencies': [ |
| '../base/base.gyp:base_unittests', |
| '../content/content_shell_and_tests.gyp:content_browsertests', |
| '../content/content_shell_and_tests.gyp:content_shell', |
| '../content/content_shell_and_tests.gyp:content_unittests', |
| '../net/net.gyp:net_unittests', |
| '../ui/base/ui_base_tests.gyp:ui_base_unittests', |
| ], |
| }, |
| { |
| # GN version: //chrome:chrome_version_resources |
| 'target_name': 'chrome_version_resources', |
| 'type': 'none', |
| 'variables': { |
| 'output_dir': 'chrome_version', |
| 'template_input_path': 'app/chrome_version.rc.version', |
| 'branding_path': 'app/theme/<(branding_path_component)/BRANDING', |
| }, |
| 'direct_dependent_settings': { |
| 'include_dirs': [ |
| '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', |
| ], |
| }, |
| 'sources': [ |
| 'app/chrome_exe.ver', |
| 'app/chrome_dll.ver', |
| 'app/nacl64_exe.ver', |
| 'app/other.ver', |
| ], |
| 'includes': [ |
| 'version_resource_rules.gypi', |
| ], |
| }, |
| { |
| 'target_name': 'sb_sigutil', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| '../crypto/crypto.gyp:crypto', |
| 'safe_browsing_proto', |
| ], |
| 'sources': [ |
| 'common/safe_browsing/binary_feature_extractor.cc', |
| 'common/safe_browsing/binary_feature_extractor.h', |
| 'common/safe_browsing/binary_feature_extractor_win.cc', |
| 'common/safe_browsing/pe_image_reader_win.cc', |
| 'common/safe_browsing/pe_image_reader_win.h', |
| 'tools/safe_browsing/sb_sigutil.cc', |
| ], |
| 'msvs_settings': { |
| 'VCLinkerTool': { |
| 'AdditionalDependencies': [ |
| 'wintrust.lib', |
| ], |
| }, |
| }, |
| }, |
| ], # 'targets' |
| 'includes': [ |
| 'chrome_watcher/chrome_watcher.gypi', |
| 'chrome_process_finder.gypi', |
| ], |
| }], # OS=="win" |
| ['chromeos==1', { |
| 'includes': [ 'chrome_browser_chromeos.gypi' ], |
| }], # chromeos==1 |
| ['OS=="android"', |
| { |
| 'targets': [ |
| { |
| # GN: //chrome/android:chrome_java |
| 'target_name': 'chrome_java', |
| 'type': 'none', |
| 'dependencies': [ |
| 'activity_type_ids_java', |
| 'chrome_locale_paks', |
| 'chrome_resources.gyp:chrome_strings', |
| 'chrome_strings_grd', |
| 'chrome_version_java', |
| 'content_setting_java', |
| 'content_settings_type_java', |
| 'connectivity_check_result_java', |
| 'data_use_ui_message_enum_java', |
| 'document_tab_model_info_proto_java', |
| 'infobar_action_type_java', |
| 'most_visited_tile_type_java', |
| 'page_info_connection_type_java', |
| 'policy_auditor_java', |
| 'profile_account_management_metrics_java', |
| 'resource_id_java', |
| 'shortcut_source_java', |
| 'signin_metrics_enum_java', |
| 'tab_load_status_java', |
| 'website_settings_action_java', |
| '../base/base.gyp:base', |
| '../base/base.gyp:base_build_config_gen', |
| '../build/android/java_google_api_keys.gyp:google_api_keys_java', |
| '../chrome/android/chrome_apk.gyp:custom_tabs_service_aidl', |
| '../components/components.gyp:app_restrictions_resources', |
| '../components/components.gyp:autocomplete_match_java', |
| '../components/components.gyp:autocomplete_match_type_java', |
| '../components/components.gyp:bookmarks_java', |
| '../components/components.gyp:browsing_data_utils_java', |
| '../components/components.gyp:dom_distiller_core_java', |
| '../components/components.gyp:gcm_driver_java', |
| '../components/components.gyp:infobar_delegate_java', |
| '../components/components.gyp:instance_id_driver_java', |
| '../components/components.gyp:invalidation_java', |
| '../components/components.gyp:investigated_scenario_java', |
| '../components/components.gyp:ntp_tiles_enums_java', |
| '../components/components.gyp:ntp_tiles_java', |
| '../components/components.gyp:navigation_interception_java', |
| '../components/components.gyp:offline_page_model_enums_java', |
| '../components/components.gyp:policy_java', |
| '../components/components.gyp:precache_java', |
| '../components/components.gyp:safe_json_java', |
| '../components/components.gyp:security_state_enums_java', |
| '../components/components.gyp:signin_core_browser_java', |
| '../components/components.gyp:variations_java', |
| '../components/components.gyp:web_contents_delegate_android_java', |
| '../components/components.gyp:web_restrictions_java_browser', |
| '../components/components_strings.gyp:components_strings', |
| '../components/url_formatter/url_formatter.gyp:url_formatter_java', |
| '../content/content.gyp:content_java', |
| '../media/media.gyp:media_java', |
| '../mojo/mojo_public.gyp:mojo_bindings_java', |
| '../mojo/mojo_public.gyp:mojo_public_java', |
| '../printing/printing.gyp:printing_java', |
| '../components/sync.gyp:sync_java', |
| '../third_party/WebKit/public/blink.gyp:android_mojo_bindings_java', |
| '../third_party/android_data_chart/android_data_chart.gyp:android_data_chart_java', |
| '../third_party/android_media/android_media.gyp:android_media_java', |
| '../third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_javalib', |
| '../third_party/android_swipe_refresh/android_swipe_refresh.gyp:android_swipe_refresh_java', |
| '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib', |
| '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib', |
| '../third_party/android_tools/android_tools.gyp:android_support_v7_recyclerview_javalib', |
| '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib', |
| '../third_party/android_tools/android_tools.gyp:google_play_services_javalib', |
| '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib', |
| '../third_party/gif_player/gif_player.gyp:gif_player_java', |
| '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', |
| '../third_party/leakcanary/leakcanary.gyp:leakcanary_java', |
| '../ui/android/ui_android.gyp:ui_java', |
| ], |
| 'variables': { |
| 'variables': { |
| 'android_branding_res_dirs%': ['<(java_in_dir)/res_chromium'], |
| }, |
| 'jar_excluded_classes': [ |
| '*/BuildConfig.class', |
| ], |
| 'java_in_dir': '../chrome/android/java', |
| 'has_java_resources': 1, |
| 'R_package': 'org.chromium.chrome', |
| 'R_package_relpath': 'org/chromium/chrome', |
| # Include channel-specific resources and xml string files generated |
| # from generated_resources.grd |
| 'res_extra_dirs': [ |
| '<@(android_branding_res_dirs)', |
| '<(SHARED_INTERMEDIATE_DIR)/chrome/java/res', |
| '<(SHARED_INTERMEDIATE_DIR)/components/strings/java/res', |
| ], |
| 'res_extra_files': [ |
| '<!@(find <(android_branding_res_dirs) -type f)', |
| '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)/chrome" app/generated_resources.grd)', |
| ], |
| }, |
| 'includes': [ |
| '../build/java.gypi', |
| ], |
| }, |
| { |
| # GN: //chrome/android:chrome_strings_grd |
| 'target_name': 'chrome_strings_grd', |
| 'type': 'none', |
| 'variables': { |
| 'grd_file': '../chrome/android/java/strings/android_chrome_strings.grd', |
| }, |
| 'includes': [ |
| '../build/java_strings_grd.gypi', |
| ], |
| }, |
| { |
| # GN: //chrome/android:chrome_locale_paks |
| 'target_name': 'chrome_locale_paks', |
| 'type': 'none', |
| 'variables': { |
| 'package_name': 'chrome_locale_paks', |
| 'locale_pak_files': [ '<@(chrome_android_pak_locale_resources)' ], |
| }, |
| 'includes': [ |
| 'chrome_android_paks.gypi', |
| '../build/android/locale_pak_resources.gypi', |
| ], |
| }, |
| { |
| # GN: //chrome:content_setting_javagen |
| 'target_name': 'content_setting_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': '../components/content_settings/core/common/content_settings.h', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| { |
| # GN: //chrome:content_settings_type_javagen |
| 'target_name': 'content_settings_type_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': '../components/content_settings/core/common/content_settings_types.h', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| { |
| # GN: //chrome:page_info_connection_type_javagen |
| 'target_name': 'page_info_connection_type_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': 'browser/ui/android/website_settings_popup_android.h', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| { |
| # GN: //chrome:signin_metrics_enum_javagen |
| 'target_name': 'signin_metrics_enum_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': '../components/signin/core/browser/signin_metrics.h', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| { |
| # GN: //chrome:website_settings_action_javagen |
| 'target_name': 'website_settings_action_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': 'browser/ui/website_settings/website_settings.h', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| { |
| # GN: //chrome:data_use_ui_message_enum_javagen |
| 'target_name': 'data_use_ui_message_enum_java', |
| 'type': 'none', |
| 'variables': { |
| 'source_file': 'browser/android/data_usage/data_use_tab_ui_manager_android.cc', |
| }, |
| 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| }, |
| ], # 'targets' |
| 'includes': [ |
| 'chrome_android.gypi', |
| ]}, # 'includes' |
| ], # OS=="android" |
| ['OS!="android" and OS!="ios"', { |
| 'includes': [ 'policy.gypi', ], |
| }], |
| ['enable_extensions==1', { |
| 'includes': [ |
| 'chrome_browser_extensions.gypi', |
| ], |
| }], |
| ['enable_print_preview==1', { |
| 'targets': [ |
| { |
| # GN version: //chrome/service |
| 'target_name': 'service', |
| 'type': 'static_library', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 'dependencies': [ |
| 'chrome_resources.gyp:chrome_strings', |
| 'common', |
| '../base/base.gyp:base', |
| '../components/components.gyp:cloud_devices_common', |
| '../google_apis/google_apis.gyp:google_apis', |
| '../jingle/jingle.gyp:notifier', |
| '../mojo/mojo_edk.gyp:mojo_system_impl', |
| '../net/net.gyp:net', |
| '../printing/printing.gyp:printing', |
| '../skia/skia.gyp:skia', |
| ], |
| 'sources': [ |
| # Note: sources list duplicated in GN build. |
| 'service/cloud_print/cdd_conversion_win.cc', |
| 'service/cloud_print/cdd_conversion_win.h', |
| 'service/cloud_print/cloud_print_auth.cc', |
| 'service/cloud_print/cloud_print_auth.h', |
| 'service/cloud_print/cloud_print_connector.cc', |
| 'service/cloud_print/cloud_print_connector.h', |
| 'service/cloud_print/cloud_print_message_handler.cc', |
| 'service/cloud_print/cloud_print_message_handler.h', |
| 'service/cloud_print/cloud_print_proxy.cc', |
| 'service/cloud_print/cloud_print_proxy.h', |
| 'service/cloud_print/cloud_print_proxy_backend.cc', |
| 'service/cloud_print/cloud_print_proxy_backend.h', |
| 'service/cloud_print/cloud_print_service_helpers.cc', |
| 'service/cloud_print/cloud_print_service_helpers.h', |
| 'service/cloud_print/cloud_print_token_store.cc', |
| 'service/cloud_print/cloud_print_token_store.h', |
| 'service/cloud_print/cloud_print_url_fetcher.cc', |
| 'service/cloud_print/cloud_print_url_fetcher.h', |
| 'service/cloud_print/cloud_print_wipeout.cc', |
| 'service/cloud_print/cloud_print_wipeout.h', |
| 'service/cloud_print/connector_settings.cc', |
| 'service/cloud_print/connector_settings.h', |
| 'service/cloud_print/job_status_updater.cc', |
| 'service/cloud_print/job_status_updater.h', |
| 'service/cloud_print/print_system.cc', |
| 'service/cloud_print/print_system.h', |
| 'service/cloud_print/print_system_win.cc', |
| 'service/cloud_print/printer_job_handler.cc', |
| 'service/cloud_print/printer_job_handler.h', |
| 'service/cloud_print/printer_job_queue_handler.cc', |
| 'service/cloud_print/printer_job_queue_handler.h', |
| 'service/net/service_url_request_context_getter.cc', |
| 'service/net/service_url_request_context_getter.h', |
| 'service/service_ipc_server.cc', |
| 'service/service_ipc_server.h', |
| 'service/service_main.cc', |
| 'service/service_process.cc', |
| 'service/service_process.h', |
| 'service/service_process_prefs.cc', |
| 'service/service_process_prefs.h', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'conditions': [ |
| ['use_cups==1 and chromeos==0', { |
| 'dependencies': [ |
| '../printing/printing.gyp:cups', |
| ], |
| 'sources': [ |
| 'service/cloud_print/print_system_cups.cc', |
| ], |
| }], |
| ['OS=="win"', { |
| 'sources': [ |
| 'service/service_utility_process_host.cc', |
| 'service/service_utility_process_host.h', |
| ], |
| }], |
| ['chromeos==1 or (OS!="win" and use_cups!=1)', { |
| 'sources': [ |
| 'service/cloud_print/print_system_dummy.cc', |
| ], |
| }], |
| ], |
| }, |
| ], |
| }], |
| ], # 'conditions' |
| } |