summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-18 22:09:12 +0000
committerslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-18 22:09:12 +0000
commit18cd66f0a730b18840f9b9e96282c1308728c16e (patch)
treeea12085486034730beb8cdcf4e5cb31692c58d0f
parentedc82b6482925ec2f276af8ee29a9ff903819d85 (diff)
downloadchromium_src-18cd66f0a730b18840f9b9e96282c1308728c16e.zip
chromium_src-18cd66f0a730b18840f9b9e96282c1308728c16e.tar.gz
chromium_src-18cd66f0a730b18840f9b9e96282c1308728c16e.tar.bz2
Revert 34983 - Split more targets from chrome.gyp to add support for building Native Client for 64bit Windows.
This CL is required for supporting Native Client on 64bit Windows. On Win64 we will use a 64bit executable to load NaCl modules. Since we have only one version of Chrome on Windows, this executable has to be built together with 32bit Chrome binaries. For the targets that are required for both 32bit and 64bit builds, this CL moves the shared parts of the target definitions into targetspecific gypi files (such as base.gypi). New 64bit only targets are added. Since we would like to port as few code as possible at this point, some 64bit targets include less source files or less dependencies than the original 32bit targets. These targets will have nacl_win64 in their name to emphasize that they should be used for NaCl only. Some 64bit targets are identical to the 32bit targets in everything except for the target platform these will have only win64 in their name. TEST=none BUG=28176 Review URL: http://codereview.chromium.org/384068 TBR=gregoryd@google.com Review URL: http://codereview.chromium.org/501125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34990 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/common.gypi14
-rw-r--r--chrome/app/dummy_main_functions.cc44
-rw-r--r--chrome/browser/renderer_host/render_process_host_dummy.cc6
-rwxr-xr-xchrome/chrome.gyp1283
-rw-r--r--chrome/chrome_common.gypi375
-rw-r--r--chrome/chrome_dll.gypi516
-rw-r--r--chrome/chrome_exe.gypi543
-rw-r--r--chrome/common/resource_dispatcher_dummy.cc25
-rw-r--r--chrome/common/socket_stream_dispatcher_dummy.cc18
-rw-r--r--chrome/common_constants.gypi96
-rw-r--r--chrome/nacl.gypi101
-rw-r--r--chrome/nacl/sel_main.cc9
-rw-r--r--webkit/glue/webkit_glue_dummy.cc20
-rw-r--r--webkit/glue/websocketstreamhandle_delegate.h4
14 files changed, 1273 insertions, 1781 deletions
diff --git a/build/common.gypi b/build/common.gypi
index edaafe0..b51ce40 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -511,24 +511,10 @@
'Common_x64': {
'msvs_configuration_platform': 'x64',
'msvs_settings': {
- 'VCLibrarianTool': {
- 'AdditionalLibraryDirectories!':
- ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
- 'AdditionalLibraryDirectories':
- ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
- },
'VCLinkerTool': {
'TargetMachine': '17',
- 'AdditionalLibraryDirectories!':
- ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
- 'AdditionalLibraryDirectories':
- ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
},
},
- 'defines': [
- # Not sure if tcmalloc works on 64-bit Windows.
- 'NO_TCMALLOC',
- ],
'abstract': 1,
},
'Debug_x64': {
diff --git a/chrome/app/dummy_main_functions.cc b/chrome/app/dummy_main_functions.cc
deleted file mode 100644
index fa066ca..0000000
--- a/chrome/app/dummy_main_functions.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2009 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 "chrome/common/main_function_params.h"
-#include "chrome/common/result_codes.h"
-
-// Native Client binary for 64-bit Windows can run only the NaCl loader or
-// the sandbox broker processes. Other process types are not supported.
-int BrowserMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int RendererMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int PluginMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int WorkerMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int UtilityMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int ProfileImportMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int ZygoteMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int NaClBrokerMain(const MainFunctionParams& parameters) {
- return ResultCodes::BAD_PROCESS_TYPE;
-}
-
-int DiagnosticsMain(const CommandLine& command_line) {
- return 1;
-}
diff --git a/chrome/browser/renderer_host/render_process_host_dummy.cc b/chrome/browser/renderer_host/render_process_host_dummy.cc
deleted file mode 100644
index 61ce553..0000000
--- a/chrome/browser/renderer_host/render_process_host_dummy.cc
+++ /dev/null
@@ -1,6 +0,0 @@
-// Copyright (c) 2006-2009 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 "chrome/browser/renderer_host/render_process_host.h"
-
-bool RenderProcessHost::run_renderer_in_process_ = false;
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 45b2144..da30ab1 100755
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -33,10 +33,6 @@
'../printing/printing.gyp:printing',
'../webkit/webkit.gyp:inspector_resources',
],
- 'nacl_win64_dependencies': [
- 'common_nacl_win64',
- 'common_constants_win64',
- ],
'allocator_target': '../base/allocator/allocator.gyp:allocator',
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
@@ -108,17 +104,9 @@
'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.
'chrome_browser.gypi',
- 'chrome_common.gypi',
- 'chrome_dll.gypi',
- 'chrome_exe.gypi',
'chrome_renderer.gypi',
'chrome_tests.gypi',
- 'common_constants.gypi',
- 'nacl.gypi',
],
'targets': [
{
@@ -353,6 +341,340 @@
}],
],
},
+ {
+ 'target_name': 'common_constants',
+ 'type': '<(library)',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'dependencies': ['../build/linux/system.gyp:gtk'],
+ }],
+ ],
+ 'sources': [
+ 'common/chrome_constants.cc',
+ 'common/chrome_constants.h',
+ 'common/chrome_paths.cc',
+ 'common/chrome_paths.h',
+ 'common/chrome_paths_internal.h',
+ 'common/chrome_paths_linux.cc',
+ 'common/chrome_paths_mac.mm',
+ 'common/chrome_paths_win.cc',
+ 'common/chrome_switches.cc',
+ 'common/chrome_switches.h',
+ 'common/env_vars.cc',
+ 'common/env_vars.h',
+ 'common/json_value_serializer.cc',
+ 'common/json_value_serializer.h',
+ 'common/pref_names.cc',
+ 'common/pref_names.h',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'Make chrome_version.cc',
+ 'variables': {
+ 'make_version_cc_path': 'tools/build/make_version_cc.py',
+ },
+ 'inputs': [
+ '<(make_version_cc_path)',
+ 'VERSION',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/chrome_version.cc',
+ ],
+ 'action': [
+ 'python',
+ '<(make_version_cc_path)',
+ '<@(_outputs)',
+ '<(version_full)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ },
+ {
+ 'target_name': 'common',
+ 'type': '<(library)',
+ 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
+ 'dependencies': [
+ 'common_constants',
+ 'chrome_resources',
+ 'chrome_strings',
+ 'theme_resources',
+ '../app/app.gyp:app_base',
+ '../app/app.gyp:app_resources',
+ '../base/base.gyp:base',
+ '../base/base.gyp:base_i18n',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
+ '../ipc/ipc.gyp:ipc',
+ '../net/net.gyp:net',
+ '../net/net.gyp:net_resources',
+ '../skia/skia.gyp:skia',
+ '../third_party/icu/icu.gyp:icui18n',
+ '../third_party/icu/icu.gyp:icuuc',
+ '../third_party/libxml/libxml.gyp:libxml',
+ '../third_party/sqlite/sqlite.gyp:sqlite',
+ '../third_party/zlib/zlib.gyp:zlib',
+ '../third_party/npapi/npapi.gyp:npapi',
+ '../webkit/webkit.gyp:appcache',
+ '../webkit/webkit.gyp:glue',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ # All .cc, .h, and .mm files under chrome/common except for tests.
+ 'common/desktop_notifications/active_notification_tracker.h',
+ 'common/desktop_notifications/active_notification_tracker.cc',
+ 'common/extensions/extension.cc',
+ 'common/extensions/extension.h',
+ 'common/extensions/extension_constants.cc',
+ 'common/extensions/extension_constants.h',
+ 'common/extensions/extension_error_reporter.cc',
+ 'common/extensions/extension_error_reporter.h',
+ 'common/extensions/extension_error_utils.cc',
+ 'common/extensions/extension_error_utils.h',
+ 'common/extensions/extension_action.cc',
+ 'common/extensions/extension_action.h',
+ 'common/extensions/extension_l10n_util.cc',
+ 'common/extensions/extension_l10n_util.h',
+ 'common/extensions/extension_message_bundle.cc',
+ 'common/extensions/extension_message_bundle.h',
+ 'common/extensions/extension_resource.cc',
+ 'common/extensions/extension_resource.h',
+ 'common/extensions/extension_unpacker.cc',
+ 'common/extensions/extension_unpacker.h',
+ 'common/extensions/update_manifest.cc',
+ 'common/extensions/update_manifest.h',
+ 'common/extensions/url_pattern.cc',
+ 'common/extensions/url_pattern.h',
+ 'common/extensions/user_script.cc',
+ 'common/extensions/user_script.h',
+ 'common/gfx/utils.h',
+ 'common/net/dns.h',
+ 'common/net/net_resource_provider.cc',
+ 'common/net/net_resource_provider.h',
+ 'common/net/socket_stream.h',
+ 'common/net/url_request_intercept_job.cc',
+ 'common/net/url_request_intercept_job.h',
+ 'common/web_resource/web_resource_unpacker.cc',
+ 'common/web_resource/web_resource_unpacker.h',
+ 'common/appcache/appcache_backend_proxy.cc',
+ 'common/appcache/appcache_backend_proxy.h',
+ 'common/appcache/appcache_dispatcher.cc',
+ 'common/appcache/appcache_dispatcher.h',
+ 'common/appcache/appcache_dispatcher_host.cc',
+ 'common/appcache/appcache_dispatcher_host.h',
+ 'common/appcache/appcache_frontend_proxy.cc',
+ 'common/appcache/appcache_frontend_proxy.h',
+ 'common/appcache/chrome_appcache_service.cc',
+ 'common/appcache/chrome_appcache_service.h',
+ 'common/automation_constants.cc',
+ 'common/automation_constants.h',
+ 'common/bindings_policy.h',
+ 'common/child_process.cc',
+ 'common/child_process.h',
+ 'common/child_process_host.cc',
+ 'common/child_process_host.h',
+ 'common/child_process_info.cc',
+ 'common/child_process_info.h',
+ 'common/child_process_logging.h',
+ 'common/child_process_logging_linux.cc',
+ 'common/child_process_logging_mac.mm',
+ 'common/child_process_logging_win.cc',
+ 'common/child_thread.cc',
+ 'common/child_thread.h',
+ 'common/chrome_counters.cc',
+ 'common/chrome_counters.h',
+ 'common/chrome_descriptors.h',
+ 'common/chrome_plugin_api.h',
+ 'common/chrome_plugin_lib.cc',
+ 'common/chrome_plugin_lib.h',
+ 'common/chrome_plugin_util.cc',
+ 'common/chrome_plugin_util.h',
+ 'common/command_buffer_messages.h',
+ 'common/command_buffer_messages_internal.h',
+ 'common/common_glue.cc',
+ 'common/common_param_traits.cc',
+ 'common/common_param_traits.h',
+ 'common/css_colors.h',
+ 'common/db_message_filter.cc',
+ 'common/db_message_filter.h',
+ 'common/debug_flags.cc',
+ 'common/debug_flags.h',
+ 'common/devtools_messages.h',
+ 'common/devtools_messages_internal.h',
+ 'common/dom_storage_type.h',
+ 'common/filter_policy.h',
+ 'common/gears_api.h',
+ 'common/gtk_tree.cc',
+ 'common/gtk_tree.h',
+ 'common/gtk_util.cc',
+ 'common/gtk_util.h',
+ 'common/histogram_synchronizer.cc',
+ 'common/histogram_synchronizer.h',
+ 'common/important_file_writer.cc',
+ 'common/important_file_writer.h',
+ 'common/jstemplate_builder.cc',
+ 'common/jstemplate_builder.h',
+ 'common/libxml_utils.cc',
+ 'common/libxml_utils.h',
+ 'common/logging_chrome.cc',
+ 'common/logging_chrome.h',
+ 'common/main_function_params.h',
+ 'common/message_router.cc',
+ 'common/message_router.h',
+ 'common/mru_cache.h',
+ 'common/nacl_messages.h',
+ 'common/nacl_messages_internal.h',
+ 'common/navigation_gesture.h',
+ 'common/navigation_types.h',
+ 'common/native_web_keyboard_event.h',
+ 'common/native_web_keyboard_event_linux.cc',
+ 'common/native_web_keyboard_event_mac.mm',
+ 'common/native_web_keyboard_event_win.cc',
+ 'common/native_window_notification_source.h',
+ 'common/notification_details.h',
+ 'common/notification_observer.h',
+ 'common/notification_registrar.cc',
+ 'common/notification_registrar.h',
+ 'common/notification_service.cc',
+ 'common/notification_service.h',
+ 'common/notification_source.h',
+ 'common/notification_type.h',
+ 'common/owned_widget_gtk.cc',
+ 'common/owned_widget_gtk.h',
+ 'common/page_transition_types.h',
+ 'common/page_zoom.h',
+ 'common/platform_util.h',
+ 'common/platform_util_linux.cc',
+ 'common/platform_util_mac.mm',
+ 'common/platform_util_win.cc',
+ 'common/plugin_carbon_interpose_constants_mac.h',
+ 'common/plugin_carbon_interpose_constants_mac.cc',
+ 'common/plugin_messages.h',
+ 'common/plugin_messages_internal.h',
+ 'common/pref_member.cc',
+ 'common/pref_member.h',
+ 'common/pref_service.cc',
+ 'common/pref_service.h',
+ 'common/process_watcher_mac.cc',
+ 'common/process_watcher_posix.cc',
+ 'common/process_watcher_win.cc',
+ 'common/process_watcher.h',
+ 'common/property_bag.cc',
+ 'common/property_bag.h',
+ 'common/ref_counted_util.h',
+ 'common/render_messages.h',
+ 'common/render_messages_internal.h',
+ 'common/renderer_preferences.h',
+ 'common/resource_dispatcher.cc',
+ 'common/resource_dispatcher.h',
+ 'common/result_codes.h',
+ 'common/sandbox_init_wrapper.h',
+ 'common/sandbox_init_wrapper_linux.cc',
+ 'common/sandbox_init_wrapper_mac.cc',
+ 'common/sandbox_init_wrapper_win.cc',
+ 'common/sandbox_mac.h',
+ 'common/sandbox_mac.mm',
+ 'common/spellcheck_common.cc',
+ 'common/spellcheck_common.h',
+ 'common/security_filter_peer.cc',
+ 'common/security_filter_peer.h',
+ 'common/socket_stream_dispatcher.cc',
+ 'common/socket_stream_dispatcher.h',
+ 'common/sqlite_compiled_statement.cc',
+ 'common/sqlite_compiled_statement.h',
+ 'common/sqlite_utils.cc',
+ 'common/sqlite_utils.h',
+ 'common/task_queue.cc',
+ 'common/task_queue.h',
+ 'common/temp_scaffolding_stubs.cc',
+ 'common/temp_scaffolding_stubs.h',
+ 'common/thumbnail_score.cc',
+ 'common/thumbnail_score.h',
+ 'common/time_format.cc',
+ 'common/time_format.h',
+ 'common/transport_dib.h',
+ 'common/transport_dib_linux.cc',
+ 'common/transport_dib_mac.cc',
+ 'common/transport_dib_win.cc',
+ 'common/url_constants.cc',
+ 'common/url_constants.h',
+ 'common/utility_messages.h',
+ 'common/utility_messages_internal.h',
+ 'common/view_types.cc',
+ 'common/view_types.h',
+ 'common/visitedlink_common.cc',
+ 'common/visitedlink_common.h',
+ 'common/webkit_param_traits.h',
+ 'common/webmessageportchannel_impl.cc',
+ 'common/webmessageportchannel_impl.h',
+ 'common/win_safe_util.cc',
+ 'common/win_safe_util.h',
+ 'common/worker_messages.h',
+ 'common/worker_messages_internal.h',
+ 'common/worker_thread_ticker.cc',
+ 'common/worker_thread_ticker.h',
+ 'common/x11_util.cc',
+ 'common/x11_util.h',
+ 'common/x11_util_internal.h',
+ 'common/zip.cc', # Requires zlib directly.
+ 'common/zip.h',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '..',
+ ],
+ },
+ 'export_dependent_settings': [
+ '../app/app.gyp:app_base',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ ],
+ 'export_dependent_settings': [
+ '../third_party/sqlite/sqlite.gyp:sqlite',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lX11',
+ '-lXrender',
+ '-lXext',
+ ],
+ },
+ },],
+ ['OS=="linux" and selinux==1', {
+ 'dependencies': [
+ '../build/linux/system.gyp:selinux',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'sources!': [
+ 'common/process_watcher_posix.cc',
+ ],
+ }],
+ ['OS=="win"', {
+ 'include_dirs': [
+ 'third_party/wtl/include',
+ ],
+ }, { # else: OS != "win"
+ 'sources!': [
+ 'common/hi_res_timer_manager.cc',
+ 'common/hi_res_timer_manager.h',
+ 'common/temp_scaffolding_stubs.h',
+ ],
+ }],
+ ['OS=="win" or OS=="linux"', {
+ 'sources!': [
+ 'common/temp_scaffolding_stubs.cc',
+ ],
+ }],
+ ],
+ },
{
'target_name': 'debugger',
'type': '<(library)',
@@ -468,6 +790,51 @@
],
},
{
+ 'target_name': 'nacl',
+ 'type': '<(library)',
+ 'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C',
+ 'dependencies': [
+ 'common',
+ 'chrome_resources',
+ 'chrome_strings',
+ '../third_party/npapi/npapi.gyp:npapi',
+ '../webkit/webkit.gyp:glue',
+ '../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome',
+ '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
+ '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate',
+ '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib',
+ ],
+ 'include_dirs': [
+ '<(INTERMEDIATE_DIR)',
+ ],
+ 'defines': [
+ 'NACL_BLOCK_SHIFT=5',
+ 'NACL_BLOCK_SIZE=32',
+ '<@(nacl_defines)',
+ ],
+ 'sources': [
+ # All .cc, .h, .m, and .mm files under nacl except for tests and
+ # mocks.
+ 'nacl/sel_main.cc',
+ 'nacl/nacl_main.cc',
+ 'nacl/nacl_thread.cc',
+ 'nacl/nacl_thread.h',
+ ],
+ # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ '__STD_C',
+ '_CRT_SECURE_NO_DEPRECATE',
+ '_SCL_SECURE_NO_DEPRECATE',
+ ],
+ 'include_dirs': [
+ 'third_party/wtl/include',
+ ],
+ },],
+ ],
+ },
+ {
'target_name': 'utility',
'type': '<(library)',
'msvs_guid': '4D2B38E6-65FF-4F97-B88A-E441DF54EBF7',
@@ -535,6 +902,462 @@
],
},
{
+ 'target_name': 'chrome',
+ 'type': 'executable',
+ 'mac_bundle': 1,
+ 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC',
+ 'sources': [
+ # All .cc, .h, .m, and .mm files under app except for tests.
+ 'app/breakpad_win.cc',
+ 'app/breakpad_win.h',
+ 'app/chrome_exe_main.cc',
+ 'app/chrome_exe_main.mm',
+ 'app/chrome_exe_main_gtk.cc',
+ 'app/chrome_exe_resource.h',
+ 'app/client_util.cc',
+ 'app/client_util.h',
+ 'app/hard_error_handler_win.cc',
+ 'app/hard_error_handler_win.h',
+ 'app/scoped_ole_initializer.h',
+ ],
+ 'mac_bundle_resources': [
+ 'app/app-Info.plist',
+ ],
+ # TODO(mark): Come up with a fancier way to do this. It should only
+ # be necessary to list app-Info.plist once, not the three times it is
+ # listed here.
+ 'mac_bundle_resources!': [
+ 'app/app-Info.plist',
+ ],
+ 'xcode_settings': {
+ 'INFOPLIST_FILE': 'app/app-Info.plist',
+ },
+ 'conditions': [
+ ['chrome_frame_define==1 and OS=="win"', {
+ 'dependencies': [
+ '../chrome_frame/chrome_frame.gyp:npchrome_tab',
+ ],
+ }],
+ ['OS=="linux" or OS=="freebsd"', {
+ 'actions': [
+ {
+ 'action_name': 'manpage',
+ 'conditions': [
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'name': 'Google Chrome',
+ 'filename': 'google-chrome',
+ 'confdir': 'google-chrome',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'name': 'Chromium',
+ 'filename': 'chromium-browser',
+ 'confdir': 'chromium',
+ },
+ }],
+ ],
+ 'inputs': [
+ 'tools/build/linux/sed.sh',
+ 'app/resources/manpage.1.in',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/chrome.1',
+ ],
+ 'action': [
+ 'tools/build/linux/sed.sh',
+ 'app/resources/manpage.1.in',
+ '<@(_outputs)',
+ '-e', 's/@@NAME@@/<(name)/',
+ '-e', 's/@@FILENAME@@/<(filename)/',
+ '-e', 's/@@CONFDIR@@/<(confdir)/',
+ ],
+ 'message': 'Generating manpage'
+ },
+ ],
+ 'conditions': [
+ [ 'linux_use_tcmalloc==1', {
+ 'dependencies': [
+ '<(allocator_target)',
+ ],
+ },
+ ],
+ ],
+ 'dependencies': [
+ # On Linux, link the dependencies (libraries) that make up actual
+ # Chromium functionality directly into the executable.
+ '<@(chromium_dependencies)',
+ # Needed for chrome_dll_main.cc #include of gtk/gtk.h
+ '../build/linux/system.gyp:gtk',
+ 'packed_resources',
+ ],
+ 'sources': [
+ 'app/chrome_dll_main.cc',
+ 'app/chrome_dll_resource.h',
+ ],
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': ['tools/build/linux/chrome-wrapper',
+ '../third_party/xdg-utils/scripts/xdg-settings',
+ ],
+ # The wrapper script above may need to generate a .desktop file,
+ # which requires an icon. So, copy one next to the script.
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'files': ['app/theme/google_chrome/product_logo_48.png']
+ }, { # else: 'branding!="Chrome"
+ 'files': ['app/theme/chromium/product_logo_48.png']
+ }],
+ ],
+ },
+ ],
+ }],
+ ['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
+ 'dependencies': [
+ '../views/views.gyp:views',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'variables': {
+ 'mac_packaging_dir':
+ '<(PRODUCT_DIR)/<(mac_product_name) Packaging',
+ # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't
+ # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is
+ # needed.
+ 'mac_packaging_sh_dir':
+ '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging',
+ },
+ # 'branding' is a variable defined in common.gypi
+ # (e.g. "Chromium", "Chrome")
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'mac_bundle_resources': [
+ 'app/theme/google_chrome/app.icns',
+ 'app/theme/google_chrome/document.icns',
+ ],
+ }, { # else: 'branding!="Chrome"
+ 'mac_bundle_resources': [
+ 'app/theme/chromium/app.icns',
+ 'app/theme/chromium/document.icns',
+ ],
+ }],
+ ['mac_breakpad==1', {
+ 'variables': {
+ # A real .dSYM is needed for dump_syms to operate on.
+ 'mac_real_dsym': 1,
+ },
+ 'dependencies': [
+ '../breakpad/breakpad.gyp:dump_syms',
+ '../breakpad/breakpad.gyp:symupload',
+ ],
+ # The "Dump Symbols" post-build step is in a target_conditions
+ # block so that it will follow the "Strip If Needed" step if that
+ # is also being used. There is no standard configuration where
+ # both of these steps occur together, but Mark likes to use this
+ # configuraiton sometimes when testing Breakpad-enabled builds
+ # without the time overhead of creating real .dSYM files. When
+ # both "Dump Symbols" and "Strip If Needed" are present, "Dump
+ # Symbols" must come second because "Strip If Needed" creates
+ # a fake .dSYM that dump_syms needs to fake dump. Since
+ # "Strip If Needed" is added in a target_conditions block in
+ # common.gypi, "Dump Symbols" needs to be in an (always true)
+ # target_conditions block.
+ 'target_conditions': [
+ ['1 == 1', {
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Dump Symbols',
+ 'variables': {
+ 'dump_product_syms_path':
+ 'tools/build/mac/dump_product_syms',
+ },
+ 'action': ['<(dump_product_syms_path)',
+ '<(branding)'],
+ },
+ ],
+ }],
+ ],
+ }], # mac_breakpad
+ ['mac_keystone==1', {
+ 'copies': [
+ {
+ # Put keystone_install.sh where the packaging system will
+ # find it. The packager will copy this script to the
+ # correct location on the disk image.
+ 'destination': '<(mac_packaging_dir)',
+ 'files': [
+ 'tools/build/mac/keystone_install.sh',
+ ],
+ },
+ ],
+ }], # mac_keystone
+ ['buildtype=="Official"', {
+ 'actions': [
+ {
+ # Create sign.sh, the script that the packaging system will
+ # use to sign the .app bundle.
+ 'action_name': 'Make sign.sh',
+ 'variables': {
+ 'make_sign_sh_path': 'tools/build/mac/make_sign_sh',
+ 'sign_sh_in_path': 'tools/build/mac/sign.sh.in',
+ 'app_resource_rules_in_path':
+ 'tools/build/mac/app_resource_rules.plist.in',
+ },
+ 'inputs': [
+ '<(make_sign_sh_path)',
+ '<(sign_sh_in_path)',
+ '<(app_resource_rules_in_path)',
+ '<(version_path)',
+ ],
+ 'outputs': [
+ '<(mac_packaging_dir)/sign.sh',
+ '<(mac_packaging_dir)/app_resource_rules.plist',
+ ],
+ 'action': [
+ '<(make_sign_sh_path)',
+ '<(mac_packaging_sh_dir)',
+ '<(mac_product_name)',
+ '<(version_full)',
+ ],
+ },
+ ],
+ }], # buildtype=="Official"
+ ],
+ 'product_name': '<(mac_product_name)',
+ 'xcode_settings': {
+ # chrome/app/app-Info.plist has:
+ # CFBundleIdentifier of CHROMIUM_BUNDLE_ID
+ # CFBundleName of CHROMIUM_SHORT_NAME
+ # CFBundleSignature of CHROMIUM_CREATOR
+ # Xcode then replaces these values with the branded values we set
+ # as settings on the target.
+ 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
+ 'CHROMIUM_CREATOR': '<(mac_creator)',
+ 'CHROMIUM_SHORT_NAME': '<(branding)',
+ },
+ 'dependencies': [
+ 'helper_app',
+ 'infoplist_strings_tool',
+ # This library provides the real implementation for NaClSyscallSeg
+ '../native_client/src/trusted/service_runtime/arch/x86_32/service_runtime_x86_32.gyp:service_runtime_x86_32_chrome'
+ ],
+ 'actions': [
+ {
+ # Generate the InfoPlist.strings file
+ 'action_name': 'Generating InfoPlist.strings files',
+ 'variables': {
+ 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
+ # Unique dir to write to so the [lang].lproj/InfoPlist.strings
+ # for the main app and the helper app don't name collide.
+ 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings',
+ },
+ 'conditions': [
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_name': 'google_chrome_strings',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_name': 'chromium_strings',
+ },
+ }],
+ ],
+ 'inputs': [
+ '<(tool_path)',
+ '<(version_path)',
+ # TODO: remove this helper when we have loops in GYP
+ '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(branding_name)_ZZLOCALE.pak\' <(locales))',
+ ],
+ 'outputs': [
+ # TODO: remove this helper when we have loops in GYP
+ '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/InfoPlist.strings\' <(locales))',
+ ],
+ 'action': [
+ '<(tool_path)',
+ '-b', '<(branding_name)',
+ '-v', '<(version_path)',
+ '-g', '<(grit_out_dir)',
+ '-o', '<(output_path)',
+ '-t', 'main',
+ '<@(locales)',
+ ],
+ 'message': 'Generating the language InfoPlist.strings files',
+ 'process_outputs_as_mac_bundle_resources': 1,
+ },
+ ],
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Versions/<(version_full)',
+ 'files': [
+ '<(PRODUCT_DIR)/<(mac_product_name) Helper.app',
+ ],
+ },
+ ],
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Copy <(mac_product_name) Framework.framework',
+ 'action': [
+ 'tools/build/mac/copy_framework_unversioned',
+ '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework',
+ '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(version_full)',
+ ],
+ },
+ {
+ # Modify the Info.plist as needed. The script explains why this
+ # is needed. This is also done in the helper_app and chrome_dll
+ # targets. Use -b0 and -k0 to not include any Breakpad or
+ # Keystone information; that all goes into the framework's
+ # Info.plist. Use -s1 to include Subversion information.
+ 'postbuild_name': 'Tweak Info.plist',
+ 'action': ['<(tweak_info_plist_path)',
+ '-b0',
+ '-k0',
+ '-s1',
+ '<(branding)',
+ '<(mac_bundle_id)'],
+ },
+ {
+ 'postbuild_name': 'Clean up old versions',
+ 'action': [
+ 'tools/build/mac/clean_up_old_versions',
+ '<(version_full)'
+ ],
+ },
+ ], # postbuilds
+ }, { # else: OS != "mac"
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'product_name': 'chrome'
+ }, { # else: Branding!="Chrome"
+ # TODO: change to:
+ # 'product_name': 'chromium'
+ # whenever we convert the rest of the infrastructure
+ # (buildbots etc.) to use "gyp -Dbranding=Chrome".
+ # NOTE: chrome/app/theme/chromium/BRANDING and
+ # chrome/app/theme/google_chrome/BRANDING have the short names,
+ # etc.; should we try to extract from there instead?
+ 'product_name': 'chrome'
+ }],
+ ],
+ }],
+ ['OS=="linux"', {
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'dependencies': [
+ 'installer/installer.gyp:linux_installer_configs',
+ ],
+ }],
+ ['selinux==0', {
+ 'dependencies': [
+ '../sandbox/sandbox.gyp:sandbox',
+ ],
+ }],
+ ['linux_sandbox_path != ""', {
+ 'defines': [
+ 'LINUX_SANDBOX_PATH="<(linux_sandbox_path)"',
+ ],
+ }],
+ ],
+ }],
+ ['OS=="mac" or OS=="win"', {
+ 'dependencies': [
+ # On Windows and Mac, make sure we've built chrome_dll, which
+ # contains all of the library code with Chromium functionality.
+ 'chrome_dll',
+ ],
+ }],
+ ['OS=="win"', {
+ 'dependencies': [
+ 'installer/installer.gyp:installer_util',
+ 'installer/installer.gyp:installer_util_strings',
+ '../breakpad/breakpad.gyp:breakpad_handler',
+ '../breakpad/breakpad.gyp:breakpad_sender',
+ '../sandbox/sandbox.gyp:sandbox',
+ 'app/locales/locales.gyp:*',
+ ],
+ 'sources': [
+ 'app/chrome_exe.rc',
+ 'app/chrome_exe_version.rc.version',
+ ],
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/chrome',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'DelayLoadDLLs': [
+ 'dbghelp.dll',
+ 'dwmapi.dll',
+ 'uxtheme.dll',
+ 'ole32.dll',
+ 'oleaut32.dll',
+ ],
+ 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib',
+ 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb',
+ # Set /SUBSYSTEM:WINDOWS for chrome.exe itself.
+ 'SubSystem': '2',
+ },
+ 'VCManifestTool': {
+ 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.exe.manifest',
+ },
+ },
+ 'actions': [
+ {
+ 'action_name': 'version',
+ 'variables': {
+ 'template_input_path': 'app/chrome_exe_version.rc.version',
+ },
+ 'conditions': [
+ [ 'branding == "Chrome"', {
+ 'variables': {
+ 'branding_path': 'app/theme/google_chrome/BRANDING',
+ },
+ }, { # else branding!="Chrome"
+ 'variables': {
+ 'branding_path': 'app/theme/chromium/BRANDING',
+ },
+ }],
+ ],
+ 'inputs': [
+ '<(template_input_path)',
+ '<(version_path)',
+ '<(branding_path)',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_exe_version.rc',
+ ],
+ 'action': [
+ 'python',
+ '<(version_py_path)',
+ '-f', '<(version_path)',
+ '-f', '<(branding_path)',
+ '<(template_input_path)',
+ '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'message': 'Generating version information in <(_outputs)'
+ },
+ {
+ 'action_name': 'first_run',
+ 'inputs': [
+ 'app/FirstRun',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/First Run',
+ ],
+ 'action': ['cp', '-f', '<@(_inputs)', '<@(_outputs)'],
+ 'message': 'Copy first run complete sentinel file',
+ },
+ ],
+ }, { # 'OS!="win"
+ 'sources!': [
+ 'app/chrome_exe_main.cc',
+ 'app/client_util.cc',
+ ]
+ }],
+ ],
+ },
+ {
# Provides a syncapi dynamic library target from checked-in binaries,
# or from compiling a stub implementation.
'target_name': 'syncapi',
@@ -553,6 +1376,7 @@
'dependencies': [
'../base/base.gyp:base',
'../build/temp_gyp/googleurl.gyp:googleurl',
+ '../net/net.gyp:net_base',
'../third_party/icu/icu.gyp:icuuc',
'../third_party/libjingle/libjingle.gyp:libjingle',
'../third_party/sqlite/sqlite.gyp:sqlite',
@@ -844,6 +1668,437 @@
},
],
'conditions': [
+ ['OS=="mac" or OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'chrome_dll',
+ 'type': 'shared_library',
+ 'dependencies': [
+ '<@(chromium_dependencies)',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'product_name': 'chrome',
+ 'msvs_guid': 'C0A7EE2C-2A6D-45BE-BA78-6D006FDF52D9',
+ 'include_dirs': [
+ 'third_party/wtl/include',
+ ],
+ 'dependencies': [
+ # On Windows, link the dependencies (libraries) that make
+ # up actual Chromium functionality into this .dll.
+ 'chrome_dll_version',
+ 'chrome_resources',
+ 'installer/installer.gyp:installer_util_strings',
+ 'worker',
+ '../printing/printing.gyp:printing',
+ '../net/net.gyp:net_resources',
+ '../build/util/support/support.gyp:*',
+ '../third_party/cld/cld.gyp:cld',
+ '../views/views.gyp:views',
+ '../webkit/webkit.gyp:webkit_resources',
+ '../gears/gears.gyp:gears',
+ ],
+ 'defines': [
+ 'CHROME_DLL',
+ 'BROWSER_DLL',
+ 'RENDERER_DLL',
+ 'PLUGIN_DLL',
+ ],
+ 'sources': [
+ 'app/chrome_dll.rc',
+ 'app/chrome_dll_main.cc',
+ 'app/chrome_dll_resource.h',
+ '<(SHARED_INTERMEDIATE_DIR)/chrome_dll_version/chrome_dll_version.rc',
+
+ '../webkit/glue/resources/aliasb.cur',
+ '../webkit/glue/resources/cell.cur',
+ '../webkit/glue/resources/col_resize.cur',
+ '../webkit/glue/resources/copy.cur',
+ '../webkit/glue/resources/row_resize.cur',
+ '../webkit/glue/resources/vertical_text.cur',
+ '../webkit/glue/resources/zoom_in.cur',
+ '../webkit/glue/resources/zoom_out.cur',
+
+ # TODO: It would be nice to have these pulled in
+ # automatically from direct_dependent_settings in
+ # their various targets (net.gyp:net_resources, etc.),
+ # but that causes errors in other targets when
+ # resulting .res files get referenced multiple times.
+ '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
+
+ # TODO(sgk): left-over from pre-gyp build, figure out
+ # if we still need them and/or how to update to gyp.
+ #'app/check_dependents.bat',
+ #'app/chrome.dll.deps',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'BaseAddress': '0x01c30000',
+ 'DelayLoadDLLs': [
+ 'crypt32.dll',
+ 'cryptui.dll',
+ 'winhttp.dll',
+ 'wininet.dll',
+ 'wsock32.dll',
+ 'ws2_32.dll',
+ 'winspool.drv',
+ 'comdlg32.dll',
+ 'imagehlp.dll',
+ 'urlmon.dll',
+ 'imm32.dll',
+ 'iphlpapi.dll',
+ ],
+ 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
+ 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb',
+ # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency).
+ 'SubSystem': '2',
+ },
+ 'VCManifestTool': {
+ 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.manifest',
+ },
+ },
+ 'configurations': {
+ 'Debug': {
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
+ },
+ },
+ },
+ },
+ }], # OS=="win"
+ ['OS=="mac"', {
+ # 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 the build and patch numbers. There is no
+ # ambiguity in this scheme because the build number is
+ # guaranteed unique even across distinct major and minor
+ # version numbers. These settings correspond to
+ # -compatibility_version and -current_version.
+ 'DYLIB_COMPATIBILITY_VERSION': '<(version_build_patch)',
+ 'DYLIB_CURRENT_VERSION': '<(version_build_patch)',
+
+ # 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 tools/build/mac/copy_framework_unversioned 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',
+
+ # Define the order of symbols within the framework. This
+ # sets -order_file.
+ 'ORDER_FILE': 'app/framework.order',
+ },
+ 'sources': [
+ 'app/chrome_dll_main.cc',
+ 'app/chrome_dll_resource.h',
+ 'app/chrome_exe_main.mm',
+ ],
+ # 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': [
+ 'app/framework-Info.plist',
+ 'app/nibs/About.xib',
+ 'app/nibs/AboutIPC.xib',
+ 'app/nibs/BookmarkAllTabs.xib',
+ 'app/nibs/BookmarkBar.xib',
+ 'app/nibs/BookmarkBubble.xib',
+ 'app/nibs/BookmarkEditor.xib',
+ 'app/nibs/BookmarkNameFolder.xib',
+ 'app/nibs/BrowserWindow.xib',
+ 'app/nibs/ClearBrowsingData.xib',
+ 'app/nibs/DownloadItem.xib',
+ 'app/nibs/DownloadShelf.xib',
+ 'app/nibs/EditSearchEngine.xib',
+ 'app/nibs/ExtensionShelf.xib',
+ 'app/nibs/FindBar.xib',
+ 'app/nibs/FirstRunDialog.xib',
+ 'app/nibs/FontLanguageSettings.xib',
+ 'app/nibs/HungRendererDialog.xib',
+ 'app/nibs/HttpAuthLoginSheet.xib',
+ 'app/nibs/ImportSettingsDialog.xib',
+ 'app/nibs/InfoBar.xib',
+ 'app/nibs/InfoBarContainer.xib',
+ 'app/nibs/ImportProgressDialog.xib',
+ 'app/nibs/KeywordEditor.xib',
+ 'app/nibs/MainMenu.xib',
+ 'app/nibs/PageInfo.xib',
+ 'app/nibs/Preferences.xib',
+ 'app/nibs/ReportBug.xib',
+ 'app/nibs/SaveAccessoryView.xib',
+ 'app/nibs/SadTab.xib',
+ 'app/nibs/TabContents.xib',
+ 'app/nibs/TabView.xib',
+ 'app/nibs/TaskManager.xib',
+ 'app/nibs/Toolbar.xib',
+ 'app/theme/back_Template.pdf',
+ 'app/theme/chevron.png', # TODO(jrg): get and use a pdf version
+ 'app/theme/close_bar.pdf',
+ 'app/theme/close_bar_h.pdf',
+ 'app/theme/close_bar_p.pdf',
+ 'app/theme/find_next_Template.pdf',
+ 'app/theme/find_prev_Template.pdf',
+ 'app/theme/forward_Template.pdf',
+ 'app/theme/go_Template.pdf',
+ 'app/theme/home_Template.pdf',
+ 'app/theme/menu_chrome_rtl_Template.pdf',
+ 'app/theme/menu_chrome_Template.pdf',
+ 'app/theme/menu_page_rtl_Template.pdf',
+ 'app/theme/menu_page_Template.pdf',
+ 'app/theme/nav.pdf',
+ 'app/theme/newtab.pdf',
+ 'app/theme/newtab_h.pdf',
+ 'app/theme/newtab_p.pdf',
+ 'app/theme/otr_icon.pdf',
+ 'app/theme/reload_Template.pdf',
+ 'app/theme/star_Template.pdf',
+ 'app/theme/starred.pdf',
+ 'app/theme/stop_Template.pdf',
+ ],
+ 'mac_bundle_resources!': [
+ 'app/framework-Info.plist',
+ ],
+ 'dependencies': [
+ # Bring in pdfsqueeze and run it on all pdfs
+ '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
+ '../build/util/support/support.gyp:*',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'pdfsqueeze',
+ 'extension': 'pdf',
+ 'inputs': [
+ '<(PRODUCT_DIR)/pdfsqueeze',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
+ ],
+ 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
+ '<(RULE_INPUT_PATH)', '<@(_outputs)'],
+ 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
+ },
+ ],
+ 'variables': {
+ 'repack_path': '../tools/data_pack/repack.py',
+ },
+ 'actions': [
+ # TODO(mark): These actions are duplicated for Linux and
+ # FreeBSD in the chrome target. Can they be unified?
+ {
+ 'action_name': 'repack_chrome',
+ 'variables': {
+ 'pak_inputs': [
+ '<(grit_out_dir)/browser_resources.pak',
+ '<(grit_out_dir)/common_resources.pak',
+ '<(grit_out_dir)/renderer_resources.pak',
+ '<(grit_out_dir)/theme_resources.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
+ ],
+ },
+ 'inputs': [
+ '<(repack_path)',
+ '<@(pak_inputs)',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/repack/chrome.pak',
+ ],
+ 'action': ['python', '<(repack_path)', '<@(_outputs)',
+ '<@(pak_inputs)'],
+ 'process_outputs_as_mac_bundle_resources': 1,
+ },
+ {
+ 'action_name': 'repack_locales',
+ 'process_outputs_as_mac_bundle_resources': 1,
+ 'variables': {
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'branding_flag': ['-b', 'google_chrome',],
+ }, { # else: branding!="Chrome"
+ 'branding_flag': ['-b', 'chromium',],
+ }],
+ ],
+ },
+ 'inputs': [
+ 'tools/build/repack_locales.py',
+ # NOTE: Ideally the common command args would be shared
+ # amongst inputs/outputs/action, but the args include shell
+ # variables which need to be passed intact, and command
+ # expansion wants to expand the shell variables. Adding the
+ # explicit quoting here was the only way it seemed to work.
+ '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_out_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
+ ],
+ 'outputs': [
+ '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
+ ],
+ 'action': [
+ '<@(repack_locales_cmd)',
+ '<@(branding_flag)',
+ '-g', '<(grit_out_dir)',
+ '-s', '<(SHARED_INTERMEDIATE_DIR)',
+ '-x', '<(INTERMEDIATE_DIR)',
+ '<@(locales)',
+ ],
+ },
+ ],
+ 'postbuilds': [
+ {
+ # This step causes an error to be raised if the .order file
+ # does not account for all global text symbols. It
+ # validates the completeness of the .order file.
+ 'postbuild_name': 'Verify global text symbol order',
+ 'variables': {
+ 'verify_order_path': 'tools/build/mac/verify_order',
+ },
+ 'action': [
+ '<(verify_order_path)',
+ '_ChromeMain',
+ '${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 target.
+ # The framework needs the Breakpad and Keystone keys if
+ # those features are enabled. It doesn't currently use the
+ # Subversion keys for anything, but this seems like a really
+ # good place to store them.
+ 'postbuild_name': 'Tweak Info.plist',
+ 'action': ['<(tweak_info_plist_path)',
+ '-b<(mac_breakpad)',
+ '-k<(mac_keystone)',
+ '-s1',
+ '<(branding)',
+ '<(mac_bundle_id)'],
+ },
+ {
+ 'postbuild_name': 'Symlink Libraries',
+ 'action': [
+ 'ln',
+ '-fhs',
+ 'Versions/Current/Libraries',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries'
+ ],
+ },
+ ],
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
+ 'files': [
+ '<(PRODUCT_DIR)/resources/inspector/'
+ ],
+ 'conditions': [
+ ['mac_breakpad==1', {
+ 'files': [
+ '<(PRODUCT_DIR)/crash_inspector',
+ '<(PRODUCT_DIR)/crash_report_sender.app'
+ ],
+ }],
+ ],
+ },
+ {
+ 'destination':
+ '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
+ 'files': [
+ # TODO(ajwong): Find a way to share this path with
+ # ffmpeg.gyp so they don't diverge. (BUG=23602)
+ '<(PRODUCT_DIR)/libffmpegsumo.dylib',
+ ],
+ },
+ ],
+ 'conditions': [
+ ['mac_breakpad==1', {
+ 'variables': {
+ # A real .dSYM is needed for dump_syms to operate on.
+ 'mac_real_dsym': 1,
+ },
+ 'sources': [
+ 'app/breakpad_mac.mm',
+ 'app/breakpad_mac.h',
+ ],
+ 'dependencies': [
+ '../breakpad/breakpad.gyp:breakpad',
+ ],
+ }, { # else: mac_breakpad!=1
+ # No Breakpad, put in the stubs.
+ 'sources': [
+ 'app/breakpad_mac_stubs.mm',
+ 'app/breakpad_mac.h',
+ ],
+ }], # mac_breakpad
+ ['mac_keystone==1', {
+ 'variables': {
+ 'conditions': [
+ ['branding=="Chrome"', {
+ 'theme_dir_name': 'google_chrome',
+ }, { # else: 'branding!="Chrome"
+ 'theme_dir_name': 'chromium',
+ }],
+ ],
+ },
+ 'mac_bundle_resources': [
+ # This image is used to badge the lock icon in the
+ # promotion authentication dialog. 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/<(theme_dir_name)/product_logo_32.png',
+
+ 'browser/cocoa/keystone_promote_preflight.sh',
+ 'browser/cocoa/keystone_promote_postflight.sh',
+ ],
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Copy KeystoneRegistration.framework',
+ 'action': [
+ 'tools/build/mac/copy_framework_unversioned',
+ '../third_party/googlemac/Releases/Keystone/KeystoneRegistration.framework',
+ '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
+ ],
+ },
+ {
+ 'postbuild_name': 'Symlink Frameworks',
+ 'action': [
+ 'ln',
+ '-fhs',
+ 'Versions/Current/Frameworks',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Frameworks'
+ ],
+ },
+ ],
+ }], # mac_keystone
+ ], # conditions
+ }], # OS=="mac"
+ ], # conditions
+ }, # target chrome_dll
+ ], # targets
+ }], # OS=="mac" or OS=="win"
['OS=="mac"',
{ 'targets': [
{
@@ -1166,6 +2421,10 @@
}
],
},], # OS=="linux"
+ ['OS!="win"',
+ { 'targets': [
+ ], # targets
+ }], # OS!="win"
['OS=="win"',
{ 'targets': [
{
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi
deleted file mode 100644
index 0fa1fcc..0000000
--- a/chrome/chrome_common.gypi
+++ /dev/null
@@ -1,375 +0,0 @@
-# Copyright (c) 2009 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.
-
-{
- 'target_defaults': {
- 'variables': {
- 'chrome_common_target': 0,
- },
- 'target_conditions': [
- ['chrome_common_target==1', {
- 'include_dirs': [
- '..',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'include_dirs': [
- 'third_party/wtl/include',
- ],
- }, { # else: OS != "win"
- 'sources!': [
- 'common/temp_scaffolding_stubs.h',
- ],
- }],
- ['OS=="win" or OS=="linux"', {
- 'sources!': [
- 'common/hi_res_timer_manager.cc',
- 'common/hi_res_timer_manager.h',
- 'common/temp_scaffolding_stubs.cc',
- ],
- }],
- ],
- 'sources': [
- # .cc, .h, and .mm files under chrome/common that are used on all
- # platforms, including both 32-bit and 64-bit Windows.
- # Test files are not included.
- 'common/bindings_policy.h',
- 'common/child_process.cc',
- 'common/child_process.h',
- 'common/child_process_info.cc',
- 'common/child_process_info.h',
- 'common/child_process_logging.h',
- 'common/child_process_logging_linux.cc',
- 'common/child_process_logging_mac.mm',
- 'common/child_process_logging_win.cc',
- 'common/child_thread.cc',
- 'common/child_thread.h',
- 'common/chrome_counters.cc',
- 'common/chrome_counters.h',
- 'common/common_param_traits.cc',
- 'common/common_param_traits.h',
- 'common/debug_flags.cc',
- 'common/debug_flags.h',
- 'common/devtools_messages.h',
- 'common/devtools_messages_internal.h',
- 'common/logging_chrome.cc',
- 'common/logging_chrome.h',
- 'common/main_function_params.h',
- 'common/message_router.cc',
- 'common/message_router.h',
- 'common/nacl_messages.h',
- 'common/nacl_messages_internal.h',
- 'common/notification_details.h',
- 'common/notification_observer.h',
- 'common/notification_registrar.cc',
- 'common/notification_registrar.h',
- 'common/notification_service.cc',
- 'common/notification_service.h',
- 'common/notification_source.h',
- 'common/notification_type.h',
- 'common/process_watcher_mac.cc',
- 'common/process_watcher_posix.cc',
- 'common/process_watcher_win.cc',
- 'common/process_watcher.h',
- 'common/property_bag.cc',
- 'common/property_bag.h',
- 'common/ref_counted_util.h',
- 'common/result_codes.h',
- 'common/sandbox_init_wrapper.h',
- 'common/sandbox_init_wrapper_linux.cc',
- 'common/sandbox_init_wrapper_mac.cc',
- 'common/sandbox_init_wrapper_win.cc',
- 'common/sandbox_mac.h',
- 'common/sandbox_mac.mm',
- 'common/task_queue.cc',
- 'common/task_queue.h',
- 'common/time_format.cc',
- 'common/time_format.h',
- 'common/transport_dib.h',
- 'common/win_safe_util.cc',
- 'common/win_safe_util.h',
- ],
- }],
- ],
- },
- 'targets': [
- {
- 'target_name': 'common',
- 'type': '<(library)',
- 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
- 'variables': {
- 'chrome_common_target': 1,
- },
- # TODO(gregoryd): This could be shared with the 64-bit target, but
- # it does not work due to a gyp issue.
- 'direct_dependent_settings': {
- 'include_dirs': [
- '..',
- ],
- },
- 'dependencies': [
- # TODO(gregoryd): chrome_resources and chrome_strings could be
- # shared with the 64-bit target, but it does not work due to a gyp
- # issue.
- 'chrome_resources',
- 'chrome_strings',
- 'common_constants',
- 'theme_resources',
- '../app/app.gyp:app_base',
- '../app/app.gyp:app_resources',
- '../base/base.gyp:base',
- '../base/base.gyp:base_i18n',
- '../build/temp_gyp/googleurl.gyp:googleurl',
- '../ipc/ipc.gyp:ipc',
- '../net/net.gyp:net',
- '../net/net.gyp:net_resources',
- '../skia/skia.gyp:skia',
- '../third_party/icu/icu.gyp:icui18n',
- '../third_party/icu/icu.gyp:icuuc',
- '../third_party/libxml/libxml.gyp:libxml',
- '../third_party/sqlite/sqlite.gyp:sqlite',
- '../third_party/zlib/zlib.gyp:zlib',
- '../third_party/npapi/npapi.gyp:npapi',
- '../webkit/webkit.gyp:appcache',
- '../webkit/webkit.gyp:glue',
- ],
- 'sources': [
- # .cc, .h, and .mm files under chrome/common that are not required for
- # building 64-bit Windows targets. Test files are not included.
- 'common/desktop_notifications/active_notification_tracker.h',
- 'common/desktop_notifications/active_notification_tracker.cc',
- 'common/extensions/extension.cc',
- 'common/extensions/extension.h',
- 'common/extensions/extension_constants.cc',
- 'common/extensions/extension_constants.h',
- 'common/extensions/extension_error_reporter.cc',
- 'common/extensions/extension_error_reporter.h',
- 'common/extensions/extension_error_utils.cc',
- 'common/extensions/extension_error_utils.h',
- 'common/extensions/extension_action.cc',
- 'common/extensions/extension_action.h',
- 'common/extensions/extension_l10n_util.cc',
- 'common/extensions/extension_l10n_util.h',
- 'common/extensions/extension_message_bundle.cc',
- 'common/extensions/extension_message_bundle.h',
- 'common/extensions/extension_resource.cc',
- 'common/extensions/extension_resource.h',
- 'common/extensions/extension_unpacker.cc',
- 'common/extensions/extension_unpacker.h',
- 'common/extensions/update_manifest.cc',
- 'common/extensions/update_manifest.h',
- 'common/extensions/url_pattern.cc',
- 'common/extensions/url_pattern.h',
- 'common/extensions/user_script.cc',
- 'common/extensions/user_script.h',
- 'common/gfx/utils.h',
- 'common/net/dns.h',
- 'common/net/net_resource_provider.cc',
- 'common/net/net_resource_provider.h',
- 'common/net/socket_stream.h',
- 'common/net/url_request_intercept_job.cc',
- 'common/net/url_request_intercept_job.h',
- 'common/web_resource/web_resource_unpacker.cc',
- 'common/web_resource/web_resource_unpacker.h',
- 'common/appcache/appcache_backend_proxy.cc',
- 'common/appcache/appcache_backend_proxy.h',
- 'common/appcache/appcache_dispatcher.cc',
- 'common/appcache/appcache_dispatcher.h',
- 'common/appcache/appcache_dispatcher_host.cc',
- 'common/appcache/appcache_dispatcher_host.h',
- 'common/appcache/appcache_frontend_proxy.cc',
- 'common/appcache/appcache_frontend_proxy.h',
- 'common/appcache/chrome_appcache_service.cc',
- 'common/appcache/chrome_appcache_service.h',
- 'common/automation_constants.cc',
- 'common/automation_constants.h',
- 'common/child_process_host.cc',
- 'common/child_process_host.h',
- 'common/chrome_descriptors.h',
- 'common/chrome_plugin_api.h',
- 'common/chrome_plugin_lib.cc',
- 'common/chrome_plugin_lib.h',
- 'common/chrome_plugin_util.cc',
- 'common/chrome_plugin_util.h',
- 'common/command_buffer_messages.h',
- 'common/command_buffer_messages_internal.h',
- 'common/common_glue.cc',
- 'common/css_colors.h',
- 'common/db_message_filter.cc',
- 'common/db_message_filter.h',
- 'common/dom_storage_type.h',
- 'common/filter_policy.h',
- 'common/gears_api.h',
- 'common/gtk_tree.cc',
- 'common/gtk_tree.h',
- 'common/gtk_util.cc',
- 'common/gtk_util.h',
- 'common/histogram_synchronizer.cc',
- 'common/histogram_synchronizer.h',
- 'common/important_file_writer.cc',
- 'common/important_file_writer.h',
- 'common/jstemplate_builder.cc',
- 'common/jstemplate_builder.h',
- 'common/libxml_utils.cc',
- 'common/libxml_utils.h',
- 'common/mru_cache.h',
- 'common/navigation_gesture.h',
- 'common/navigation_types.h',
- 'common/native_web_keyboard_event.h',
- 'common/native_web_keyboard_event_linux.cc',
- 'common/native_web_keyboard_event_mac.mm',
- 'common/native_web_keyboard_event_win.cc',
- 'common/native_window_notification_source.h',
- 'common/owned_widget_gtk.cc',
- 'common/owned_widget_gtk.h',
- 'common/page_transition_types.h',
- 'common/page_zoom.h',
- 'common/platform_util.h',
- 'common/platform_util_linux.cc',
- 'common/platform_util_mac.mm',
- 'common/platform_util_win.cc',
- 'common/plugin_carbon_interpose_constants_mac.h',
- 'common/plugin_carbon_interpose_constants_mac.cc',
- 'common/plugin_messages.h',
- 'common/plugin_messages_internal.h',
- 'common/pref_member.cc',
- 'common/pref_member.h',
- 'common/pref_service.cc',
- 'common/pref_service.h',
- 'common/render_messages.h',
- 'common/render_messages_internal.h',
- 'common/renderer_preferences.h',
- 'common/resource_dispatcher.cc',
- 'common/resource_dispatcher.h',
- 'common/security_filter_peer.cc',
- 'common/security_filter_peer.h',
- 'common/socket_stream_dispatcher.cc',
- 'common/socket_stream_dispatcher.h',
- 'common/spellcheck_common.cc',
- 'common/spellcheck_common.h',
- 'common/sqlite_compiled_statement.cc',
- 'common/sqlite_compiled_statement.h',
- 'common/sqlite_utils.cc',
- 'common/sqlite_utils.h',
- 'common/temp_scaffolding_stubs.cc',
- 'common/temp_scaffolding_stubs.h',
- 'common/thumbnail_score.cc',
- 'common/thumbnail_score.h',
- 'common/transport_dib_linux.cc',
- 'common/transport_dib_mac.cc',
- 'common/transport_dib_win.cc',
- 'common/url_constants.cc',
- 'common/url_constants.h',
- 'common/utility_messages.h',
- 'common/utility_messages_internal.h',
- 'common/view_types.cc',
- 'common/view_types.h',
- 'common/visitedlink_common.cc',
- 'common/visitedlink_common.h',
- 'common/webkit_param_traits.h',
- 'common/webmessageportchannel_impl.cc',
- 'common/webmessageportchannel_impl.h',
- 'common/worker_messages.h',
- 'common/worker_messages_internal.h',
- 'common/worker_thread_ticker.cc',
- 'common/worker_thread_ticker.h',
- 'common/x11_util.cc',
- 'common/x11_util.h',
- 'common/x11_util_internal.h',
- 'common/zip.cc', # Requires zlib directly.
- 'common/zip.h',
- ],
- 'conditions': [
- ['OS=="linux"', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- ],
- 'export_dependent_settings': [
- '../third_party/sqlite/sqlite.gyp:sqlite',
- ],
- 'link_settings': {
- 'libraries': [
- '-lX11',
- '-lXrender',
- '-lXext',
- ],
- },
- },],
- ['OS=="linux" and selinux==1', {
- 'dependencies': [
- '../build/linux/system.gyp:selinux',
- ],
- }],
- ['OS=="mac"', {
- 'sources!': [
- 'common/process_watcher_posix.cc',
- ],
- }],
- ],
- 'export_dependent_settings': [
- '../app/app.gyp:app_base',
- ],
- },
- ],
- 'conditions': [
- ['OS=="win"', {
- 'targets': [
- {
- 'target_name': 'common_nacl_win64',
- 'type': '<(library)',
- 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
- 'variables': {
- 'chrome_common_target': 1,
- },
- 'dependencies': [
- # TODO(gregoryd): chrome_resources and chrome_strings could be
- # shared with the 32-bit target, but it does not work due to a gyp
- # issue.
- 'chrome_resources',
- 'chrome_strings',
- 'common_constants_win64',
- '../app/app.gyp:app_base_nacl_win64',
- '../app/app.gyp:app_resources',
- '../base/base.gyp:base_nacl_win64',
- '../ipc/ipc.gyp:ipc_win64',
- ],
- 'include_dirs': [
- '../third_party/npapi',
- '../third_party/icu/public/i18n',
- '../third_party/icu/public/common',
- # We usually get these skia directories by adding a dependency on
- # skia, bu we don't need it for NaCl's 64-bit Windows support. The
- # directories are required for resolving the includes in any case.
- '../third_party/skia/include/core',
- '../skia/config',
- ],
- 'defines': [
- 'EXCLUDE_SKIA_DEPENDENCIES',
- '<@(nacl_win64_defines)',
- ],
- 'sources': [
- '../webkit/glue/webkit_glue_dummy.cc',
- 'common/resource_dispatcher_dummy.cc',
- 'common/socket_stream_dispatcher_dummy.cc',
- ],
- 'export_dependent_settings': [
- '../app/app.gyp:app_base_nacl_win64',
- ],
- # TODO(gregoryd): This could be shared with the 32-bit target, but
- # it does not work due to a gyp issue.
- 'direct_dependent_settings': {
- 'include_dirs': [
- '..',
- ],
- },
- 'configurations': {
- 'Common': {
- 'msvs_target_platform': 'x64',
- },
- },
- },
- ],
- }],
- ],
-}
diff --git a/chrome/chrome_dll.gypi b/chrome/chrome_dll.gypi
deleted file mode 100644
index dbf0743..0000000
--- a/chrome/chrome_dll.gypi
+++ /dev/null
@@ -1,516 +0,0 @@
-# Copyright (c) 2009 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.
-
-{
- 'target_defaults': {
- 'variables': {
- 'chrome_dll_target': 0,
- },
- 'target_conditions': [
- ['chrome_dll_target==1', {
- 'conditions': [
- ['OS=="win"', {
- 'include_dirs': [
- 'third_party/wtl/include',
- ],
- 'defines': [
- 'CHROME_DLL',
- 'BROWSER_DLL',
- 'RENDERER_DLL',
- 'PLUGIN_DLL',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'BaseAddress': '0x01c30000',
- 'DelayLoadDLLs': [
- 'crypt32.dll',
- 'cryptui.dll',
- 'winhttp.dll',
- 'wininet.dll',
- 'wsock32.dll',
- 'ws2_32.dll',
- 'winspool.drv',
- 'comdlg32.dll',
- 'imagehlp.dll',
- 'urlmon.dll',
- 'imm32.dll',
- 'iphlpapi.dll',
- ],
- # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency).
- 'SubSystem': '2',
- },
- 'VCManifestTool': {
- 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.manifest',
- },
- },
- 'configurations': {
- 'Debug': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
- },
- },
- },
- },
- }], # OS=="win"
- ], # conditions
- }],
- ],
- },
- 'conditions': [
- ['OS=="mac" or OS=="win"', {
- 'targets': [
- {
- 'target_name': 'chrome_dll',
- 'type': 'shared_library',
- 'variables': {
- 'chrome_dll_target': 1,
- },
- 'dependencies': [
- '<@(chromium_dependencies)',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'product_name': 'chrome',
- 'msvs_guid': 'C0A7EE2C-2A6D-45BE-BA78-6D006FDF52D9',
- 'dependencies': [
- # On Windows, link the dependencies (libraries) that make
- # up actual Chromium functionality into this .dll.
- 'chrome_dll_version',
- 'chrome_resources',
- 'installer/installer.gyp:installer_util_strings',
- 'worker',
- '../printing/printing.gyp:printing',
- '../net/net.gyp:net_resources',
- '../build/util/support/support.gyp:*',
- '../third_party/cld/cld.gyp:cld',
- '../views/views.gyp:views',
- '../webkit/webkit.gyp:webkit_resources',
- '../gears/gears.gyp:gears',
- ],
- 'sources': [
- 'app/chrome_dll.rc',
- 'app/chrome_dll_main.cc',
- 'app/chrome_dll_resource.h',
- '<(SHARED_INTERMEDIATE_DIR)/chrome_dll_version/chrome_dll_version.rc',
-
- '../webkit/glue/resources/aliasb.cur',
- '../webkit/glue/resources/cell.cur',
- '../webkit/glue/resources/col_resize.cur',
- '../webkit/glue/resources/copy.cur',
- '../webkit/glue/resources/row_resize.cur',
- '../webkit/glue/resources/vertical_text.cur',
- '../webkit/glue/resources/zoom_in.cur',
- '../webkit/glue/resources/zoom_out.cur',
-
- # TODO: It would be nice to have these pulled in
- # automatically from direct_dependent_settings in
- # their various targets (net.gyp:net_resources, etc.),
- # but that causes errors in other targets when
- # resulting .res files get referenced multiple times.
- '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
-
- # TODO(sgk): left-over from pre-gyp build, figure out
- # if we still need them and/or how to update to gyp.
- #'app/check_dependents.bat',
- #'app/chrome.dll.deps',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
- 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb',
- },
- },
- }], # OS=="win"
- ['OS=="mac"', {
- # 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 the build and patch numbers. There is no
- # ambiguity in this scheme because the build number is
- # guaranteed unique even across distinct major and minor
- # version numbers. These settings correspond to
- # -compatibility_version and -current_version.
- 'DYLIB_COMPATIBILITY_VERSION': '<(version_build_patch)',
- 'DYLIB_CURRENT_VERSION': '<(version_build_patch)',
-
- # 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 tools/build/mac/copy_framework_unversioned 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',
-
- # Define the order of symbols within the framework. This
- # sets -order_file.
- 'ORDER_FILE': 'app/framework.order',
- },
- 'sources': [
- 'app/chrome_dll_main.cc',
- 'app/chrome_dll_resource.h',
- 'app/chrome_exe_main.mm',
- ],
- # 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': [
- 'app/framework-Info.plist',
- 'app/nibs/About.xib',
- 'app/nibs/AboutIPC.xib',
- 'app/nibs/BookmarkAllTabs.xib',
- 'app/nibs/BookmarkBar.xib',
- 'app/nibs/BookmarkBubble.xib',
- 'app/nibs/BookmarkEditor.xib',
- 'app/nibs/BookmarkNameFolder.xib',
- 'app/nibs/BrowserWindow.xib',
- 'app/nibs/ClearBrowsingData.xib',
- 'app/nibs/DownloadItem.xib',
- 'app/nibs/DownloadShelf.xib',
- 'app/nibs/EditSearchEngine.xib',
- 'app/nibs/ExtensionShelf.xib',
- 'app/nibs/FindBar.xib',
- 'app/nibs/FirstRunDialog.xib',
- 'app/nibs/HungRendererDialog.xib',
- 'app/nibs/HttpAuthLoginSheet.xib',
- 'app/nibs/ImportSettingsDialog.xib',
- 'app/nibs/InfoBar.xib',
- 'app/nibs/InfoBarContainer.xib',
- 'app/nibs/ImportProgressDialog.xib',
- 'app/nibs/KeywordEditor.xib',
- 'app/nibs/MainMenu.xib',
- 'app/nibs/PageInfo.xib',
- 'app/nibs/Preferences.xib',
- 'app/nibs/ReportBug.xib',
- 'app/nibs/SaveAccessoryView.xib',
- 'app/nibs/SadTab.xib',
- 'app/nibs/TabContents.xib',
- 'app/nibs/TabView.xib',
- 'app/nibs/TaskManager.xib',
- 'app/nibs/Toolbar.xib',
- 'app/theme/back_Template.pdf',
- 'app/theme/chevron.png', # TODO(jrg): get and use a pdf version
- 'app/theme/close_bar.pdf',
- 'app/theme/close_bar_h.pdf',
- 'app/theme/close_bar_p.pdf',
- 'app/theme/find_next_Template.pdf',
- 'app/theme/find_prev_Template.pdf',
- 'app/theme/forward_Template.pdf',
- 'app/theme/go_Template.pdf',
- 'app/theme/home_Template.pdf',
- 'app/theme/menu_chrome_rtl_Template.pdf',
- 'app/theme/menu_chrome_Template.pdf',
- 'app/theme/menu_page_rtl_Template.pdf',
- 'app/theme/menu_page_Template.pdf',
- 'app/theme/nav.pdf',
- 'app/theme/newtab.pdf',
- 'app/theme/newtab_h.pdf',
- 'app/theme/newtab_p.pdf',
- 'app/theme/otr_icon.pdf',
- 'app/theme/reload_Template.pdf',
- 'app/theme/star_Template.pdf',
- 'app/theme/starred.pdf',
- 'app/theme/stop_Template.pdf',
- ],
- 'mac_bundle_resources!': [
- 'app/framework-Info.plist',
- ],
- 'dependencies': [
- # Bring in pdfsqueeze and run it on all pdfs
- '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze',
- '../build/util/support/support.gyp:*',
- ],
- 'rules': [
- {
- 'rule_name': 'pdfsqueeze',
- 'extension': 'pdf',
- 'inputs': [
- '<(PRODUCT_DIR)/pdfsqueeze',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf',
- ],
- 'action': ['<(PRODUCT_DIR)/pdfsqueeze',
- '<(RULE_INPUT_PATH)', '<@(_outputs)'],
- 'message': 'Running pdfsqueeze on <(RULE_INPUT_PATH)',
- },
- ],
- 'variables': {
- 'repack_path': '../tools/data_pack/repack.py',
- },
- 'actions': [
- # TODO(mark): These actions are duplicated for Linux and
- # FreeBSD in the chrome target. Can they be unified?
- {
- 'action_name': 'repack_chrome',
- 'variables': {
- 'pak_inputs': [
- '<(grit_out_dir)/browser_resources.pak',
- '<(grit_out_dir)/common_resources.pak',
- '<(grit_out_dir)/renderer_resources.pak',
- '<(grit_out_dir)/theme_resources.pak',
- '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.pak',
- '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
- '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
- ],
- },
- 'inputs': [
- '<(repack_path)',
- '<@(pak_inputs)',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/repack/chrome.pak',
- ],
- 'action': ['python', '<(repack_path)', '<@(_outputs)',
- '<@(pak_inputs)'],
- 'process_outputs_as_mac_bundle_resources': 1,
- },
- {
- 'action_name': 'repack_locales',
- 'process_outputs_as_mac_bundle_resources': 1,
- 'variables': {
- 'conditions': [
- ['branding=="Chrome"', {
- 'branding_flag': ['-b', 'google_chrome',],
- }, { # else: branding!="Chrome"
- 'branding_flag': ['-b', 'chromium',],
- }],
- ],
- },
- 'inputs': [
- 'tools/build/repack_locales.py',
- # NOTE: Ideally the common command args would be shared
- # amongst inputs/outputs/action, but the args include shell
- # variables which need to be passed intact, and command
- # expansion wants to expand the shell variables. Adding the
- # explicit quoting here was the only way it seemed to work.
- '>!@(<(repack_locales_cmd) -i <(branding_flag) -g \'<(grit_out_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
- ],
- 'outputs': [
- '>!@(<(repack_locales_cmd) -o -g \'<(grit_out_dir)\' -s \'<(SHARED_INTERMEDIATE_DIR)\' -x \'<(INTERMEDIATE_DIR)\' <(locales))',
- ],
- 'action': [
- '<@(repack_locales_cmd)',
- '<@(branding_flag)',
- '-g', '<(grit_out_dir)',
- '-s', '<(SHARED_INTERMEDIATE_DIR)',
- '-x', '<(INTERMEDIATE_DIR)',
- '<@(locales)',
- ],
- },
- ],
- 'postbuilds': [
- {
- # This step causes an error to be raised if the .order file
- # does not account for all global text symbols. It
- # validates the completeness of the .order file.
- 'postbuild_name': 'Verify global text symbol order',
- 'variables': {
- 'verify_order_path': 'tools/build/mac/verify_order',
- },
- 'action': [
- '<(verify_order_path)',
- '_ChromeMain',
- '${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 target.
- # The framework needs the Breakpad and Keystone keys if
- # those features are enabled. It doesn't currently use the
- # Subversion keys for anything, but this seems like a really
- # good place to store them.
- 'postbuild_name': 'Tweak Info.plist',
- 'action': ['<(tweak_info_plist_path)',
- '-b<(mac_breakpad)',
- '-k<(mac_keystone)',
- '-s1',
- '<(branding)',
- '<(mac_bundle_id)'],
- },
- {
- 'postbuild_name': 'Symlink Libraries',
- 'action': [
- 'ln',
- '-fhs',
- 'Versions/Current/Libraries',
- '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries'
- ],
- },
- ],
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
- 'files': [
- '<(PRODUCT_DIR)/resources/inspector/'
- ],
- 'conditions': [
- ['mac_breakpad==1', {
- 'files': [
- '<(PRODUCT_DIR)/crash_inspector',
- '<(PRODUCT_DIR)/crash_report_sender.app'
- ],
- }],
- ],
- },
- {
- 'destination':
- '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
- 'files': [
- # TODO(ajwong): Find a way to share this path with
- # ffmpeg.gyp so they don't diverge. (BUG=23602)
- '<(PRODUCT_DIR)/libffmpegsumo.dylib',
- ],
- },
- ],
- 'conditions': [
- ['mac_breakpad==1', {
- 'variables': {
- # A real .dSYM is needed for dump_syms to operate on.
- 'mac_real_dsym': 1,
- },
- 'sources': [
- 'app/breakpad_mac.mm',
- 'app/breakpad_mac.h',
- ],
- 'dependencies': [
- '../breakpad/breakpad.gyp:breakpad',
- ],
- }, { # else: mac_breakpad!=1
- # No Breakpad, put in the stubs.
- 'sources': [
- 'app/breakpad_mac_stubs.mm',
- 'app/breakpad_mac.h',
- ],
- }], # mac_breakpad
- ['mac_keystone==1', {
- 'variables': {
- 'conditions': [
- ['branding=="Chrome"', {
- 'theme_dir_name': 'google_chrome',
- }, { # else: 'branding!="Chrome"
- 'theme_dir_name': 'chromium',
- }],
- ],
- },
- 'mac_bundle_resources': [
- # This image is used to badge the lock icon in the
- # promotion authentication dialog. 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/<(theme_dir_name)/product_logo_32.png',
-
- 'browser/cocoa/keystone_promote_preflight.sh',
- 'browser/cocoa/keystone_promote_postflight.sh',
- ],
- 'postbuilds': [
- {
- 'postbuild_name': 'Copy KeystoneRegistration.framework',
- 'action': [
- 'tools/build/mac/copy_framework_unversioned',
- '../third_party/googlemac/Releases/Keystone/KeystoneRegistration.framework',
- '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
- ],
- },
- {
- 'postbuild_name': 'Symlink Frameworks',
- 'action': [
- 'ln',
- '-fhs',
- 'Versions/Current/Frameworks',
- '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Frameworks'
- ],
- },
- ],
- }], # mac_keystone
- ], # conditions
- }], # OS=="mac"
- ], # conditions
- }, # target chrome_dll
- ], # targets
- }], # OS=="mac" or OS=="win"
- [ 'OS=="win"', {
- 'targets': [
- {
- 'target_name': 'chrome_dll_nacl_win64',
- 'type': 'shared_library',
- 'product_name': 'chrome_nacl_win64',
- 'msvs_guid': 'F5B2D851-1279-4CE1-9386-AB7C6433551B',
- 'variables': {
- 'chrome_dll_target': 1,
- },
- 'include_dirs': [
- '..',
- ],
- 'dependencies': [
- '<@(nacl_win64_dependencies)',
- 'chrome_dll_version',
- 'nacl_win64',
- ],
- 'defines': [
- '<@(nacl_win64_defines)',
- ],
- 'sources': [
- 'app/chrome_dll_main.cc',
- 'app/chrome_dll_resource.h',
- 'browser/renderer_host/render_process_host_dummy.cc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome_dll_version/chrome_dll_version.rc',
-
- # TODO: It would be nice to have these pulled in
- # automatically from direct_dependent_settings in
- # their various targets (net.gyp:net_resources, etc.),
- # but that causes errors in other targets when
- # resulting .res files get referenced multiple times.
- '<(SHARED_INTERMEDIATE_DIR)/app/app_resources/app_resources.rc',
- '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
-
- # TODO(sgk): left-over from pre-gyp build, figure out
- # if we still need them and/or how to update to gyp.
- #'app/check_dependents.bat',
- #'app/chrome.dll.deps',
-
- # Stub entry points for process types that are not supported
- # by NaCl Win64 executable
- 'app/dummy_main_functions.cc',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll_nacl_win64.lib',
- 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll_nacl_win64.pdb',
- },
- },
- 'configurations': {
- 'Common': {
- 'msvs_target_platform': 'x64',
- },
- },
- }, # target chrome_dll
- ],
- }],
- ],
-}
diff --git a/chrome/chrome_exe.gypi b/chrome/chrome_exe.gypi
deleted file mode 100644
index b9f6d60..0000000
--- a/chrome/chrome_exe.gypi
+++ /dev/null
@@ -1,543 +0,0 @@
-# Copyright (c) 2009 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.
-
-{
- 'target_defaults': {
- 'variables': {
- 'chrome_exe_target': 0,
- },
- 'target_conditions': [
- ['chrome_exe_target==1', {
- 'sources': [
- # .cc, .h, and .mm files under app that are used on all
- # platforms, including both 32-bit and 64-bit Windows.
- # Test files are not included.
- 'app/breakpad_win.cc',
- 'app/breakpad_win.h',
- 'app/chrome_exe_main.cc',
- 'app/chrome_exe_main.mm',
- 'app/chrome_exe_main_gtk.cc',
- 'app/chrome_exe_resource.h',
- 'app/client_util.cc',
- 'app/client_util.h',
- 'app/hard_error_handler_win.cc',
- 'app/hard_error_handler_win.h',
- 'app/scoped_ole_initializer.h',
- ],
- 'mac_bundle_resources': [
- 'app/app-Info.plist',
- ],
- # TODO(mark): Come up with a fancier way to do this. It should only
- # be necessary to list app-Info.plist once, not the three times it is
- # listed here.
- 'mac_bundle_resources!': [
- 'app/app-Info.plist',
- ],
- 'xcode_settings': {
- 'INFOPLIST_FILE': 'app/app-Info.plist',
- },
- 'conditions': [
- ['OS=="win"', {
- 'sources': [
- 'app/chrome_exe.rc',
- 'app/chrome_exe_version.rc.version',
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/chrome',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'DelayLoadDLLs': [
- 'dbghelp.dll',
- 'dwmapi.dll',
- 'uxtheme.dll',
- 'ole32.dll',
- 'oleaut32.dll',
- ],
- # Set /SUBSYSTEM:WINDOWS for chrome.exe itself.
- 'SubSystem': '2',
- },
- 'VCManifestTool': {
- 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.exe.manifest',
- },
- },
- 'actions': [
- {
- 'action_name': 'version',
- 'variables': {
- 'template_input_path': 'app/chrome_exe_version.rc.version',
- },
- 'conditions': [
- [ 'branding == "Chrome"', {
- 'variables': {
- 'branding_path': 'app/theme/google_chrome/BRANDING',
- },
- }, { # else branding!="Chrome"
- 'variables': {
- 'branding_path': 'app/theme/chromium/BRANDING',
- },
- }],
- ],
- 'inputs': [
- '<(template_input_path)',
- '<(version_path)',
- '<(branding_path)',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_exe_version.rc',
- ],
- 'action': [
- 'python',
- '<(version_py_path)',
- '-f', '<(version_path)',
- '-f', '<(branding_path)',
- '<(template_input_path)',
- '<@(_outputs)',
- ],
- 'process_outputs_as_sources': 1,
- 'message': 'Generating version information in <(_outputs)'
- },
- {
- 'action_name': 'first_run',
- 'inputs': [
- 'app/FirstRun',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/First Run',
- ],
- 'action': ['cp', '-f', '<@(_inputs)', '<@(_outputs)'],
- 'message': 'Copy first run complete sentinel file',
- },
- ],
- }, { # 'OS!="win"
- 'sources!': [
- 'app/chrome_exe_main.cc',
- 'app/client_util.cc',
- ]
- }],
- ],
- }],
- ],
- },
- 'targets': [
- {
- 'target_name': 'chrome',
- 'type': 'executable',
- 'mac_bundle': 1,
- 'msvs_guid': '7B219FAA-E360-43C8-B341-804A94EEFFAC',
- 'variables': {
- 'chrome_exe_target': 1,
- },
- 'conditions': [
- ['chrome_frame_define==1 and OS=="win"', {
- # TODO(gregoryd): This could be shared with the 64-bit target, but
- # it does not work due to a gyp issue.
- 'dependencies': [
- '../chrome_frame/chrome_frame.gyp:npchrome_tab',
- ],
- }],
- ['OS=="linux" or OS=="freebsd"', {
- 'actions': [
- {
- 'action_name': 'manpage',
- 'conditions': [
- [ 'branding == "Chrome"', {
- 'variables': {
- 'name': 'Google Chrome',
- 'filename': 'google-chrome',
- 'confdir': 'google-chrome',
- },
- }, { # else branding!="Chrome"
- 'variables': {
- 'name': 'Chromium',
- 'filename': 'chromium-browser',
- 'confdir': 'chromium',
- },
- }],
- ],
- 'inputs': [
- 'tools/build/linux/sed.sh',
- 'app/resources/manpage.1.in',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/chrome.1',
- ],
- 'action': [
- 'tools/build/linux/sed.sh',
- 'app/resources/manpage.1.in',
- '<@(_outputs)',
- '-e', 's/@@NAME@@/<(name)/',
- '-e', 's/@@FILENAME@@/<(filename)/',
- '-e', 's/@@CONFDIR@@/<(confdir)/',
- ],
- 'message': 'Generating manpage'
- },
- ],
- 'conditions': [
- [ 'linux_use_tcmalloc==1', {
- 'dependencies': [
- '<(allocator_target)',
- ],
- },
- ],
- ],
- 'dependencies': [
- # On Linux, link the dependencies (libraries) that make up actual
- # Chromium functionality directly into the executable.
- '<@(chromium_dependencies)',
- # Needed for chrome_dll_main.cc #include of gtk/gtk.h
- '../build/linux/system.gyp:gtk',
- 'packed_resources',
- ],
- 'sources': [
- 'app/chrome_dll_main.cc',
- 'app/chrome_dll_resource.h',
- ],
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)',
- 'files': ['tools/build/linux/chrome-wrapper',
- '../third_party/xdg-utils/scripts/xdg-settings',
- ],
- # The wrapper script above may need to generate a .desktop file,
- # which requires an icon. So, copy one next to the script.
- 'conditions': [
- ['branding=="Chrome"', {
- 'files': ['app/theme/google_chrome/product_logo_48.png']
- }, { # else: 'branding!="Chrome"
- 'files': ['app/theme/chromium/product_logo_48.png']
- }],
- ],
- },
- ],
- }],
- ['OS=="linux" and (toolkit_views==1 or chromeos==1)', {
- 'dependencies': [
- '../views/views.gyp:views',
- ],
- }],
- ['OS=="mac"', {
- 'variables': {
- 'mac_packaging_dir':
- '<(PRODUCT_DIR)/<(mac_product_name) Packaging',
- # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't
- # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is
- # needed.
- 'mac_packaging_sh_dir':
- '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging',
- },
- # 'branding' is a variable defined in common.gypi
- # (e.g. "Chromium", "Chrome")
- 'conditions': [
- ['branding=="Chrome"', {
- 'mac_bundle_resources': [
- 'app/theme/google_chrome/app.icns',
- 'app/theme/google_chrome/document.icns',
- ],
- }, { # else: 'branding!="Chrome"
- 'mac_bundle_resources': [
- 'app/theme/chromium/app.icns',
- 'app/theme/chromium/document.icns',
- ],
- }],
- ['mac_breakpad==1', {
- 'variables': {
- # A real .dSYM is needed for dump_syms to operate on.
- 'mac_real_dsym': 1,
- },
- 'dependencies': [
- '../breakpad/breakpad.gyp:dump_syms',
- '../breakpad/breakpad.gyp:symupload',
- ],
- # The "Dump Symbols" post-build step is in a target_conditions
- # block so that it will follow the "Strip If Needed" step if that
- # is also being used. There is no standard configuration where
- # both of these steps occur together, but Mark likes to use this
- # configuraiton sometimes when testing Breakpad-enabled builds
- # without the time overhead of creating real .dSYM files. When
- # both "Dump Symbols" and "Strip If Needed" are present, "Dump
- # Symbols" must come second because "Strip If Needed" creates
- # a fake .dSYM that dump_syms needs to fake dump. Since
- # "Strip If Needed" is added in a target_conditions block in
- # common.gypi, "Dump Symbols" needs to be in an (always true)
- # target_conditions block.
- 'target_conditions': [
- ['1 == 1', {
- 'postbuilds': [
- {
- 'postbuild_name': 'Dump Symbols',
- 'variables': {
- 'dump_product_syms_path':
- 'tools/build/mac/dump_product_syms',
- },
- 'action': ['<(dump_product_syms_path)',
- '<(branding)'],
- },
- ],
- }],
- ],
- }], # mac_breakpad
- ['mac_keystone==1', {
- 'copies': [
- {
- # Put keystone_install.sh where the packaging system will
- # find it. The packager will copy this script to the
- # correct location on the disk image.
- 'destination': '<(mac_packaging_dir)',
- 'files': [
- 'tools/build/mac/keystone_install.sh',
- ],
- },
- ],
- }], # mac_keystone
- ['buildtype=="Official"', {
- 'actions': [
- {
- # Create sign.sh, the script that the packaging system will
- # use to sign the .app bundle.
- 'action_name': 'Make sign.sh',
- 'variables': {
- 'make_sign_sh_path': 'tools/build/mac/make_sign_sh',
- 'sign_sh_in_path': 'tools/build/mac/sign.sh.in',
- 'app_resource_rules_in_path':
- 'tools/build/mac/app_resource_rules.plist.in',
- },
- 'inputs': [
- '<(make_sign_sh_path)',
- '<(sign_sh_in_path)',
- '<(app_resource_rules_in_path)',
- '<(version_path)',
- ],
- 'outputs': [
- '<(mac_packaging_dir)/sign.sh',
- '<(mac_packaging_dir)/app_resource_rules.plist',
- ],
- 'action': [
- '<(make_sign_sh_path)',
- '<(mac_packaging_sh_dir)',
- '<(mac_product_name)',
- '<(version_full)',
- ],
- },
- ],
- }], # buildtype=="Official"
- ],
- 'product_name': '<(mac_product_name)',
- 'xcode_settings': {
- # chrome/app/app-Info.plist has:
- # CFBundleIdentifier of CHROMIUM_BUNDLE_ID
- # CFBundleName of CHROMIUM_SHORT_NAME
- # CFBundleSignature of CHROMIUM_CREATOR
- # Xcode then replaces these values with the branded values we set
- # as settings on the target.
- 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
- 'CHROMIUM_CREATOR': '<(mac_creator)',
- 'CHROMIUM_SHORT_NAME': '<(branding)',
- },
- 'dependencies': [
- 'helper_app',
- 'infoplist_strings_tool',
- # This library provides the real implementation for NaClSyscallSeg
- '../native_client/src/trusted/service_runtime/arch/x86_32/service_runtime_x86_32.gyp:service_runtime_x86_32_chrome'
- ],
- 'actions': [
- {
- # Generate the InfoPlist.strings file
- 'action_name': 'Generating InfoPlist.strings files',
- 'variables': {
- 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
- # Unique dir to write to so the [lang].lproj/InfoPlist.strings
- # for the main app and the helper app don't name collide.
- 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings',
- },
- 'conditions': [
- [ 'branding == "Chrome"', {
- 'variables': {
- 'branding_name': 'google_chrome_strings',
- },
- }, { # else branding!="Chrome"
- 'variables': {
- 'branding_name': 'chromium_strings',
- },
- }],
- ],
- 'inputs': [
- '<(tool_path)',
- '<(version_path)',
- # TODO: remove this helper when we have loops in GYP
- '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(branding_name)_ZZLOCALE.pak\' <(locales))',
- ],
- 'outputs': [
- # TODO: remove this helper when we have loops in GYP
- '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/InfoPlist.strings\' <(locales))',
- ],
- 'action': [
- '<(tool_path)',
- '-b', '<(branding_name)',
- '-v', '<(version_path)',
- '-g', '<(grit_out_dir)',
- '-o', '<(output_path)',
- '-t', 'main',
- '<@(locales)',
- ],
- 'message': 'Generating the language InfoPlist.strings files',
- 'process_outputs_as_mac_bundle_resources': 1,
- },
- ],
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Versions/<(version_full)',
- 'files': [
- '<(PRODUCT_DIR)/<(mac_product_name) Helper.app',
- ],
- },
- ],
- 'postbuilds': [
- {
- 'postbuild_name': 'Copy <(mac_product_name) Framework.framework',
- 'action': [
- 'tools/build/mac/copy_framework_unversioned',
- '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework',
- '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(version_full)',
- ],
- },
- {
- # Modify the Info.plist as needed. The script explains why this
- # is needed. This is also done in the helper_app and chrome_dll
- # targets. Use -b0 and -k0 to not include any Breakpad or
- # Keystone information; that all goes into the framework's
- # Info.plist. Use -s1 to include Subversion information.
- 'postbuild_name': 'Tweak Info.plist',
- 'action': ['<(tweak_info_plist_path)',
- '-b0',
- '-k0',
- '-s1',
- '<(branding)',
- '<(mac_bundle_id)'],
- },
- {
- 'postbuild_name': 'Clean up old versions',
- 'action': [
- 'tools/build/mac/clean_up_old_versions',
- '<(version_full)'
- ],
- },
- ], # postbuilds
- }],
- ['OS=="linux"', {
- 'conditions': [
- ['branding=="Chrome"', {
- 'dependencies': [
- 'installer/installer.gyp:linux_installer_configs',
- ],
- }],
- ['selinux==0', {
- 'dependencies': [
- '../sandbox/sandbox.gyp:sandbox',
- ],
- }],
- ['linux_sandbox_path != ""', {
- 'defines': [
- 'LINUX_SANDBOX_PATH="<(linux_sandbox_path)"',
- ],
- }],
- ],
- }],
- ['OS != "mac"', {
- 'conditions': [
- ['branding=="Chrome"', {
- 'product_name': 'chrome'
- }, { # else: Branding!="Chrome"
- # TODO: change to:
- # 'product_name': 'chromium'
- # whenever we convert the rest of the infrastructure
- # (buildbots etc.) to use "gyp -Dbranding=Chrome".
- # NOTE: chrome/app/theme/chromium/BRANDING and
- # chrome/app/theme/google_chrome/BRANDING have the short names,
- # etc.; should we try to extract from there instead?
- 'product_name': 'chrome'
- }],
- ],
- }],
- ['OS=="mac" or OS=="win"', {
- 'dependencies': [
- # On Windows and Mac, make sure we've built chrome_dll, which
- # contains all of the library code with Chromium functionality.
- 'chrome_dll',
- ],
- }],
- ['OS=="win"', {
- 'dependencies': [
- 'installer/installer.gyp:installer_util',
- 'installer/installer.gyp:installer_util_strings',
- '../breakpad/breakpad.gyp:breakpad_handler',
- '../breakpad/breakpad.gyp:breakpad_sender',
- '../sandbox/sandbox.gyp:sandbox',
- 'app/locales/locales.gyp:*',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib',
- 'ProgramDatabaseFile': '$(OutDir)\\chrome_exe.pdb',
- },
- },
- }],
- ],
- },
- ],
- 'conditions': [
- ['OS=="win"', {
- 'targets': [
- {
- 'target_name': 'chrome_nacl_win64',
- 'type': 'executable',
- 'product_name': 'nacl',
- 'msvs_guid': 'BB1AE956-038B-4092-96A2-951D2B418548',
- 'variables': {
- 'chrome_exe_target': 1,
- },
- 'dependencies': [
- # On Windows make sure we've built Win64 version of chrome_dll,
- # which contains all of the library code with Chromium
- # functionality.
- 'chrome_dll_nacl_win64',
- 'installer/installer.gyp:installer_util_nacl_win64',
- 'common_constants_win64',
- '../breakpad/breakpad.gyp:breakpad_handler_win64',
- '../breakpad/breakpad.gyp:breakpad_sender_win64',
- '../base/base.gyp:base_nacl_win64',
- # TODO(gregoryd): build sandbox for 64 bit
- # '../sandbox/sandbox.gyp:sandbox',
- ],
- 'defines': [
- '<@(nacl_win64_defines)',
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/chrome',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'ImportLibrary': '$(OutDir)\\lib\\nacl_exe.lib',
- 'ProgramDatabaseFile': '$(OutDir)\\nacl_exe.pdb',
- },
- },
- 'conditions': [
- ['chrome_frame_define==1 and OS=="win"', {
- # TODO(gregoryd): This could be shared with the 32-bit target, but
- # it does not work due to a gyp issue.
- 'dependencies': [
- '../chrome_frame/chrome_frame.gyp:npchrome_tab',
- ],
- }],
- ],
- 'configurations': {
- 'Common': {
- 'msvs_target_platform': 'x64',
- },
- },
- },
- ],
- }],
- ],
-}
diff --git a/chrome/common/resource_dispatcher_dummy.cc b/chrome/common/resource_dispatcher_dummy.cc
deleted file mode 100644
index 1380950..0000000
--- a/chrome/common/resource_dispatcher_dummy.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-// See http://dev.chromium.org/developers/design-documents/multi-process-resource-loading
-
-#include "chrome/common/resource_dispatcher.h"
-
-#include "base/compiler_specific.h"
-
-// ResourceDispatcher ---------------------------------------------------------
-
-ResourceDispatcher::ResourceDispatcher(IPC::Message::Sender* sender)
- : message_sender_(sender),
- ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
-}
-
-ResourceDispatcher::~ResourceDispatcher() {
-}
-
-// ResourceDispatcher implementation ------------------------------------------
-
-bool ResourceDispatcher::OnMessageReceived(const IPC::Message& message) {
- return false;
-}
diff --git a/chrome/common/socket_stream_dispatcher_dummy.cc b/chrome/common/socket_stream_dispatcher_dummy.cc
deleted file mode 100644
index ef49285d..0000000
--- a/chrome/common/socket_stream_dispatcher_dummy.cc
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) 2006-2008 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 "chrome/common/socket_stream_dispatcher.h"
-
-#include "base/compiler_specific.h"
-
-// SocketStreamDispatcher ------------------------------------------------------
-
-SocketStreamDispatcher::SocketStreamDispatcher() {
-}
-
-// SocketStreamDispatcher implementation ---------------------------------------
-
-bool SocketStreamDispatcher::OnMessageReceived(const IPC::Message& message) {
- return false;
-}
diff --git a/chrome/common_constants.gypi b/chrome/common_constants.gypi
deleted file mode 100644
index 9c0ae423..0000000
--- a/chrome/common_constants.gypi
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright (c) 2009 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.
-
-{
- 'target_defaults': {
- 'variables': {
- 'common_constants_target': 0,
- },
- 'target_conditions': [
- ['common_constants_target==1', {
- 'sources': [
- 'common/chrome_constants.cc',
- 'common/chrome_constants.h',
- 'common/chrome_paths.cc',
- 'common/chrome_paths.h',
- 'common/chrome_paths_internal.h',
- 'common/chrome_paths_linux.cc',
- 'common/chrome_paths_mac.mm',
- 'common/chrome_paths_win.cc',
- 'common/chrome_switches.cc',
- 'common/chrome_switches.h',
- 'common/env_vars.cc',
- 'common/env_vars.h',
- 'common/json_value_serializer.cc',
- 'common/json_value_serializer.h',
- 'common/pref_names.cc',
- 'common/pref_names.h',
- ],
- 'actions': [
- {
- 'action_name': 'Make chrome_version.cc',
- 'variables': {
- 'make_version_cc_path': 'tools/build/make_version_cc.py',
- },
- 'inputs': [
- '<(make_version_cc_path)',
- 'VERSION',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/chrome_version.cc',
- ],
- 'action': [
- 'python',
- '<(make_version_cc_path)',
- '<@(_outputs)',
- '<(version_full)',
- ],
- 'process_outputs_as_sources': 1,
- },
- ],
- }],
- ],
- },
- 'targets': [
- {
- 'target_name': 'common_constants',
- 'type': '<(library)',
- 'variables': {
- 'common_constants_target': 1,
- },
- 'dependencies': [
- '../base/base.gyp:base',
- ],
- 'conditions': [
- ['OS=="linux"', {
- 'dependencies': ['../build/linux/system.gyp:gtk'],
- }],
- ],
- },
- ],
- 'conditions': [
- ['OS=="win"', {
- 'targets': [
- {
- 'target_name': 'common_constants_win64',
- 'type': '<(library)',
- 'variables': {
- 'common_constants_target': 1,
- },
- 'dependencies': [
- '../base/base.gyp:base_nacl_win64',
- ],
- 'defines': [
- '<@(nacl_win64_defines)',
- ],
- 'configurations': {
- 'Common': {
- 'msvs_target_platform': 'x64',
- },
- },
- },
- ],
- }],
- ],
-}
diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi
deleted file mode 100644
index c6830d0..0000000
--- a/chrome/nacl.gypi
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (c) 2009 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.
-
-{
- 'target_defaults': {
- 'variables': {
- 'nacl_target': 0,
- },
- 'target_conditions': [
- # This part is shared between the targets defined below. Only files and
- # settings relevant for building the Win64 target should be added here.
- ['nacl_target==1', {
- 'include_dirs': [
- '<(INTERMEDIATE_DIR)',
- ],
- 'defines': [
- 'NACL_BLOCK_SHIFT=5',
- 'NACL_BLOCK_SIZE=32',
- '<@(nacl_defines)',
- ],
- 'sources': [
- # .cc, .h, and .mm files under nacl that are used on all
- # platforms, including both 32-bit and 64-bit Windows.
- # Test files are also not included.
- 'nacl/nacl_main.cc',
- 'nacl/nacl_thread.cc',
- 'nacl/nacl_thread.h',
- 'nacl/sel_main.cc',
- ],
- # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
- 'conditions': [
- ['OS=="win"', {
- 'defines': [
- '__STD_C',
- '_CRT_SECURE_NO_DEPRECATE',
- '_SCL_SECURE_NO_DEPRECATE',
- ],
- 'include_dirs': [
- 'third_party/wtl/include',
- ],
- },],
- ],
- }],
- ],
- },
- 'targets': [
- {
- 'target_name': 'nacl',
- 'type': '<(library)',
- 'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C',
- 'variables': {
- 'nacl_target': 1,
- },
- 'dependencies': [
- # TODO(gregoryd): chrome_resources and chrome_strings could be
- # shared with the 64-bit target, but it does not work due to a gyp
- #issue
- 'chrome_resources',
- 'chrome_strings',
- 'common',
- '../third_party/npapi/npapi.gyp:npapi',
- '../webkit/webkit.gyp:glue',
- '../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome',
- '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
- '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate',
- '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib',
- ],
- },
- ],
- 'conditions': [
- ['OS=="win"', {
- 'targets': [
- {
- 'target_name': 'nacl_win64',
- 'type': '<(library)',
- 'msvs_guid': '14135464-9FB9-42E3-99D8-791116FA1204',
- 'variables': {
- 'nacl_target': 1,
- },
- 'dependencies': [
- # TODO(gregoryd): chrome_resources and chrome_strings could be
- # shared with the 32-bit target, but it does not work due to a gyp
- #issue
- 'chrome_resources',
- 'chrome_strings',
- 'common_nacl_win64',
- ],
- 'defines': [
- '<@(nacl_win64_defines)',
- ],
- 'configurations': {
- 'Common': {
- 'msvs_target_platform': 'x64',
- },
- },
- },
- ],
- }],
- ],
-}
diff --git a/chrome/nacl/sel_main.cc b/chrome/nacl/sel_main.cc
index 4a2427b..c1f56d6 100644
--- a/chrome/nacl/sel_main.cc
+++ b/chrome/nacl/sel_main.cc
@@ -8,10 +8,6 @@
#include <crt_externs.h>
#endif
-#ifdef _WIN64 /* TODO(gregoryd): remove this when win64 issues are fixed */
-#define NACL_NO_INLINE
-#endif
-
EXTERN_C_BEGIN
#include "native_client/src/shared/platform/nacl_sync.h"
#include "native_client/src/shared/platform/nacl_sync_checked.h"
@@ -54,10 +50,6 @@ static void StopForDebuggerInit(const struct NaClApp *state) {
}
int SelMain(const int desc, const NaClHandle handle) {
-#ifdef _WIN64
- /* TODO(gregoryd): remove this when NaCl's service_runtime supports Win64 */
- return 0;
-#else
char *av[1];
int ac = 1;
@@ -204,6 +196,5 @@ int SelMain(const int desc, const NaClHandle handle) {
NaClAllModulesFini();
return ret_code;
-#endif
}
diff --git a/webkit/glue/webkit_glue_dummy.cc b/webkit/glue/webkit_glue_dummy.cc
deleted file mode 100644
index 9947c3c..0000000
--- a/webkit/glue/webkit_glue_dummy.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) 2006-2009 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 "webkit/glue/webkit_glue.h"
-
-
-//------------------------------------------------------------------------------
-// webkit_glue impl:
-
-namespace webkit_glue {
-
-// Global variable used by the plugin quirk "die after unload".
-bool g_forcefully_terminate_plugin_process = false;
-
-void SetUserAgent(const std::string& new_user_agent) {
-}
-
-
-} // namespace webkit_glue
diff --git a/webkit/glue/websocketstreamhandle_delegate.h b/webkit/glue/websocketstreamhandle_delegate.h
index c541852..2148699 100644
--- a/webkit/glue/websocketstreamhandle_delegate.h
+++ b/webkit/glue/websocketstreamhandle_delegate.h
@@ -21,14 +21,14 @@ class WebSocketStreamHandleDelegate {
virtual void WillOpenStream(WebKit::WebSocketStreamHandle* handle,
const GURL& url) {}
virtual void WillSendData(WebKit::WebSocketStreamHandle* handle,
- const char* data, size_t len) {}
+ const char* data, int len) {}
virtual void DidOpenStream(WebKit::WebSocketStreamHandle* handle,
int max_amount_send_allowed) {}
virtual void DidSendData(WebKit::WebSocketStreamHandle* handle,
int amount_sent) {}
virtual void DidReceiveData(WebKit::WebSocketStreamHandle* handle,
- const char* data, size_t len) {}
+ const char* data, int len) {}
virtual void DidClose(WebKit::WebSocketStreamHandle*) {}
};