blob: 77f1d74e920fcfc4edf53a8a6222bf12e7d3a75d [file] [log] [blame]
# 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',
'../sync/sync.gyp:sync',
],
# GN version is the group //chrome:child_dependencies
'chromium_child_dependencies': [
'common',
'../sync/sync.gyp:sync',
],
'allocator_target': '../base/allocator/allocator.gyp:allocator',
'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',
'plugin',
'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': [
[ 'cld_version==0 or cld_version==2', {
'chromium_child_dependencies': [
# Use whatever CLD2 data access mode that the application
# embedder is using.
'<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
}],
['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_util.gypi',
],
'conditions': [
['OS!="ios"', {
'includes': [
'../apps/apps.gypi',
'chrome_child.gypi',
'chrome_debugger.gypi',
'chrome_dll.gypi',
'chrome_exe.gypi',
'chrome_installer.gypi',
'chrome_plugin.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',
'infoplist_strings_tool',
],
'sources': [
# chrome_exe_main_mac.cc'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.cc with the
# browser app will suffice for now.
'app/chrome_exe_main_mac.cc',
'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)',
'--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',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
],
'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',
],
},
{
# GN version: //chrome:version_header
'target_name': 'chrome_version_header',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
'action_name': 'version_header',
'variables': {
'lastchange_path':
'<(DEPTH)/build/util/LASTCHANGE',
'branding_path': 'app/theme/<(branding_path_component)/BRANDING',
},
'inputs': [
'<(version_path)',
'<(branding_path)',
'<(lastchange_path)',
'version.h.in',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/version.h',
],
'action': [
'python',
'<(version_py_path)',
'-f', '<(version_path)',
'-f', '<(branding_path)',
'-f', '<(lastchange_path)',
'version.h.in',
'<@(_outputs)',
],
'message': 'Generating version header file: <@(_outputs)',
},
],
},
{
'target_name': 'crash_service',
'type': 'executable',
'dependencies': [
'installer_util',
'../base/base.gyp:base',
'../chrome/common_constants.gyp:common_constants',
'../components/components.gyp:breakpad_crash_service',
],
'include_dirs': [
'..',
],
'sources': [
'tools/crash_service/main.cc',
],
'msvs_settings': {
'VCLinkerTool': {
'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
},
},
},
{
'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',
],
},
], # 'targets'
'includes': [
'app_shim/app_shim_win.gypi',
'chrome_watcher/chrome_watcher.gypi',
'chrome_process_finder.gypi',
'metro_utils.gypi',
],
}], # OS=="win"
['OS=="win" and target_arch=="ia32"',
{ 'targets': [
{
'target_name': 'chrome_user32_delay_imports',
'type': 'none',
'variables': {
'lib_dir': '<(INTERMEDIATE_DIR)',
},
'sources': [
'chrome.user32.delay.imports'
],
'includes': [
'../build/win/importlibs/create_import_lib.gypi',
],
'direct_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': ['<(lib_dir)', ],
'AdditionalDependencies': ['chrome.user32.delay.lib', ],
},
},
},
},
{
'target_name': 'crash_service_win64',
'type': 'executable',
'product_name': 'crash_service64',
'dependencies': [
'installer_util_nacl_win64',
'../base/base.gyp:base_static_win64',
'../chrome/common_constants.gyp:common_constants_win64',
'../components/components.gyp:breakpad_crash_service_win64',
],
'include_dirs': [
'..',
],
'sources': [
'../content/public/common/content_switches.cc',
'tools/crash_service/main.cc',
],
'defines': [
'COMPILE_CONTENT_STATICALLY',
],
'msvs_settings': {
'VCLinkerTool': {
'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
},
},
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
]}, # 'targets'
], # OS=="win" and target_arch=="ia32"
['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',
'connection_security_levels_java',
'connectivity_check_result_java',
'document_tab_model_info_proto_java',
'infobar_action_type_java',
'profile_account_management_metrics_java',
'content_setting_java',
'content_settings_type_java',
'page_info_connection_type_java',
'resource_id_java',
'tab_load_status_java',
'shortcut_source_java',
'../base/base.gyp:base',
'../chrome/android/chrome_apk.gyp:custom_tabs_service_aidl',
'../components/components.gyp:bookmarks_java',
'../components/components.gyp:dom_distiller_core_java',
'../components/components.gyp:enhanced_bookmarks_java_enums_srcjar',
'../components/components.gyp:gcm_driver_java',
'../components/components.gyp:invalidation_java',
'../components/components.gyp:navigation_interception_java',
'../components/components.gyp:offline_pages_enums_java',
'../components/components.gyp:precache_java',
'../components/components.gyp:safe_json_java',
'../components/components.gyp:service_tab_launcher_java',
'../components/components.gyp:signin_core_browser_java',
'../components/components.gyp:variations_java',
'../components/components.gyp:web_contents_delegate_android_java',
'../content/content.gyp:content_java',
'../media/media.gyp:media_java',
'../printing/printing.gyp:printing_java',
'../sync/sync.gyp:sync_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_design_javalib',
'../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/jsr-305/jsr-305.gyp:jsr_305_javalib',
'../ui/android/ui_android.gyp:ui_java',
],
'variables': {
'variables': {
'android_branding_res_dirs%': ['<(java_in_dir)/res_chromium'],
},
'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',
],
'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)',
],
},
'conditions': [
['configuration_policy == 1', {
'dependencies': [
'../components/components.gyp:app_restrictions_resources',
'../components/components.gyp:policy_java',
],
}],
],
'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' ],
},
], # 'targets'
'includes': [
'chrome_android.gypi',
]}, # 'includes'
], # OS=="android"
['configuration_policy==1 and 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',
'../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',
'service/service_utility_process_host.cc',
'service/service_utility_process_host.h',
],
'include_dirs': [
'..',
],
'conditions': [
['use_cups==1', {
'dependencies': [
'../printing/printing.gyp:cups',
],
'sources': [
'service/cloud_print/print_system_cups.cc',
],
}],
['OS!="win" and use_cups!=1', {
'sources': [
'service/cloud_print/print_system_dummy.cc',
],
}],
['OS!="win"', {
'sources!': [
'service/service_utility_process_host.cc',
'service/service_utility_process_host.h',
],
}],
],
},
],
}],
['kasko==1', {
'variables': {
'kasko_exe_dir': '<(DEPTH)/third_party/kasko',
},
'targets': [
{
'target_name': 'kasko_dll',
'type': 'none',
'outputs': [
'<(PRODUCT_DIR)/kasko.dll',
'<(PRODUCT_DIR)/kasko.dll.pdb',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
'<(kasko_exe_dir)/kasko.dll',
'<(kasko_exe_dir)/kasko.dll.pdb',
],
},
],
'direct_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [
'kasko.dll.lib',
],
'AdditionalLibraryDirectories': [
'<(DEPTH)/third_party/kasko'
],
},
},
},
},
],
}],
], # 'conditions'
}