Commit 74a71a70 authored by brettw's avatar brettw Committed by Commit bot

Remove all gyp[i] files in //chrome

These are now unused

TBR=dpranke@chromium.org
TBR=mseaborn (chrome/test/data/nacl)
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2321703002
Cr-Commit-Position: refs/heads/master@{#417100}
parent 2a5b9a61
......@@ -241,9 +241,6 @@ exec_script_whitelist = [
"//build/toolchain/win/BUILD.gn",
"//build/util/branding.gni",
"//build/util/version.gni",
"//chrome/browser/chromeos/BUILD.gn",
"//chrome/chrome_tests.gni",
"//chrome/common/extensions/api/schemas.gni",
"//chromeos/BUILD.gn",
# TODO(dgn): Layer violation but breaks the build otherwise, see
......
# Copyright 2014 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.
# This file contains an action which can be used to construct a manifest file
# declaring a dependency on other dlls. This manifest can then be merged
# into the manifest of the executable and embedded into it when it is built.
# To use this the following variables need to be defined:
# version_path: string: path to file containing version data (e.g.
# chrome/VERSION).
# version_py_path: string: path to file containing version script (e.g.
# build/util/version.py).
{
'variables': {
'template_input_path':
'<(DEPTH)/chrome/app/version_assembly/chrome_exe_manifest.template',
},
'inputs': [
'<(template_input_path)',
'<(version_path)',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/chrome/app/version_assembly/version_assembly.manifest',
],
'action': [
'python', '<(version_py_path)',
'-f', '<(version_path)',
'<(template_input_path)',
'<@(_outputs)',
],
'message': 'Generating <@(_outputs)',
}
# Copyright 2014 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.
# This file contains an action which can be used to construct a manifest file
# with the same name as the version directory so that chrome.exe identifies the
# version directory as an assembly. This will be copied over to the version
# directory by the installer script.
# To use this the following variables need to be defined:
# version_path: string: path to file containing version data (e.g.
# chrome/VERSION).
# version_py_path: string: path to file containing version script (e.g.
# build/util/version.py).
# version_full: string: version string in W.X.Y.Z form.
{
'variables': {
'template_input_path':
'<(DEPTH)/chrome/app/version_assembly/version_assembly_manifest.template',
},
'inputs': [
'<(template_input_path)',
'<(version_path)',
],
'outputs': [
'<(PRODUCT_DIR)/<(version_full).manifest',
],
'action': [
'python', '<(version_py_path)',
'-f', '<(version_path)',
'<(template_input_path)',
'<@(_outputs)',
],
'message': 'Generating <@(_outputs)',
}
# Copyright 2014 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.
{
'targets': [
{
# This is the part of the shim process compiled into Chrome. It runs only
# in the shim process, after the shim finds and loads the Chrome
# Framework bundle.
#
# GN version: //chrome/app_shim
'target_name': 'app_shim',
'type': 'static_library',
'dependencies': [
# Since app_shim and browser depend on each other, we omit the
# dependency on browser here.
'../chrome/chrome_resources.gyp:chrome_strings',
'app_mode_app_support',
],
'sources': [
'chrome_main_app_mode_mac.mm',
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',
'../..',
],
}, # target app_shim
{
# This produces the template for app mode loader bundles. It's a template
# in the sense that parts of it need to be "filled in" by Chrome before it
# can be executed.
'target_name': 'app_mode_app',
'type': 'executable',
'mac_bundle' : 1,
'variables': {
'enable_wexit_time_destructors': 1,
'mac_real_dsym': 1,
},
'product_name': 'app_mode_loader',
'dependencies': [
'app_mode_app_support',
'infoplist_strings_tool',
],
'sources': [
'app_mode_loader_mac.mm',
'app_mode-Info.plist',
],
'include_dirs': [
'../..',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
],
},
'mac_bundle_resources!': [
'app_shim/app_mode-Info.plist',
],
'mac_bundle_resources/': [
['exclude', '.*'],
],
'xcode_settings': {
'INFOPLIST_FILE': 'app_shim/app_mode-Info.plist',
'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_ID@',
},
'postbuilds' : [
{
# 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 app mode loader.
'postbuild_name': 'Tweak Info.plist',
'action': ['<(tweak_info_plist_path)',
'--plist=${TARGET_BUILD_DIR}/${INFOPLIST_PATH}',
'--breakpad=0',
'--keystone=0',
'--scm=0'],
},
],
}, # target app_mode_app
], # targets
}
# Copyright 2013 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.
{
'targets': [
{
# This is the part of the Chrome browser process responsible for launching
# and communicating with app_shim processes on Mac.
#
# GN version: //chrome/browser/apps/app_shim
'target_name': 'browser_app_shim',
'type': 'static_library',
'dependencies': [
# Since browser_app_shim and chrome.gyp:browser depend on each other,
# we omit the dependency on browser here.
'../content/content.gyp:content_browser',
'../content/content.gyp:content_common',
],
'sources': [
'app_shim_handler_mac.cc',
'app_shim_handler_mac.h',
'app_shim_host_mac.cc',
'app_shim_host_mac.h',
'app_shim_host_manager_mac.h',
'app_shim_host_manager_mac.mm',
'extension_app_shim_handler_mac.cc',
'extension_app_shim_handler_mac.h',
'unix_domain_socket_acceptor.cc',
'unix_domain_socket_acceptor.h',
],
},
], # targets
}
# Copyright 2014 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.
{
'targets': [
{
'target_name': 'devtools_protocol_constants',
'type': 'none',
'dependencies': [
'../../../third_party/WebKit/Source/core/inspector/inspector.gyp:protocol_version'
],
'actions': [
{
'action_name': 'devtools_protocol_constants',
'variables': {
'blink_protocol': '<(SHARED_INTERMEDIATE_DIR)/blink/core/inspector/protocol.json',
'generator': 'devtools_protocol_constants_generator.py',
'package': 'chrome'
},
'inputs': [
'<(blink_protocol)',
'<(generator)',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/<(package)/browser/devtools/devtools_protocol_constants.cc',
'<(SHARED_INTERMEDIATE_DIR)/<(package)/browser/devtools/devtools_protocol_constants.h'
],
'action':[
'python',
'<(generator)',
'<(package)',
'<(SHARED_INTERMEDIATE_DIR)/<(package)/browser/devtools/devtools_protocol_constants.cc',
'<(SHARED_INTERMEDIATE_DIR)/<(package)/browser/devtools/devtools_protocol_constants.h',
'<(blink_protocol)',
],
'message': 'Generating DevTools protocol constants from <(blink_protocol)'
}
],
},
],
}
# Copyright 2014 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.
{
'targets': [
{
# GN version: //chrome/browser/extensions/api:api_registration
'target_name': 'chrome_api_registration',
'type': 'static_library',
# TODO(jschuh): http://crbug.com/167187 size_t -> int
'msvs_disabled_warnings': [ 4267 ],
'includes': [
'../../../../build/json_schema_bundle_registration_compile.gypi',
'../../../common/extensions/api/schemas.gypi',
],
'dependencies': [
'<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
# Different APIs include headers from these targets.
"<(DEPTH)/content/content.gyp:content_browser",
# Different APIs include some headers from chrome/common that in turn
# include generated headers from these targets.
# TODO(brettw) this should be made unnecessary if possible.
'<(DEPTH)/components/components.gyp:component_metrics_proto',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/components/sync.gyp:sync',
'<(DEPTH)/ui/accessibility/accessibility.gyp:ax_gen',
],
'conditions': [
['chromeos==1', {
'dependencies': [
'<(DEPTH)/components/components.gyp:drive_proto',
],
}],
],
},
],
}
# Copyright 2015 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.
{
'includes': [
'media_router.gypi',
],
'targets': [
{
# GN version: //chrome/browser/media/router:router
'target_name': 'media_router',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/chrome/common_constants.gyp:common_constants',
'<(DEPTH)/components/components.gyp:keyed_service_content',
'<(DEPTH)/components/components.gyp:keyed_service_core',
'<(DEPTH)/content/content.gyp:content_browser',
'<(DEPTH)/url/url.gyp:url_lib',
],
'sources': [
'<@(media_router_sources)',
],
'conditions': [
[ 'OS!="android" and OS!="ios"', {
'dependencies': [
# media_router_type_converters.h needs the generated file.
'media_router_mojo_gen',
'media_router_mojo',
'<(DEPTH)/extensions/extensions.gyp:extensions_browser',
],
'sources': [
'<@(media_router_non_android_sources)',
]
}],
]
},
{
# Mojo compiler for the Media Router internal API.
'target_name': 'media_router_mojo_gen',
'type': 'none',
'sources': [
'mojo/media_router.mojom',
],
'includes': [
'../../../../mojo/mojom_bindings_generator.gypi',
],
'mojom_typemaps': [
'mojo/media_router.typemap',
],
},
{
'target_name': 'media_router_mojo',
'type': 'static_library',
'dependencies': [
'media_router_mojo_gen',
],
'sources': [
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/mojo/media_router.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/mojo/media_router.mojom.h',
],
},
{
# GN version: //chrome/browser/media/router:test_support
'target_name': 'media_router_test_support',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)',
],
'dependencies': [
'media_router',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/testing/gmock.gyp:gmock',
],
'sources': [
'<@(media_router_test_support_sources)',
],
'conditions': [
[ 'OS!="android" and OS!="ios"', {
'dependencies': [
'media_router_mojo',
'media_router_mojo_gen',
'<(DEPTH)/extensions/extensions.gyp:extensions_common',
],
'sources': [
'<@(media_router_non_android_test_support_sources)',
]
}],
]
},
],
}
# Copyright (c) 2015 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.
# TODO(crbug.com/596999): Move non-Android code to mojo/
{
'variables': {
# File lists shared with GN build.
'media_router_sources': [
'create_presentation_connection_request.cc',
'create_presentation_connection_request.h',
'issue.cc',
'issue.h',
'issue_manager.cc',
'issue_manager.h',
'issues_observer.h',
'issues_observer.cc',
'media_route.cc',
'media_route.h',
'media_router.h',
'media_router_base.cc',
'media_router_base.h',
'media_router_dialog_controller.cc',
'media_router_dialog_controller.h',
'media_router_factory.cc',
'media_router_factory.h',
'media_router_metrics.cc',
'media_router_metrics.h',
'media_routes_observer.cc',
'media_routes_observer.h',
'media_sink.cc',
'media_sink.h',
'media_sinks_observer.cc',
'media_sinks_observer.h',
'media_source.cc',
'media_source.h',
'media_source_helper.cc',
'media_source_helper.h',
'presentation_media_sinks_observer.cc',
'presentation_media_sinks_observer.h',
'presentation_request.cc',
'presentation_request.h',
'presentation_service_delegate_impl.cc',
'presentation_service_delegate_impl.h',
'render_frame_host_id.h',
'route_message.cc',
'route_message.h',
'route_message_observer.cc',
'route_message_observer.h',
'route_request_result.cc',
'route_request_result.h',
],
# Files that are only needed on desktop builds
'media_router_non_android_sources': [
'mojo/media_route_provider_util_win.cc',
'mojo/media_route_provider_util_win.h',
'mojo/media_router_mojo_metrics.cc',
'mojo/media_router_mojo_metrics.h',
'mojo/media_router_mojo_impl.cc',
'mojo/media_router_mojo_impl.h',
'mojo/media_router_type_converters.cc',
'mojo/media_router_type_converters.h',
],
'media_router_test_support_sources': [
'mock_media_router.cc',
'mock_media_router.h',
'mock_screen_availability_listener.cc',
'mock_screen_availability_listener.h',
'test_helper.cc',
'test_helper.h',
],
'media_router_non_android_test_support_sources': [
'mojo/media_router_mojo_test.cc',
'mojo/media_router_mojo_test.h',
],
},
}
# 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.
{
'conditions': [
['disable_nacl==0 and (OS=="win" or OS=="linux")', {
'targets': [
{
'target_name': 'mock_nacl_gdb',
'type': 'executable',
'include_dirs': [
'../../../../',
],
'sources': [
'mock_nacl_gdb.cc',
],
'dependencies': [
'../../../../base/base.gyp:base',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
}],
],
}
# Copyright 2014 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.
{
'conditions': [
['chromeos==1', {
'targets': [
{
'target_name': 'braille_ime_manifest',
'type': 'none',
'copies': [
{
'destination': '<(PRODUCT_DIR)/resources/chromeos/braille_ime',
'files': [
'manifest.json',
],
},
],
},
],
}],
],
}
# Copyright 2014 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.
{
'conditions': [
['chromeos==1', {
'variables': {
# Whether to compress the 4 main ChromeVox scripts.
'chromevox_compress_js%': '1',
},
'includes': [
'chromevox_assets.gypi',
'chromevox_tests.gypi',
'chromevox_vars.gypi',
'common.gypi',
],
'targets': [
{
'target_name': 'chromevox',
'type': 'none',
'dependencies': [
'chromevox_resources',
'chromevox_manifest',
'chromevox_guest_manifest',
],
},
{
'target_name': 'chromevox_resources',
'type': 'none',
'dependencies': [
'chromevox_assets',
'chromevox_static_files',
'chromevox_strings',
'chromevox_uncompiled_js_files',
'<(chromevox_third_party_dir)/chromevox.gyp:chromevox_third_party_resources',
'../braille_ime/braille_ime.gyp:braille_ime_manifest',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'dependencies': [
'<(DEPTH)/third_party/liblouis/liblouis_nacl.gyp:liblouis_nacl_wrapper_nacl',
],
}],
['chromevox_compress_js==1', {
'dependencies': [
'chromevox_background_script',
'chromevox_content_script',
'chromevox_kbexplorer_script',
'chromevox_min_content_script',
'chromevox_options_script',
'chromevox_panel_script',
],
}, { # chromevox_compress_js==0
'dependencies': [
'chromevox_copied_scripts',
'chromevox_deps',
],
}],
],
},
{
'target_name': 'chromevox_static_files',
'type': 'none',
'copies': [
{
'destination': '<(chromevox_dest_dir)/chromevox/background',
'files': [
'chromevox/background/kbexplorer.html',
'chromevox/background/options.html',
],
},
{
'destination': '<(chromevox_dest_dir)/cvox2/background',
'files': [
'cvox2/background/background.html',
'cvox2/background/panel.css',
'cvox2/background/panel.html',
],
},
],
},
{
# JavaScript files that are always directly included into the
# destination directory.
'target_name': 'chromevox_uncompiled_js_files',
'type': 'none',
'copies': [
{
'destination': '<(chromevox_dest_dir)/chromevox/injected',
'files': [
'chromevox/injected/api.js',
],
'conditions': [
[ 'chromevox_compress_js==1', {
'files': [
# api_util.js is copied by the chromevox_copied_scripts
# target in the non-compressed case.
'chromevox/injected/api_util.js',
],
}],
],
},
],
'conditions': [
[ 'chromevox_compress_js==0', {
'copies': [
{
'destination': '<(chromevox_dest_dir)/closure',
'files': [
'closure/closure_preinit.js',
],
},
],
}],
],
},
{
'target_name': 'chromevox_strings',
'type': 'none',
'actions': [
{
'action_name': 'chromevox_strings',
'variables': {
'grit_grd_file': 'strings/chromevox_strings.grd',
'grit_out_dir': '<(chromevox_dest_dir)',
# We don't generate any RC files, so no resource_ds file is needed.
'grit_resource_ids': '',
},
'includes': [ '../../../../../build/grit_action.gypi' ],
},
],
},
{
'target_name': 'chromevox_deps',
'type': 'none',
'variables': {
'deps_js_output_file': '<(chromevox_dest_dir)/deps.js',
},
'sources': [
'<(chromevox_content_script_loader_file)',
'<(chromevox_kbexplorer_loader_file)',
'<(chromevox_options_script_loader_file)',
'<(chromevox_background_script_loader_file)',
'<(chromevox_panel_script_loader_file)',
],
'includes': ['generate_deps.gypi'],
},
{
'target_name': 'chromevox_manifest',
'type': 'none',
'variables': {
'output_manifest_path': '<(chromevox_dest_dir)/manifest.json',
},
'includes': [ 'generate_manifest.gypi', ],
},
{
'target_name': 'chromevox_guest_manifest',
'type': 'none',
'variables': {
'output_manifest_path': '<(chromevox_dest_dir)/manifest_guest.json',
'is_guest_manifest': 1,
},
'includes': [ 'generate_manifest.gypi', ],
},
],
'conditions': [
['chromevox_compress_js==1', {
'targets': [
{
'target_name': 'chromevox_content_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVoxChromePageScript.js',
},
'sources': [ '<(chromevox_content_script_loader_file)' ],
'includes': [ 'compress_js.gypi', ],
},
{
'target_name': 'chromevox_options_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVoxChromeOptionsScript.js',
},
'sources': [ '<(chromevox_options_script_loader_file)' ],
'includes': [ 'compress_js.gypi', ],
},
{
'target_name': 'chromevox_kbexplorer_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVoxKbExplorerScript.js',
},
'sources': [ '<(chromevox_kbexplorer_loader_file)' ],
'includes': [ 'compress_js.gypi', ],
},
{
'target_name': 'chromevox_background_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVox2ChromeBackgroundScript.js',
},
'sources': [
'<(chromevox_background_script_loader_file)',
],
'includes': [ 'compress_js.gypi', ],
},
{
'target_name': 'chromevox_panel_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVoxPanelScript.js',
},
'sources': [ '<(chromevox_panel_script_loader_file)' ],
'includes': [ 'compress_js.gypi', ],
},
{
'target_name': 'chromevox_min_content_script',
'type': 'none',
'variables': {
'output_file': '<(chromevox_dest_dir)/chromeVox2ChromePageScript.js',
},
'sources': [ '<(chromevox_min_content_script_loader_file)' ],
'includes': [ 'compress_js.gypi', ],
},
],
}, { # chromevox_compress_js==0
'targets': [
{
'target_name': 'chromevox_copied_scripts',
'type': 'none',
'variables': {
'dest_dir': '<(chromevox_dest_dir)',
},
'sources': [
'<(chromevox_content_script_loader_file)',
'<(chromevox_kbexplorer_loader_file)',
'<(chromevox_options_script_loader_file)',
'<(chromevox_background_script_loader_file)',
'<(chromevox_panel_script_loader_file)',
],
'includes': [ 'copy_js.gypi', ],
},
],
}],
],
}],
],
}
# Copyright 2014 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.
# Common variables shared amongst all ChromeVox targets.
{
'variables': {
'chromevox_dir': '.',
'chromevox_third_party_dir': '<(DEPTH)/chrome/third_party/chromevox',
'closure_goog_dir': '<(chromevox_third_party_dir)/third_party/closure-library/closure/goog',
'chromevox_dest_dir': '<(PRODUCT_DIR)/resources/chromeos/chromevox',
'js_root_flags': [
'-r', '.',
'-r', '<(chromevox_dir)',
'-r', '<(closure_goog_dir)',
'-x', 'testing',
'-x', '_test.js',
],
'path_rewrite_flags': [
'-w', '<(closure_goog_dir):closure',
],
'template_manifest_path': 'manifest.json.jinja2',
},
}
# Copyright 2014 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.
# Include this file in a target to produce a bundled and compressed
# JavaScript file from a set of files with closure-style dependency
# declarations. The following variables must be defined before including
# this file:
# js_root_flags: List of '-r' flags to jsbundler.py for locating the
# .js files.
# output_file: path of the compressed JavaScript bundle.
#
# In addition, the target must have a 'sources' list containing the
# top-level files for the bundle.
{
'actions': [
{
'action_name': 'js_compress',
'message': 'Compress js for <(_target_name)',
'variables': {
'js_files': [
'<!@(python tools/jsbundler.py <(js_root_flags) <(_sources))'
],
},
'inputs': [
'tools/jsbundler.py',
'<@(js_files)',
],
'outputs': [
'<(output_file)'
],
'action': [
'python',
'tools/jsbundler.py',
'-m', 'compressed_bundle',
'-o', '<(output_file)',
'<@(js_files)',
],
},
],
}
# Copyright 2014 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.
# Include this file in a target to copy all necessary files to satisfy
# the transitive dependencies of a set of top-level JavaScript files
# using closure-style dependency declarations. The following variables
# must be available when this file is included:
# js_root_flags: List of '-r' flags to jsbundler.py for locating the
# .js files.
# path_rewrite_flags: '-w' flags to jsbundler.py to replace source path
# prefixes at the destination.
# dest_dir: Destination directory for all copied files.
{
'actions': [
{
'action_name': 'copy_js',
'message': 'Copy JS for <(_target_name)',
'variables': {
'js_bundler_path': 'tools/jsbundler.py',
'js_files': [
'<!@(python <(js_bundler_path) <(js_root_flags) <(_sources))'
],
},
'inputs': [
'<(js_bundler_path)',
'<@(js_files)',
],
'outputs': [
# dest_dir is quoted below because it can contain build system
# variables such as PRODUCT_DIR that need to be passed back
# literally.
'<!@(python <(js_bundler_path) <@(path_rewrite_flags) -d \'<(dest_dir)\' <@(js_files))'
],
'action': [
'python',
'<(js_bundler_path)',
'-m', 'copy',
'-d', '<(dest_dir)',
'<@(path_rewrite_flags)',
'<@(js_files)',
],
},
]
}
# Copyright 2014 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.
# Include this file in a target to generate a Closure style deps.js file.
#
# The following variables must be available when this file is included:
# js_root_flags: List of '-r' flags to jsbundler.py for locating the
# .js files.
# deps_js_output_file: Where to write the generated deps file.
{
'includes': ['common.gypi'],
'actions': [
{
'action_name': 'generate_deps',
'message': 'Generate deps for <(_target_name)',
'variables': {
'js_bundler_path': 'tools/jsbundler.py',
'closure_depswriter_path': 'tools/generate_deps.py',
'js_files': [
'<!@(python <(js_bundler_path) <(js_root_flags) <(_sources))'
],
},
'inputs': [
'<(js_bundler_path)',
'<(closure_depswriter_path)',
'<@(js_files)',
],
'outputs': [
'<(deps_js_output_file)',
],
'action': [
'python',
'<(closure_depswriter_path)',
'-w', '<(closure_goog_dir):../closure/',
'-w', ':../',
'--output_file', '<(deps_js_output_file)',
'<@(js_files)',
],
},
]
}
# Copyright 2014 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.
# Generates an output manifest based on a Jinja2 templated manifest.
# Include this file inside of your target to generate a manifest.
# The following variables must be set before including this file:
#
# template_manifest_path: a valid Jinja2 file path.
# output_manifest_path: file path for the resulting manifest.
# chromevox_extension_key: The extension key to include in the manifest.
#
# The following variables are optional:
#
# is_guest_manifest: 1 or 0; generates a manifest usable while in guest
# mode.
# chromevox_compress_js: 1 or 0; whether the javascript is compressed.
{
'variables': {
'generate_manifest_script_path': 'tools/generate_manifest.py',
'is_guest_manifest%': 0,
},
'includes': [
'../../../../../build/util/version.gypi',
],
'actions': [
{
'action_name': 'generate_manifest',
'message': 'Generate manifest for <(_target_name)',
'inputs': [
'<(generate_manifest_script_path)',
'<(template_manifest_path)',
],
'outputs': [
'<(output_manifest_path)'
],
'action': [
'python',
'<(generate_manifest_script_path)',
'--is_guest_manifest=<(is_guest_manifest)',
'--key=<(chromevox_extension_key)',
'--is_js_compressed=<(chromevox_compress_js)',
'--set_version=<(version_full)',
'--output_manifest=<(output_manifest_path)',
'<(template_manifest_path)',
],
},
],
}
{
'variables': {
# Unconditionally disable incremental linking for these modules so that
# their exports do not go through an ILT jmp stub.
'incremental_chrome_dll': '0', # 0 means no
'msvs_debug_link_incremental': '1', # 1 means /INCREMENTAL:NO
},
'targets': [
{
# GN version: //chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_test_dll_1
'target_name': 'verifier_test_dll_1',
'type': 'loadable_module',
'sources': [
'verifier_test_dll.cc',
'verifier_test_dll_1.def',
],
},
{
# GN version: //chrome/browser/safe_browsing/incident_reporting/verifier_test:verifier_test_dll_2
'target_name': 'verifier_test_dll_2',
'type': 'loadable_module',
'sources': [
'verifier_test_dll.cc',
'verifier_test_dll_2.def',
],
},
],
}
# Copyright 2016 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.
{
'targets': [
{
# GN version: //chrome/browser/ui/notifications:common
'target_name': 'notification_common',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)',
],
'sources': [
'notification_builder_mac.h',
'notification_builder_mac.mm',
'notification_constants_mac.h',
'notification_constants_mac.mm',
'notification_response_builder_mac.h',
'notification_response_builder_mac.mm',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
'<(DEPTH)/ui/base/ui_base.gyp:ui_base',
],
},
],
}
# 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,
},
'targets': [
{
# GN version: //chrome/browser/ui/libgtk2ui
'target_name': 'gtk2ui',
'type': '<(component)',
'dependencies': [
'../../../../base/base.gyp:base',
'../../../../base/base.gyp:base_i18n',
'../../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../../../build/linux/system.gyp:gconf',
'../../../../build/linux/system.gyp:x11',
'../../../../build/linux/system.gyp:xcursor',
'../../../../components/components_resources.gyp:components_resources',
'../../../../content/content.gyp:content',
'../../../../skia/skia.gyp:skia',
'../../../../ui/aura/aura.gyp:aura',
'../../../../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
'../../../../ui/base/ui_base.gyp:ui_base',
'../../../../ui/base/x/ui_base_x.gyp:ui_base_x',
'../../../../ui/display/display.gyp:display',
'../../../../ui/events/events.gyp:events',
'../../../../ui/events/events.gyp:events_base',
'../../../../ui/events/keycodes/events_keycodes.gyp:keycodes_x11',
'../../../../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
'../../../../ui/gfx/gfx.gyp:gfx',
'../../../../ui/gfx/gfx.gyp:gfx_geometry',
'../../../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
'../../../../ui/native_theme/native_theme.gyp:native_theme',
'../../../../ui/resources/ui_resources.gyp:ui_resources',
'../../../../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
'../../../../ui/strings/ui_strings.gyp:ui_strings',
'../../../../ui/views/views.gyp:views',
'../../../chrome_resources.gyp:chrome_extra_resources',
'../../../chrome_resources.gyp:chrome_resources',
'../../../chrome_resources.gyp:chrome_strings',
'../../../chrome_resources.gyp:theme_resources',
],
'defines': [
'LIBGTK2UI_IMPLEMENTATION',
],
# Several of our source files are named _gtk2.cc. This isn't to
# differentiate them from their source files (ninja and make are sane
# build systems, unlike MSVS). It is instead to get around the rest of
# the normal, global gtk exclusion rules, as we are otherwise using gtk
# in a non-gtk build.
'sources': [
# Note: sources list duplicated in GN build.
'app_indicator_icon.cc',
'app_indicator_icon.h',
'app_indicator_icon_menu.cc',
'app_indicator_icon_menu.h',
'chrome_gtk_frame.cc',
'chrome_gtk_frame.h',
'chrome_gtk_menu_subclasses.cc',
'chrome_gtk_menu_subclasses.h',
'gconf_listener.cc',
'gconf_listener.h',
'gtk2_event_loop.cc',
'gtk2_event_loop.h',
'gtk2_key_bindings_handler.cc',
'gtk2_key_bindings_handler.h',
'gtk2_status_icon.cc',
'gtk2_status_icon.h',
'gtk2_ui.cc',
'gtk2_ui.h',
'gtk2_util.cc',
'gtk2_util.h',
'libgtk2ui_export.h',
'menu_util.cc',
'menu_util.h',
'native_theme_gtk2.cc',
'native_theme_gtk2.h',
'print_dialog_gtk2.cc',
'print_dialog_gtk2.h',
'printing_gtk2_util.cc',
'printing_gtk2_util.h',
'select_file_dialog_impl.cc',
'select_file_dialog_impl.h',
'select_file_dialog_impl_gtk2.cc',
'select_file_dialog_impl_gtk2.h',
'select_file_dialog_impl_kde.cc',
'skia_utils_gtk2.cc',
'skia_utils_gtk2.h',
'unity_service.cc',
'unity_service.h',
'x11_input_method_context_impl_gtk2.cc',
'x11_input_method_context_impl_gtk2.h',
],
'conditions': [
['use_gconf==0', {
'sources!': [
'gconf_listener.cc',
'gconf_listener.h',
],
}],
['use_gtk3==1', {
'dependencies': [
'../../../../build/linux/system.gyp:gtk3',
'../../../../build/linux/system.gyp:gtkprint3',
],
}, {
'dependencies': [
'../../../../build/linux/system.gyp:gtk2',
'../../../../build/linux/system.gyp:gtkprint2',
],
}],
[ 'clang==1', {
'cflags': [
# G_DEFINE_TYPE automatically generates a *get_instance_private inline function after glib 2.37.
# That's unused. Prevent to complain about it.
'-Wno-unused-function',
# G_STATIC_ASSERT uses a typedef as a static_assert.
'-Wno-unused-local-typedef',
],
}],
['enable_basic_printing==1', {
'dependencies': [
'../../../../printing/printing.gyp:printing',
],
}],
['use_cups==1', {
'dependencies': [
'../../../../printing/printing.gyp:cups',
],
}],
],
},
],
}
This diff is collapsed.
# 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,
},
'targets': [
{
# GN: //chrome:chrome_android_core
'target_name': 'chrome_android_core',
'type': 'static_library',
'dependencies': [
'chrome.gyp:browser',
'chrome.gyp:browser_ui',
'chrome.gyp:child',
'chrome.gyp:gpu',
'chrome_features.gyp:chrome_common_features',
'chrome.gyp:renderer',
'chrome.gyp:utility',
'../components/components.gyp:safe_browsing_db_mobile',
'../content/content.gyp:content',
'../content/content.gyp:content_app_both',
],
'include_dirs': [
'..',
'<(android_ndk_include)',
],
'sources': [
'app/android/chrome_android_initializer.cc',
'app/android/chrome_android_initializer.h',
'app/android/chrome_jni_onload.cc',
'app/android/chrome_jni_onload.h',
'app/android/chrome_main_delegate_android.cc',
'app/android/chrome_main_delegate_android.h',
'app/chrome_main_delegate.cc',
'app/chrome_main_delegate.h',
],
'link_settings': {
'libraries': [
'-landroid',
'-ljnigraphics',
],
},
},
{
# GYP: //chrome/android:chrome_version_java
'target_name': 'chrome_version_java',
'type': 'none',
'variables': {
'template_input_path': 'android/java/ChromeVersionConstants.java.version',
'version_path': 'VERSION',
'version_py_path': '<(DEPTH)/build/util/version.py',
'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromium/chrome/browser/ChromeVersionConstants.java',
'conditions': [
['branding == "Chrome"', {
'branding_path': 'app/theme/google_chrome/BRANDING',
}, {
'branding_path': 'app/theme/chromium/BRANDING',
}],
],
},
'direct_dependent_settings': {
'variables': {
# Ensure that the output directory is used in the class path
# when building targets that depend on this one.
'generated_src_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)',
],
# Ensure dependents are rebuilt when the generated Java file changes.
'additional_input_paths': [
'<(output_path)',
],
},
},
'actions': [
{
'action_name': 'chrome_version_java_template',
'inputs': [
'<(template_input_path)',
'<(version_path)',
'<(branding_path)',
'<(version_py_path)',
],
'outputs': [
'<(output_path)',
],
'action': [
'python',
'<(version_py_path)',
'-f', '<(version_path)',
'-f', '<(branding_path)',
'-e', 'CHANNEL=str.upper("<(android_channel)")',
'<(template_input_path)',
'<(output_path)',
],
},
],
},
],
}
This diff is collapsed.
# Copyright 2013 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,
},
'targets': [
{
# GN version: //chrome/browser/ui/views
'target_name': 'browser_ui_views',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../skia/skia.gyp:skia',
'../ui/base/ui_base.gyp:ui_base',
'../ui/events/events.gyp:events',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../url/url.gyp:url_lib',
],
'conditions': [
['use_ash==1', {
'dependencies': [
'../ash/ash.gyp:ash',
],
}],
],
'defines': [
'CHROME_VIEWS_IMPLEMENTATION',
],
'sources': [
'browser/ui/views/accelerator_table.cc',
'browser/ui/views/accelerator_table.h',
'browser/ui/views/chrome_views_export.h',
'browser/ui/views/event_utils.cc',
'browser/ui/views/event_utils.h',
'browser/ui/views/tab_icon_view_model.h',
'browser/ui/views/tabs/tab_renderer_data.cc',
'browser/ui/views/tabs/tab_renderer_data.h',
'browser/ui/views/tabs/tab_strip_observer.cc',
'browser/ui/views/tabs/tab_strip_observer.h',
'browser/ui/views/tabs/tab_strip_types.h',
],
},
],
}
# Copyright 2014 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.
{
'targets': [
{
# GN version: //chrome/browser/devtools
'target_name': 'debugger',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'dependencies': [
'../base/base.gyp:base',
'../content/content.gyp:content_browser',
'../net/net.gyp:net',
'browser/devtools/devtools_protocol_constants.gyp:devtools_protocol_constants',
'chrome_features.gyp:chrome_common_features',
'../ui/events/events.gyp:dom_keycode_converter',
],
'include_dirs': [
'..',
],
'sources': [
# These files are generated by devtools_protocol_constants_generator.py.
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/devtools/devtools_protocol_constants.cc',
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/devtools/devtools_protocol_constants.h',
'browser/devtools/chrome_devtools_manager_delegate.cc',
'browser/devtools/chrome_devtools_manager_delegate.h',
'browser/devtools/devtools_network_conditions.cc',
'browser/devtools/devtools_network_conditions.h',
'browser/devtools/devtools_network_controller.cc',
'browser/devtools/devtools_network_controller.h',
'browser/devtools/devtools_network_controller_handle.cc',
'browser/devtools/devtools_network_controller_handle.h',
'browser/devtools/devtools_network_interceptor.cc',
'browser/devtools/devtools_network_interceptor.h',
'browser/devtools/devtools_network_protocol_handler.cc',
'browser/devtools/devtools_network_protocol_handler.h',
'browser/devtools/devtools_network_transaction.cc',
'browser/devtools/devtools_network_transaction.h',
'browser/devtools/devtools_network_transaction_factory.cc',
'browser/devtools/devtools_network_transaction_factory.h',
'browser/devtools/devtools_network_upload_data_stream.cc',
'browser/devtools/devtools_network_upload_data_stream.h',
'browser/devtools/devtools_protocol.cc',
'browser/devtools/devtools_protocol.h',
],
'conditions': [
['OS!="android"', {
'dependencies': [
'../components/components.gyp:devtools_http_handler',
'../net/net.gyp:http_server',
'../skia/skia.gyp:skia',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
'chrome_resources.gyp:chrome_extra_resources',
'chrome_resources.gyp:chrome_resources',
'chrome_resources.gyp:chrome_strings',
'chrome_resources.gyp:theme_resources',
'common/extensions/api/api.gyp:chrome_api',
],
'sources': [
'browser/devtools/device/adb/adb_client_socket.cc',
'browser/devtools/device/adb/adb_client_socket.h',
'browser/devtools/device/adb/adb_device_provider.cc',
'browser/devtools/device/adb/adb_device_provider.h',
'browser/devtools/device/android_device_info_query.cc',
'browser/devtools/device/android_device_manager.cc',
'browser/devtools/device/android_device_manager.h',
'browser/devtools/device/android_web_socket.cc',
'browser/devtools/device/devtools_android_bridge.cc',
'browser/devtools/device/devtools_android_bridge.h',
'browser/devtools/device/port_forwarding_controller.cc',
'browser/devtools/device/port_forwarding_controller.h',
'browser/devtools/device/tcp_device_provider.cc',
'browser/devtools/device/tcp_device_provider.h',
'browser/devtools/device/usb/android_rsa.cc',
'browser/devtools/device/usb/android_rsa.h',
'browser/devtools/device/usb/android_usb_device.cc',
'browser/devtools/device/usb/android_usb_device.h',
'browser/devtools/device/usb/android_usb_socket.cc',
'browser/devtools/device/usb/android_usb_socket.h',
'browser/devtools/device/usb/usb_device_provider.cc',
'browser/devtools/device/usb/usb_device_provider.h',
'browser/devtools/devtools_auto_opener.cc',
'browser/devtools/devtools_auto_opener.h',
'browser/devtools/devtools_contents_resizing_strategy.cc',
'browser/devtools/devtools_contents_resizing_strategy.h',
'browser/devtools/devtools_embedder_message_dispatcher.cc',
'browser/devtools/devtools_embedder_message_dispatcher.h',
'browser/devtools/devtools_file_helper.cc',
'browser/devtools/devtools_file_helper.h',
'browser/devtools/devtools_file_system_indexer.cc',
'browser/devtools/devtools_file_system_indexer.h',
'browser/devtools/devtools_file_watcher.cc',
'browser/devtools/devtools_file_watcher.h',
'browser/devtools/devtools_targets_ui.cc',
'browser/devtools/devtools_targets_ui.h',
'browser/devtools/devtools_toggle_action.cc',
'browser/devtools/devtools_toggle_action.h',
'browser/devtools/devtools_ui_bindings.cc',
'browser/devtools/devtools_ui_bindings.h',
'browser/devtools/devtools_window.cc',
'browser/devtools/devtools_window.h',
'browser/devtools/global_confirm_info_bar.cc',
'browser/devtools/global_confirm_info_bar.h',
'browser/devtools/remote_debugging_server.cc',
'browser/devtools/remote_debugging_server.h',
],
'conditions': [
['enable_service_discovery==1', {
'sources': [
'browser/devtools/device/cast_device_provider.cc',
'browser/devtools/device/cast_device_provider.h',
],
}],
],
}], # OS!="android"
['debug_devtools==1', {
'defines': [
'DEBUG_DEVTOOLS=1',
],
}],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
}
This diff is collapsed.
# 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.
# This file contains resources for the main Mac chromium bundle.
{
# The main browser executable's name is <(mac_product_name).
# Certain things will get confused if two modules in the
# executable share the same name, so append " Framework" to the
# product_name used for the framework. This will result in
# a name like "Chromium Framework.framework".
'product_name': '<(mac_product_name) Framework',
'mac_bundle': 1,
'xcode_settings': {
'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
# The dylib versions are of the form a[.b[.c]], where a is a
# 16-bit unsigned integer, and b and c are 8-bit unsigned
# integers. Any missing component is taken to be 0. The
# best mapping from product version numbers into this scheme
# is to just use a=BUILD, b=(PATCH/256), c=(PATCH%256). There
# is no ambiguity in this scheme because the build and patch
# numbers are guaranteed unique even across distinct major
# and minor version numbers. These settings correspond to
# -compatibility_version and -current_version.
'DYLIB_COMPATIBILITY_VERSION': '<(version_mac_dylib)',
'DYLIB_CURRENT_VERSION': '<(version_mac_dylib)',
# The framework is placed within the .app's versioned
# directory. DYLIB_INSTALL_NAME_BASE and
# LD_DYLIB_INSTALL_NAME affect -install_name.
'DYLIB_INSTALL_NAME_BASE':
'@executable_path/../Versions/<(version_full)',
# See /build/mac/copy_framework_unversioned.sh for
# information on LD_DYLIB_INSTALL_NAME.
'LD_DYLIB_INSTALL_NAME':
'$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
'INFOPLIST_FILE': 'app/framework-Info.plist',
},
'includes': [
'chrome_nibs.gypi',
'../media/cdm_paths.gypi',
],
# TODO(mark): Come up with a fancier way to do this. It should
# only be necessary to list framework-Info.plist once, not the
# three times it is listed here.
'mac_bundle_resources': [
# This image is used to badge the lock icon in the
# authentication dialogs, such as those used for installation
# from disk image and Keystone promotion (if so enabled). It
# needs to exist as a file on disk and not just something in a
# resource bundle because that's the interface that
# Authorization Services uses. Also, Authorization Services
# can't deal with .icns files.
'app/theme/default_100_percent/<(theme_dir_name)/product_logo_32.png',
'app/framework-Info.plist',
'<@(mac_all_xibs)',
'browser/mac/install.sh',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak',
'<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
# Note: pseudo_locales are generated via the packed_resources
# dependency but not copied to the final target. See
# common.gypi for more info.
],
'mac_bundle_resources!': [
'app/framework-Info.plist',
],
'dependencies': [
'app_mode_app',
# Bring in pdfsqueeze and run it on all pdfs
'../crypto/crypto.gyp:crypto',
# On Mac, Flash gets put into the framework, so we need this
# dependency here. flash_player.gyp will copy the Flash bundle
# into PRODUCT_DIR.
'../third_party/adobe/flash/flash_player.gyp:flapper_binaries',
'../third_party/crashpad/crashpad/handler/handler.gyp:crashpad_handler',
'../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
'chrome_resources.gyp:packed_extra_resources',
'chrome_resources.gyp:packed_resources',
],
'variables': {
'theme_dir_name': '<(branding_path_component)',
},
'postbuilds': [
{
# Modify the Info.plist as needed. The script explains why
# this is needed. This is also done in the chrome target.
# The framework needs the Breakpad keys if this feature is
# enabled. It does not need the Keystone keys; these always
# come from the outer application bundle. The framework
# doesn't currently use the SCM keys for anything,
# but this seems like a really good place to store them.
'postbuild_name': 'Tweak Info.plist',
'action': ['<(tweak_info_plist_path)',
'--plist=${TARGET_BUILD_DIR}/${INFOPLIST_PATH}',
'--breakpad=<(mac_breakpad_compiled_in)',
'--breakpad_uploads=<(mac_breakpad_uploads)',
'--keystone=0',
'--scm=1',
'--branding=<(branding)'],
},
],
'copies': [
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Helpers',
'files': [
'<(PRODUCT_DIR)/crashpad_handler',
],
},
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins',
'files': [],
'conditions': [
['disable_nacl!=1', {
'files': [
'<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
],
}],
],
},
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Internet Plug-Ins/PepperFlash',
'files': [],
'conditions': [
['branding == "Chrome"', {
'files': [
'<(PRODUCT_DIR)/PepperFlash/PepperFlashPlayer.plugin',
'<(PRODUCT_DIR)/PepperFlash/manifest.json',
],
}],
],
},
{
# The adapter is not a complete library on its own. It needs the Widevine
# CDM to work.
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/<(widevine_cdm_path)',
'files': [],
'conditions': [
['branding == "Chrome"', {
'files': [
'<(PRODUCT_DIR)/<(widevine_cdm_path)/libwidevinecdm.dylib',
'<(PRODUCT_DIR)/<(widevine_cdm_path)/widevinecdmadapter.plugin',
],
}],
],
},
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries/WidevineCdm',
'files': [],
'conditions': [
['branding == "Chrome"', {
'files': [
'<(PRODUCT_DIR)/WidevineCdm/manifest.json',
],
}],
],
},
{
# Copy of resources used by tests.
'destination': '<(PRODUCT_DIR)/pseudo_locales',
'files': [
'<(SHARED_INTERMEDIATE_DIR)/<(pseudo_locales).pak'
],
},
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
'files': [
# Loader bundle for platform apps.
'<(PRODUCT_DIR)/app_mode_loader.app',
],
},
],
'conditions': [
['branding=="Chrome"', {
'copies': [
{
# This location is for the Mac build. Note that the
# copying of these files for Windows and Linux is handled
# in chrome.gyp, as Mac needs to be dropped inside the
# framework.
'destination':
'<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Default Apps',
'files': ['<@(default_apps_list)'],
},
],
}],
['mac_breakpad==1', {
'variables': {
# A real .dSYM is needed for dump_syms to operate on.
'mac_real_dsym': 1,
},
}],
['mac_keystone==1', {
'mac_bundle_resources': [
'browser/mac/keystone_promote_preflight.sh',
'browser/mac/keystone_promote_postflight.sh',
],
'postbuilds': [
{
'postbuild_name': 'Copy KeystoneRegistration.framework',
'action': [
'../build/mac/copy_framework_unversioned.sh',
'-I',
'../third_party/googlemac/Releases/Keystone/KeystoneRegistration.framework',
'${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
],
},
{
'postbuild_name:': 'Lipo KeystoneRegistration.framework',
'variables': {
'KEYSTONE_FILE':
'${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks/KeystoneRegistration.framework/KeystoneRegistration',
},
'action': [
'tools/mac_helpers/lipo_thin_x86_64.sh',
'<(KEYSTONE_FILE)',
],
},
{
'postbuild_name': 'Symlink Frameworks',
'action': [
'ln',
'-fns',
'Versions/Current/Frameworks',
'${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Frameworks'
],
},
],
}], # mac_keystone
['debug_devtools==1', {
'postbuilds': [{
'postbuild_name': 'Copy inspector files',
'action': [
'ln',
'-fs',
'${BUILT_PRODUCTS_DIR}/resources/inspector',
'${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Resources',
],
}],
}],
['enable_hidpi==1', {
'mac_bundle_resources': [
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
],
}],
['icu_use_data_file_flag==1', {
'mac_bundle_resources': [
'<(PRODUCT_DIR)/icudtl.dat',
],
}],
['v8_use_external_startup_data==1', {
'mac_bundle_resources': [
'<(PRODUCT_DIR)/natives_blob.bin',
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
}],
], # conditions
}
This diff is collapsed.
# Copyright 2015 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.
{
'includes': [
'chrome_features.gypi',
],
'targets': [
{
# GN version: //chrome/common:features
'target_name': 'chrome_common_features',
'includes': [ '../build/buildflag_header.gypi' ],
'variables': {
'buildflag_header_path': 'chrome/common/features.h',
'buildflag_flags': [
'ENABLE_BACKGROUND=<(enable_background)',
'ENABLE_GOOGLE_NOW=<(enable_google_now)',
'ENABLE_ONE_CLICK_SIGNIN=<(enable_one_click_signin)',
'ANDROID_JAVA_UI=<(android_java_ui)',
'USE_VULCANIZE=<(use_vulcanize)',
'ENABLE_PACKAGE_MASH_SERVICES=<(enable_package_mash_services)',
],
},
},
]
}
# Copyright 2015 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.
# This is the GYP equivalent of //chrome/common/features.gni.
# Please keep in sync!
{
'variables': {
'variables': {
# Conditional variables.
'conditions': [
['OS=="android"', {
'android_java_ui%': 1,
}, {
'android_java_ui': 0,
}],
['OS=="android" or OS=="ios"', {
'enable_background%': 0,
}, {
'enable_background%': 1,
}]
],
# Google Now is disabled to prepare for its removal.
# http://crbug.com/539674
'enable_google_now%': 0,
# Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://)
# pages. https://github.com/polymer/vulcanize
'use_vulcanize%': 1,
},
# Anything in the conditions needs to be copied to the outer scope to be
# accessible.
'enable_background%': '<(enable_background)',
'enable_google_now%': '<(enable_google_now)',
'android_java_ui%': '<(android_java_ui)',
'use_vulcanize%': '<(use_vulcanize)',
# GN only, but defined here so BUILDFLAG works without ifdef.
'enable_package_mash_services%': 0,
# Grit defines based on the feature flags. These must be manually added to
# grit targets.
'chrome_grit_defines': [
'-D', 'enable_background=<(enable_background)',
'-D', 'enable_google_now=<(enable_google_now)',
'-D', 'use_vulcanize=<(use_vulcanize)',
],
},
}
# Copyright 2016 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.
{
'targets': [
{
# GN version: //chrome/gpu
'target_name': 'gpu',
'type': 'static_library',
'include_dirs': [
'..',
'<(grit_out_dir)',
],
'sources': [
'gpu/chrome_content_gpu_client.cc',
'gpu/chrome_content_gpu_client.h',
],
'dependencies': [
'../content/content.gyp:content_common',
'../content/content.gyp:content_gpu',
'../media/media.gyp:media_gpu',
],
'conditions': [
['chromeos==1', {
'dependencies': [
'../components/components.gyp:arc_mojo_bindings',
],
'sources': [
'gpu/arc_gpu_video_decode_accelerator.cc',
'gpu/arc_gpu_video_decode_accelerator.h',
'gpu/arc_video_accelerator.h',
'gpu/gpu_arc_video_service.cc',
'gpu/gpu_arc_video_service.h',
],
}],
],
},
],
}
# Copyright 2015 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': {
# Wrapper around build/grit_action.gypi that applies Chrome-specific grit
# settings. Actions that include this gypi file at their local scopes can
# define variables with the same names as the ones below and they will be
# merged.
'grit_additional_defines': [ '<@(chrome_grit_defines)' ],
},
'includes': [ '../build/grit_action.gypi', 'chrome_features.gypi' ],
}
This diff is collapsed.
# Copyright 2016 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.
# The install_static_util target should only depend on functions in kernel32.
# Please don't add dependencies on other system libraries.
{
'target_defaults': {
'variables': {
'installer_static_target': 0,
},
'target_conditions': [
# This part is shared between the two versions of the target.
['installer_static_target==1', {
'sources': [
'install_static/install_util.h',
'install_static/install_util.cc',
],
'include_dirs': [
'<(DEPTH)',
],
}],
],
},
'conditions': [
['OS=="win"', {
'targets': [
{
# GN version: //chrome/install_static
'target_name': 'install_static_util',
'type': 'static_library',
'variables': {
'installer_static_target': 1,
},
'dependencies': [
'../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry',
],
'msvs_settings': {
'VCLinkerTool': {
# Please don't add dependencies on other system libraries.
'AdditionalDependencies': [
'kernel32.lib',
],
},
},
},
{
'target_name': 'install_static_unittests',
'type': 'executable',
'sources': [
'install_static/install_util_unittest.cc',
],
'include_dirs': [
'..',
'<(SHARED_INTERMEDIATE_DIR)',
],
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:run_all_unittests',
'../base/base.gyp:test_support_base',
'chrome.gyp:install_static_util',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
],
},
],
}],
['OS=="win" and test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'install_static_unittests_run',
'type': 'none',
'dependencies': [
'install_static_unittests',
],
'includes': [ '../build/isolate.gypi' ],
'sources': [
'install_static_unittests.isolate'
],
},
],
}],
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'install_static_util_nacl_win64',
'type': 'static_library',
'variables': {
'installer_static_target': 1,
},
'dependencies': [
'../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry_nacl_win64',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'msvs_settings': {
'VCLinkerTool': {
# Please don't add dependencies on other system libraries.
'AdditionalDependencies': [
'kernel32.lib',
],
},
},
},
],
}],
],
}
This diff is collapsed.
# 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.
{
'dependencies': [
'<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
'<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
],
'mac_bundle_resources': [
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_300_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak',
'<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
],
}
# Copyright (c) 2013 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.
{
'targets': [
{
'target_name': 'chrome_process_finder',
'type': 'static_library',
'include_dirs': [
'..',
],
'dependencies': [
'policy_path_parser',
'../base/base.gyp:base',
'../chrome/common_constants.gyp:common_constants',
],
'sources': [
'browser/win/chrome_process_finder.cc',
'browser/win/chrome_process_finder.h',
],
},
],
}
# 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.
{
# GN version: //chrome:repack_chrome_100_percent
'action_name': 'repack_chrome_resources_100_percent',
'variables': {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/components/components_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
'<(grit_out_dir)/renderer_resources_100_percent.pak',
'<(grit_out_dir)/theme_resources_100_percent.pak',
],
'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
'conditions': [
['OS != "ios"', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
],
}],
['toolkit_views==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_100_percent.pak',
],
}],
['use_ash==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ash/resources/ash_resources_100_percent.pak',
],
}],
['chromeos==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/resources/ui_chromeos_resources_100_percent.pak',
],
}],
['enable_extensions==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
],
}],
['enable_app_list==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/app_list/resources/app_list_resources_100_percent.pak',
],
}],
],
},
'includes': [ '../build/repack_action.gypi' ],
}
# 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.
{
# GN version: //chrome:repack_chrome_200_percent
'action_name': 'repack_chrome_resources_200_percent',
'variables': {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/components/components_resources_200_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_200_percent.pak',
'<(grit_out_dir)/renderer_resources_200_percent.pak',
'<(grit_out_dir)/theme_resources_200_percent.pak',
],
'pak_output': '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_200_percent.pak',
'conditions': [
['OS != "ios"', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_200_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_200_percent.pak',
],
}],
['toolkit_views==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_200_percent.pak',
],
}],
['use_ash==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ash/resources/ash_resources_200_percent.pak',
],
}],
['chromeos==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/resources/ui_chromeos_resources_200_percent.pak',
],
}],
['enable_extensions==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_200_percent.pak',
],
}],
['enable_app_list==1', {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/ui/app_list/resources/app_list_resources_200_percent.pak',
],
}],
],
},
'includes': [ '../build/repack_action.gypi' ],
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment