[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 6 | 'variables': { |
| 7 | 'content_shell_product_name': 'Content Shell', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 8 | # The "19" is so that sites that sniff for version think that this is |
| 9 | # something reasonably current; the "77.34.5" is a hint that this isn't a |
| 10 | # standard Chrome. |
| 11 | 'content_shell_version': '19.77.34.5', |
[email protected] | 929246a | 2013-02-28 13:55:20 | [diff] [blame] | 12 | 'conditions': [ |
[email protected] | bf6b644 | 2013-03-07 09:18:24 | [diff] [blame] | 13 | ['OS=="linux"', { |
[email protected] | 929246a | 2013-02-28 13:55:20 | [diff] [blame] | 14 | 'use_custom_freetype%': 1, |
| 15 | }, { |
| 16 | 'use_custom_freetype%': 0, |
| 17 | }], |
| 18 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 19 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 20 | 'targets': [ |
| 21 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 22 | 'target_name': 'content_shell_lib', |
| 23 | 'type': 'static_library', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 24 | 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 25 | 'variables': { |
| 26 | 'chromium_code': 1, |
| 27 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 28 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 29 | 'content.gyp:content_app_both', |
| 30 | 'content.gyp:content_browser', |
| 31 | 'content.gyp:content_common', |
| 32 | 'content.gyp:content_gpu', |
| 33 | 'content.gyp:content_plugin', |
| 34 | 'content.gyp:content_ppapi_plugin', |
| 35 | 'content.gyp:content_renderer', |
| 36 | 'content.gyp:content_utility', |
| 37 | 'content.gyp:content_worker', |
[email protected] | a20f6e8 | 2013-07-01 13:38:41 | [diff] [blame] | 38 | 'content_shell_resources', |
| 39 | 'test_support_content', |
[email protected] | 73a75977 | 2013-07-02 20:47:45 | [diff] [blame] | 40 | 'content_resources.gyp:content_resources', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 41 | '../base/base.gyp:base', |
| 42 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | d6d06a35 | 2013-10-23 07:04:00 | [diff] [blame] | 43 | '../components/components.gyp:breakpad_component', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 44 | '../ipc/ipc.gyp:ipc', |
[email protected] | 433df47 | 2012-03-07 20:33:39 | [diff] [blame] | 45 | '../media/media.gyp:media', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 46 | '../net/net.gyp:net', |
[email protected] | 24f8069 | 2012-08-13 15:15:50 | [diff] [blame] | 47 | '../net/net.gyp:net_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 48 | '../skia/skia.gyp:skia', |
[email protected] | f422d6c3 | 2013-07-17 23:52:42 | [diff] [blame] | 49 | '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_runner', |
[email protected] | 114efae | 2013-11-06 20:37:57 | [diff] [blame] | 50 | '../ui/events/events.gyp:events_base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 51 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | 8350f16f | 2012-11-30 00:25:32 | [diff] [blame] | 52 | '../ui/gl/gl.gyp:gl', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 53 | '../ui/ui.gyp:ui', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 54 | '../url/url.gyp:url_lib', |
[email protected] | 12bc28fcb | 2011-09-21 15:53:50 | [diff] [blame] | 55 | '../v8/tools/gyp/v8.gyp:v8', |
[email protected] | 3469ea2 | 2013-09-14 01:24:47 | [diff] [blame] | 56 | '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent', |
[email protected] | a356e5cc | 2013-09-24 02:54:46 | [diff] [blame] | 57 | '../webkit/common/webkit_common.gyp:webkit_common', |
| 58 | '../webkit/glue/webkit_glue.gyp:glue', |
| 59 | '../webkit/webkit_resources.gyp:webkit_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 60 | ], |
| 61 | 'include_dirs': [ |
| 62 | '..', |
| 63 | ], |
| 64 | 'sources': [ |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 65 | 'shell/android/shell_jni_registrar.cc', |
| 66 | 'shell/android/shell_jni_registrar.h', |
| 67 | 'shell/android/shell_manager.cc', |
| 68 | 'shell/android/shell_manager.h', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 69 | 'shell/app/paths_mac.h', |
| 70 | 'shell/app/paths_mac.mm', |
[email protected] | d6d06a35 | 2013-10-23 07:04:00 | [diff] [blame] | 71 | 'shell/app/shell_breakpad_client.cc', |
| 72 | 'shell/app/shell_breakpad_client.h', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 73 | 'shell/app/shell_main_delegate.cc', |
| 74 | 'shell/app/shell_main_delegate.h', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 75 | 'shell/app/shell_main_delegate_mac.h', |
| 76 | 'shell/app/shell_main_delegate_mac.mm', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 77 | 'shell/app/webkit_test_platform_support_android.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 78 | 'shell/app/webkit_test_platform_support.h', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 79 | 'shell/app/webkit_test_platform_support_linux.cc', |
| 80 | 'shell/app/webkit_test_platform_support_mac.mm', |
| 81 | 'shell/app/webkit_test_platform_support_win.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 82 | 'shell/browser/notify_done_forwarder.cc', |
| 83 | 'shell/browser/notify_done_forwarder.h', |
| 84 | 'shell/browser/shell_android.cc', |
| 85 | 'shell/browser/shell_application_mac.h', |
| 86 | 'shell/browser/shell_application_mac.mm', |
| 87 | 'shell/browser/shell_aura.cc', |
| 88 | 'shell/browser/shell_browser_context.cc', |
| 89 | 'shell/browser/shell_browser_context.h', |
| 90 | 'shell/browser/shell_browser_main.cc', |
| 91 | 'shell/browser/shell_browser_main.h', |
| 92 | 'shell/browser/shell_browser_main_parts.cc', |
| 93 | 'shell/browser/shell_browser_main_parts.h', |
| 94 | 'shell/browser/shell_browser_main_parts_mac.mm', |
| 95 | 'shell/browser/shell.cc', |
| 96 | 'shell/browser/shell_content_browser_client.cc', |
| 97 | 'shell/browser/shell_content_browser_client.h', |
| 98 | 'shell/browser/shell_devtools_delegate.cc', |
| 99 | 'shell/browser/shell_devtools_delegate.h', |
| 100 | 'shell/browser/shell_devtools_frontend.cc', |
| 101 | 'shell/browser/shell_devtools_frontend.h', |
| 102 | 'shell/browser/shell_download_manager_delegate.cc', |
| 103 | 'shell/browser/shell_download_manager_delegate.h', |
| 104 | 'shell/browser/shell_gtk.cc', |
| 105 | 'shell/browser/shell.h', |
| 106 | 'shell/browser/shell_javascript_dialog_gtk.cc', |
| 107 | 'shell/browser/shell_javascript_dialog.h', |
| 108 | 'shell/browser/shell_javascript_dialog_mac.mm', |
| 109 | 'shell/browser/shell_javascript_dialog_manager.cc', |
| 110 | 'shell/browser/shell_javascript_dialog_manager.h', |
| 111 | 'shell/browser/shell_javascript_dialog_win.cc', |
| 112 | 'shell/browser/shell_layout_tests_android.cc', |
| 113 | 'shell/browser/shell_layout_tests_android.h', |
| 114 | 'shell/browser/shell_login_dialog.cc', |
| 115 | 'shell/browser/shell_login_dialog_gtk.cc', |
| 116 | 'shell/browser/shell_login_dialog.h', |
| 117 | 'shell/browser/shell_login_dialog_mac.mm', |
| 118 | 'shell/browser/shell_mac.mm', |
| 119 | 'shell/browser/shell_message_filter.cc', |
| 120 | 'shell/browser/shell_message_filter.h', |
| 121 | 'shell/browser/shell_net_log.cc', |
| 122 | 'shell/browser/shell_net_log.h', |
| 123 | 'shell/browser/shell_network_delegate.cc', |
| 124 | 'shell/browser/shell_network_delegate.h', |
| 125 | 'shell/browser/shell_plugin_service_filter.cc', |
| 126 | 'shell/browser/shell_plugin_service_filter.h', |
| 127 | 'shell/browser/shell_quota_permission_context.cc', |
| 128 | 'shell/browser/shell_quota_permission_context.h', |
| 129 | 'shell/browser/shell_resource_dispatcher_host_delegate.cc', |
| 130 | 'shell/browser/shell_resource_dispatcher_host_delegate.h', |
[email protected] | 9896c55 | 2013-08-29 19:03:20 | [diff] [blame] | 131 | 'shell/browser/shell_speech_recognition_manager_delegate.cc', |
| 132 | 'shell/browser/shell_speech_recognition_manager_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 133 | 'shell/browser/shell_url_request_context_getter.cc', |
| 134 | 'shell/browser/shell_url_request_context_getter.h', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 135 | 'shell/browser/shell_views.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 136 | 'shell/browser/shell_web_contents_view_delegate_android.cc', |
| 137 | 'shell/browser/shell_web_contents_view_delegate_creator.h', |
| 138 | 'shell/browser/shell_web_contents_view_delegate_gtk.cc', |
| 139 | 'shell/browser/shell_web_contents_view_delegate.h', |
| 140 | 'shell/browser/shell_web_contents_view_delegate_mac.mm', |
| 141 | 'shell/browser/shell_web_contents_view_delegate_win.cc', |
| 142 | 'shell/browser/shell_win.cc', |
| 143 | 'shell/browser/webkit_test_controller.cc', |
| 144 | 'shell/browser/webkit_test_controller.h', |
[email protected] | b7c504c | 2013-05-07 14:42:12 | [diff] [blame] | 145 | 'shell/common/shell_content_client.cc', |
| 146 | 'shell/common/shell_content_client.h', |
| 147 | 'shell/common/shell_messages.cc', |
| 148 | 'shell/common/shell_messages.h', |
| 149 | 'shell/common/shell_switches.cc', |
| 150 | 'shell/common/shell_switches.h', |
| 151 | 'shell/common/shell_test_configuration.cc', |
| 152 | 'shell/common/shell_test_configuration.h', |
| 153 | 'shell/common/webkit_test_helpers.cc', |
| 154 | 'shell/common/webkit_test_helpers.h', |
[email protected] | 6cfccd1 | 2012-06-28 12:14:05 | [diff] [blame] | 155 | 'shell/geolocation/shell_access_token_store.cc', |
| 156 | 'shell/geolocation/shell_access_token_store.h', |
[email protected] | 82f541a | 2013-08-12 19:39:50 | [diff] [blame] | 157 | 'shell/renderer/gc_extension.cc', |
| 158 | 'shell/renderer/gc_extension.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 159 | 'shell/renderer/shell_content_renderer_client.cc', |
| 160 | 'shell/renderer/shell_content_renderer_client.h', |
| 161 | 'shell/renderer/shell_render_process_observer.cc', |
| 162 | 'shell/renderer/shell_render_process_observer.h', |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 163 | 'shell/renderer/shell_render_view_observer.cc', |
| 164 | 'shell/renderer/shell_render_view_observer.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 165 | 'shell/renderer/webkit_test_runner.cc', |
| 166 | 'shell/renderer/webkit_test_runner.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 167 | ], |
| 168 | 'msvs_settings': { |
| 169 | 'VCLinkerTool': { |
| 170 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 171 | }, |
| 172 | }, |
| 173 | 'conditions': [ |
| 174 | ['OS=="win" and win_use_allocator_shim==1', { |
| 175 | 'dependencies': [ |
| 176 | '../base/allocator/allocator.gyp:allocator', |
| 177 | ], |
| 178 | }], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 179 | ['OS=="win"', { |
| 180 | 'resource_include_dirs': [ |
| 181 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 182 | ], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 183 | 'dependencies': [ |
[email protected] | d7871ac | 2013-07-09 21:35:41 | [diff] [blame] | 184 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 185 | ], |
| 186 | 'configurations': { |
| 187 | 'Debug_Base': { |
| 188 | 'msvs_settings': { |
| 189 | 'VCLinkerTool': { |
| 190 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 191 | }, |
| 192 | }, |
| 193 | }, |
| 194 | }, |
[email protected] | 3bed530 | 2013-02-15 19:31:41 | [diff] [blame] | 195 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 196 | 'msvs_disabled_warnings': [ 4267, ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 197 | }], # OS=="win" |
[email protected] | 6eb6bb6 | 2012-11-10 06:30:59 | [diff] [blame] | 198 | ['OS=="linux"', { |
| 199 | 'dependencies': [ |
| 200 | '../build/linux/system.gyp:fontconfig', |
| 201 | ], |
| 202 | }], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 203 | ['OS=="android"', { |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 204 | 'dependencies': [ |
| 205 | 'content_shell_jni_headers', |
| 206 | ], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 207 | }, { # else: OS!="android" |
| 208 | 'dependencies': [ |
| 209 | # This dependency is for running DRT against the content shell, and |
| 210 | # this combination is not yet supported on Android. |
[email protected] | 3469ea2 | 2013-09-14 01:24:47 | [diff] [blame] | 211 | 'test_support_content', |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 212 | ], |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 213 | }], # OS=="android" |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 214 | ['os_posix == 1 and OS != "mac" and android_webview_build != 1', { |
| 215 | 'dependencies': [ |
| 216 | '../components/components.gyp:breakpad_host', |
| 217 | ], |
| 218 | }], |
[email protected] | 3c8fe548 | 2013-05-22 15:17:03 | [diff] [blame] | 219 | ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', { |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 220 | 'dependencies': [ |
| 221 | # This is needed by content/app/content_main_runner.cc |
| 222 | '../base/allocator/allocator.gyp:allocator', |
| 223 | ], |
| 224 | }], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 225 | ['use_aura==1', { |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 226 | 'dependencies': [ |
| 227 | '../ui/aura/aura.gyp:aura', |
| 228 | '../ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 229 | ], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 230 | 'sources/': [ |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 231 | ['exclude', 'shell/browser/shell_gtk.cc'], |
| 232 | ['exclude', 'shell/browser/shell_win.cc'], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 233 | ], |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 234 | 'conditions': [ |
| 235 | ['toolkit_views==1', { |
| 236 | 'dependencies': [ |
[email protected] | dae7844 | 2013-11-26 16:57:02 | [diff] [blame] | 237 | '../ui/resources/ui_resources.gyp:ui_resources', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 238 | '../ui/views/controls/webview/webview.gyp:webview', |
| 239 | '../ui/views/views.gyp:views', |
| 240 | '../ui/views/views.gyp:views_test_support', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 241 | ], |
| 242 | 'sources/': [ |
| 243 | ['exclude', 'shell/browser/shell_aura.cc'], |
| 244 | ], |
| 245 | }, { |
| 246 | 'sources/': [ |
| 247 | ['exclude', 'shell/browser/shell_views.cc'], |
| 248 | ], |
| 249 | }], |
| 250 | ], |
| 251 | }, { |
| 252 | 'sources/': [ |
| 253 | ['exclude', 'shell/browser/shell_aura.cc'], |
| 254 | ['exclude', 'shell/browser/shell_views.cc'], |
| 255 | ], |
[email protected] | 96b80b47 | 2012-07-03 19:41:56 | [diff] [blame] | 256 | }], # use_aura==1 |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 257 | ['chromeos==1', { |
| 258 | 'dependencies': [ |
| 259 | '../chromeos/chromeos.gyp:chromeos', |
[email protected] | de6831b | 2013-11-16 01:04:30 | [diff] [blame] | 260 | '../ui/wm/wm.gyp:wm_test_support', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 261 | ], |
| 262 | }], # chromeos==1 |
[email protected] | 929246a | 2013-02-28 13:55:20 | [diff] [blame] | 263 | ['use_custom_freetype==1', { |
| 264 | 'dependencies': [ |
| 265 | '../third_party/freetype2/freetype2.gyp:freetype2', |
| 266 | ], |
| 267 | }], |
[email protected] | dfb936019 | 2013-05-27 09:42:34 | [diff] [blame] | 268 | ['enable_plugins==0', { |
| 269 | 'sources/': [ |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 270 | ['exclude', 'shell/browser/shell_plugin_service_filter.cc'], |
| 271 | ['exclude', 'shell/browser/shell_plugin_service_filter.h'], |
[email protected] | dfb936019 | 2013-05-27 09:42:34 | [diff] [blame] | 272 | ], |
| 273 | }] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 274 | ], |
| 275 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 276 | { |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 277 | 'target_name': 'content_shell_resources', |
| 278 | 'type': 'none', |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 279 | 'dependencies': [ |
| 280 | 'generate_content_shell_resources', |
| 281 | ], |
| 282 | 'variables': { |
| 283 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 284 | }, |
| 285 | 'includes': [ '../build/grit_target.gypi' ], |
| 286 | 'copies': [ |
| 287 | { |
| 288 | 'destination': '<(PRODUCT_DIR)', |
| 289 | 'files': [ |
| 290 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' |
| 291 | ], |
| 292 | }, |
| 293 | ], |
[email protected] | 4cb792f4 | 2012-03-24 03:12:42 | [diff] [blame] | 294 | }, |
| 295 | { |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 296 | 'target_name': 'generate_content_shell_resources', |
| 297 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 298 | 'variables': { |
| 299 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 300 | }, |
| 301 | 'actions': [ |
| 302 | { |
| 303 | 'action_name': 'content_shell_resources', |
| 304 | 'variables': { |
| 305 | 'grit_grd_file': 'shell/shell_resources.grd', |
| 306 | }, |
| 307 | 'includes': [ '../build/grit_action.gypi' ], |
| 308 | }, |
| 309 | ], |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 310 | }, |
| 311 | { |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 312 | # We build a minimal set of resources so WebKit in content_shell has |
| 313 | # access to necessary resources. |
| 314 | 'target_name': 'content_shell_pak', |
| 315 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 316 | 'dependencies': [ |
[email protected] | 7001915 | 2012-12-19 11:44:19 | [diff] [blame] | 317 | 'browser/devtools/devtools_resources.gyp:devtools_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 318 | 'content_resources.gyp:content_resources', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 319 | 'content_shell_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 320 | '<(DEPTH)/net/net.gyp:net_resources', |
| 321 | '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | 1c0c3f4 | 2013-11-20 02:03:28 | [diff] [blame] | 322 | '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
[email protected] | d7871ac | 2013-07-09 21:35:41 | [diff] [blame] | 323 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources', |
| 324 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 325 | ], |
[email protected] | 3df230d | 2013-07-03 00:44:57 | [diff] [blame] | 326 | 'conditions': [ |
| 327 | ['OS!="android" and OS!="ios"', { |
| 328 | 'dependencies': [ |
| 329 | 'browser/tracing/tracing_resources.gyp:tracing_resources', |
| 330 | ], |
| 331 | }], |
| 332 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 333 | 'variables': { |
| 334 | 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', |
| 335 | }, |
| 336 | 'actions': [ |
| 337 | { |
| 338 | 'action_name': 'repack_content_shell_pack', |
| 339 | 'variables': { |
| 340 | 'pak_inputs': [ |
| 341 | '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
[email protected] | 479bea2 | 2013-07-02 21:46:06 | [diff] [blame] | 342 | '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 343 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 344 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 345 | '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak', |
[email protected] | a52c731 | 2012-07-24 22:45:57 | [diff] [blame] | 346 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak', |
[email protected] | e1c26ae | 2013-01-31 18:13:18 | [diff] [blame] | 347 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 348 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 349 | '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', |
[email protected] | e5f893b | 2013-07-30 02:52:22 | [diff] [blame] | 350 | '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak', |
[email protected] | 30c8f54 | 2012-09-01 01:02:29 | [diff] [blame] | 351 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak', |
[email protected] | af551a6 | 2012-07-31 16:44:03 | [diff] [blame] | 352 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 353 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 354 | }, |
| 355 | 'inputs': [ |
| 356 | '<(repack_path)', |
| 357 | '<@(pak_inputs)', |
| 358 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 359 | 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 360 | '<@(pak_inputs)'], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 361 | 'conditions': [ |
| 362 | ['OS!="android"', { |
| 363 | 'outputs': [ |
| 364 | '<(PRODUCT_DIR)/content_shell.pak', |
| 365 | ], |
| 366 | }, { |
| 367 | 'outputs': [ |
| 368 | '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 369 | ], |
| 370 | }], |
| 371 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 372 | }, |
| 373 | ], |
| 374 | }, |
| 375 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 376 | 'target_name': 'content_shell', |
| 377 | 'type': 'executable', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 378 | 'mac_bundle': 1, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 379 | 'variables': { |
| 380 | 'chromium_code': 1, |
| 381 | }, |
| 382 | 'dependencies': [ |
| 383 | 'content_shell_lib', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 384 | 'content_shell_pak', |
[email protected] | bb5d2d9 | 2012-10-15 07:45:42 | [diff] [blame] | 385 | '../third_party/mesa/mesa.gyp:osmesa', |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 386 | '../tools/imagediff/image_diff.gyp:image_diff', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 387 | ], |
| 388 | 'include_dirs': [ |
| 389 | '..', |
| 390 | ], |
| 391 | 'sources': [ |
[email protected] | 711f428e | 2012-06-22 02:18:23 | [diff] [blame] | 392 | 'app/startup_helper_win.cc', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 393 | 'shell/app/shell_main.cc', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 394 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 395 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 396 | 'shell/app/app.icns', |
| 397 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 398 | ], |
| 399 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 400 | # be necessary to list app-Info.plist once, not the three times it is |
| 401 | # listed here. |
| 402 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 403 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 404 | ], |
| 405 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 406 | 'INFOPLIST_FILE': 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 407 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 408 | 'msvs_settings': { |
| 409 | 'VCLinkerTool': { |
| 410 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 411 | }, |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 412 | 'VCManifestTool': { |
[email protected] | 5d60b0b | 2013-07-30 20:24:30 | [diff] [blame] | 413 | 'AdditionalManifestFiles': [ |
| 414 | 'shell/app/shell.exe.manifest', |
| 415 | ], |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 416 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 417 | }, |
| 418 | 'conditions': [ |
| 419 | ['OS=="win" and win_use_allocator_shim==1', { |
| 420 | 'dependencies': [ |
| 421 | '../base/allocator/allocator.gyp:allocator', |
| 422 | ], |
| 423 | }], |
| 424 | ['OS=="win"', { |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 425 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 426 | 'shell/app/shell.rc', |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 427 | ], |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 428 | 'configurations': { |
| 429 | 'Debug_Base': { |
| 430 | 'msvs_settings': { |
| 431 | 'VCLinkerTool': { |
| 432 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 433 | }, |
| 434 | }, |
| 435 | }, |
| 436 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 437 | }], # OS=="win" |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 438 | ['OS == "win" or toolkit_uses_gtk == 1', { |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 439 | 'dependencies': [ |
| 440 | '../sandbox/sandbox.gyp:sandbox', |
| 441 | ], |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 442 | }], # OS=="win" or toolkit_uses_gtk == 1 |
[email protected] | 39899089 | 2012-01-20 03:25:58 | [diff] [blame] | 443 | ['toolkit_uses_gtk == 1', { |
| 444 | 'dependencies': [ |
| 445 | '<(DEPTH)/build/linux/system.gyp:gtk', |
| 446 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 447 | }], # toolkit_uses_gtk |
| 448 | ['OS=="mac"', { |
| 449 | 'product_name': '<(content_shell_product_name)', |
| 450 | 'dependencies!': [ |
| 451 | 'content_shell_lib', |
| 452 | ], |
| 453 | 'dependencies': [ |
| 454 | 'content_shell_framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 455 | 'content_shell_helper_app', |
| 456 | ], |
| 457 | 'copies': [ |
| 458 | { |
| 459 | 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks', |
| 460 | 'files': [ |
| 461 | '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app', |
| 462 | ], |
| 463 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 464 | ], |
| 465 | 'postbuilds': [ |
| 466 | { |
| 467 | 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework', |
| 468 | 'action': [ |
| 469 | '../build/mac/copy_framework_unversioned.sh', |
| 470 | '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework', |
| 471 | '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
| 472 | ], |
| 473 | }, |
| 474 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 475 | # Modify the Info.plist as needed. |
| 476 | 'postbuild_name': 'Tweak Info.plist', |
| 477 | 'action': ['../build/mac/tweak_info_plist.py', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 478 | '--scm=1', |
| 479 | '--version=<(content_shell_version)'], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 480 | }, |
| 481 | { |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 482 | # This postbuid step is responsible for creating the following |
| 483 | # helpers: |
| 484 | # |
| 485 | # Content Shell Helper EH.app and Content Shell Helper NP.app are |
| 486 | # created from Content Shell Helper.app. |
| 487 | # |
| 488 | # The EH helper is marked for an executable heap. The NP helper |
| 489 | # is marked for no PIE (ASLR). |
| 490 | 'postbuild_name': 'Make More Helpers', |
| 491 | 'action': [ |
| 492 | '../build/mac/make_more_helpers.sh', |
| 493 | 'Frameworks', |
| 494 | '<(content_shell_product_name)', |
| 495 | ], |
| 496 | }, |
| 497 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 498 | # Make sure there isn't any Objective-C in the shell's |
| 499 | # executable. |
| 500 | 'postbuild_name': 'Verify No Objective-C', |
| 501 | 'action': [ |
| 502 | '../build/mac/verify_no_objc.sh', |
| 503 | ], |
| 504 | }, |
| 505 | ], |
| 506 | }], # OS=="mac" |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 507 | ['OS=="android"', { |
| 508 | 'dependencies!': [ |
| 509 | '../tools/imagediff/image_diff.gyp:image_diff', |
| 510 | ], |
| 511 | }], # OS=="android" |
| 512 | ['OS=="android" and android_webview_build==0', { |
| 513 | 'dependencies': [ |
| 514 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
| 515 | ], |
| 516 | }], # OS=="android" and android_webview_build==0 |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 517 | ], |
| 518 | }, |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 519 | { |
| 520 | 'target_name': 'content_shell_builder', |
| 521 | 'type': 'none', |
| 522 | 'dependencies': [ |
| 523 | 'content_shell', |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 524 | ], |
| 525 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 526 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 527 | 'conditions': [ |
| 528 | ['OS=="mac"', { |
| 529 | 'targets': [ |
| 530 | { |
| 531 | 'target_name': 'content_shell_framework', |
| 532 | 'type': 'shared_library', |
| 533 | 'product_name': '<(content_shell_product_name) Framework', |
| 534 | 'mac_bundle': 1, |
| 535 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 536 | 'shell/app/English.lproj/HttpAuth.xib', |
| 537 | 'shell/app/English.lproj/MainMenu.xib', |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 538 | '<(PRODUCT_DIR)/content_shell.pak', |
| 539 | 'shell/app/framework-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 540 | ], |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 541 | 'mac_bundle_resources!': [ |
| 542 | 'shell/app/framework-Info.plist', |
| 543 | ], |
| 544 | 'xcode_settings': { |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 545 | # The framework is placed within the .app's Framework |
| 546 | # directory. DYLIB_INSTALL_NAME_BASE and |
| 547 | # LD_DYLIB_INSTALL_NAME affect -install_name. |
| 548 | 'DYLIB_INSTALL_NAME_BASE': |
| 549 | '@executable_path/../Frameworks', |
| 550 | # See /build/mac/copy_framework_unversioned.sh for |
| 551 | # information on LD_DYLIB_INSTALL_NAME. |
| 552 | 'LD_DYLIB_INSTALL_NAME': |
| 553 | '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)', |
| 554 | |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 555 | 'INFOPLIST_FILE': 'shell/app/framework-Info.plist', |
| 556 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 557 | 'dependencies': [ |
| 558 | 'content_shell_lib', |
| 559 | ], |
| 560 | 'include_dirs': [ |
| 561 | '..', |
| 562 | ], |
| 563 | 'sources': [ |
[email protected] | 4642f5b | 2013-07-03 21:43:31 | [diff] [blame] | 564 | 'shell/app/shell_content_main.cc', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 565 | 'shell/app/shell_content_main.h', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 566 | ], |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 567 | 'postbuilds': [ |
| 568 | { |
| 569 | # Modify the Info.plist as needed. The script explains why |
| 570 | # this is needed. This is also done in the chrome target. |
| 571 | # The framework needs the Breakpad keys if this feature is |
| 572 | # enabled. It does not need the Keystone keys; these always |
| 573 | # come from the outer application bundle. The framework |
| 574 | # doesn't currently use the SCM keys for anything, |
| 575 | # but this seems like a really good place to store them. |
| 576 | 'postbuild_name': 'Tweak Info.plist', |
| 577 | 'action': ['../build/mac/tweak_info_plist.py', |
| 578 | '--breakpad=1', |
| 579 | '--keystone=0', |
| 580 | '--scm=1', |
| 581 | '--version=<(content_shell_version)', |
| 582 | '--branding=<(content_shell_product_name)'], |
| 583 | }, |
| 584 | ], |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 585 | 'copies': [ |
| 586 | { |
| 587 | # Copy FFmpeg binaries for audio/video support. |
| 588 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 589 | 'files': [ |
| 590 | '<(PRODUCT_DIR)/ffmpegsumo.so', |
| 591 | ], |
| 592 | }, |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 593 | { |
| 594 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', |
| 595 | 'files': [ |
| 596 | '<(PRODUCT_DIR)/crash_inspector', |
| 597 | '<(PRODUCT_DIR)/crash_report_sender.app' |
| 598 | ], |
| 599 | }, |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 600 | ], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 601 | 'conditions': [ |
| 602 | ['enable_webrtc==1', { |
| 603 | 'variables': { |
| 604 | 'libpeer_target_type%': 'static_library', |
| 605 | }, |
| 606 | 'conditions': [ |
[email protected] | e4aa290b | 2013-05-01 18:54:19 | [diff] [blame] | 607 | ['libpeer_target_type!="static_library"', { |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 608 | 'copies': [{ |
| 609 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 610 | 'files': [ |
[email protected] | 62461b7 | 2013-05-02 12:27:12 | [diff] [blame] | 611 | '<(PRODUCT_DIR)/libpeerconnection.so', |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 612 | ], |
| 613 | }], |
| 614 | }], |
| 615 | ], |
| 616 | }], |
| 617 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 618 | }, # target content_shell_framework |
| 619 | { |
| 620 | 'target_name': 'content_shell_helper_app', |
| 621 | 'type': 'executable', |
| 622 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 623 | 'product_name': '<(content_shell_product_name) Helper', |
| 624 | 'mac_bundle': 1, |
| 625 | 'dependencies': [ |
| 626 | 'content_shell_framework', |
| 627 | ], |
| 628 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 629 | 'shell/app/shell_main.cc', |
| 630 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 631 | ], |
| 632 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 633 | # be necessary to list helper-Info.plist once, not the three times it |
| 634 | # is listed here. |
| 635 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 636 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 637 | ], |
| 638 | # TODO(mark): For now, don't put any resources into this app. Its |
| 639 | # resources directory will be a symbolic link to the browser app's |
| 640 | # resources directory. |
| 641 | 'mac_bundle_resources/': [ |
| 642 | ['exclude', '.*'], |
| 643 | ], |
| 644 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 645 | 'INFOPLIST_FILE': 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 646 | }, |
| 647 | 'postbuilds': [ |
| 648 | { |
| 649 | # The framework defines its load-time path |
| 650 | # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| 651 | # (chrome). A different relative path needs to be used in |
| 652 | # content_shell_helper_app. |
| 653 | 'postbuild_name': 'Fix Framework Link', |
| 654 | 'action': [ |
| 655 | 'install_name_tool', |
| 656 | '-change', |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 657 | '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
| 658 | '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 659 | '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 660 | ], |
| 661 | }, |
| 662 | { |
| 663 | # Modify the Info.plist as needed. The script explains why this |
| 664 | # is needed. This is also done in the chrome and chrome_dll |
[email protected] | bbf5244 | 2012-08-23 22:53:18 | [diff] [blame] | 665 | # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 |
| 666 | # are used because Breakpad, Keystone, and SCM keys are |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 667 | # never placed into the helper. |
| 668 | 'postbuild_name': 'Tweak Info.plist', |
| 669 | 'action': ['../build/mac/tweak_info_plist.py', |
| 670 | '--breakpad=0', |
| 671 | '--keystone=0', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 672 | '--scm=0', |
| 673 | '--version=<(content_shell_version)'], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 674 | }, |
| 675 | { |
| 676 | # Make sure there isn't any Objective-C in the helper app's |
| 677 | # executable. |
| 678 | 'postbuild_name': 'Verify No Objective-C', |
| 679 | 'action': [ |
| 680 | '../build/mac/verify_no_objc.sh', |
| 681 | ], |
| 682 | }, |
| 683 | ], |
[email protected] | ec40c38f | 2012-06-28 16:37:49 | [diff] [blame] | 684 | 'conditions': [ |
| 685 | ['component=="shared_library"', { |
| 686 | 'xcode_settings': { |
| 687 | 'LD_RUNPATH_SEARCH_PATHS': [ |
| 688 | # Get back from Content Shell.app/Contents/Frameworks/ |
| 689 | # Helper.app/Contents/MacOS |
| 690 | '@loader_path/../../../../../..', |
| 691 | ], |
| 692 | }, |
| 693 | }], |
| 694 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 695 | }, # target content_shell_helper_app |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 696 | ], |
| 697 | }], # OS=="mac" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 698 | ['OS=="android"', { |
| 699 | 'targets': [ |
| 700 | { |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 701 | # TODO(jrg): Update this action and other jni generators to only |
| 702 | # require specifying the java directory and generate the rest. |
| 703 | 'target_name': 'content_shell_jni_headers', |
| 704 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 705 | 'sources': [ |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 706 | 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java', |
[email protected] | eadcff0f | 2013-06-20 21:08:10 | [diff] [blame] | 707 | 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 708 | 'shell/android/java/src/org/chromium/content_shell/ShellManager.java', |
| 709 | 'shell/android/java/src/org/chromium/content_shell/Shell.java', |
| 710 | ], |
[email protected] | 029a771 | 2013-01-15 08:11:42 | [diff] [blame] | 711 | 'direct_dependent_settings': { |
| 712 | 'include_dirs': [ |
| 713 | '<(SHARED_INTERMEDIATE_DIR)/content/shell', |
| 714 | ], |
| 715 | }, |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 716 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 717 | 'jni_gen_package': 'content/shell', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 718 | }, |
| 719 | 'includes': [ '../build/jni_generator.gypi' ], |
| 720 | }, |
| 721 | { |
[email protected] | c110158 | 2012-06-25 17:07:18 | [diff] [blame] | 722 | 'target_name': 'libcontent_shell_content_view', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 723 | 'type': 'shared_library', |
| 724 | 'dependencies': [ |
| 725 | 'content_shell_jni_headers', |
| 726 | 'content_shell_lib', |
| 727 | 'content_shell_pak', |
| 728 | # Skia is necessary to ensure the dependencies needed by |
| 729 | # WebContents are included. |
| 730 | '../skia/skia.gyp:skia', |
| 731 | '<(DEPTH)/media/media.gyp:player_android', |
| 732 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 733 | 'sources': [ |
| 734 | 'shell/android/shell_library_loader.cc', |
| 735 | 'shell/android/shell_library_loader.h', |
[email protected] | f83a4739 | 2012-07-12 22:15:04 | [diff] [blame] | 736 | ], |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 737 | 'conditions': [ |
[email protected] | d999c3cb | 2013-03-12 10:22:36 | [diff] [blame] | 738 | ['android_webview_build==1', { |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 739 | 'ldflags': [ |
| 740 | '-lgabi++', # For rtti |
| 741 | ], |
| 742 | }], |
| 743 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 744 | }, |
| 745 | { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 746 | 'target_name': 'content_shell_java', |
| 747 | 'type': 'none', |
| 748 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 749 | 'content.gyp:content_java', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 750 | ], |
| 751 | 'variables': { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 752 | 'java_in_dir': '../content/shell/android/java', |
| 753 | 'has_java_resources': 1, |
| 754 | 'R_package': 'org.chromium.content_shell', |
| 755 | 'R_package_relpath': 'org/chromium/content_shell', |
| 756 | }, |
| 757 | 'includes': [ '../build/java.gypi' ], |
| 758 | }, |
| 759 | { |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 760 | # content_shell_apk creates a .jar as a side effect. Any java targets |
| 761 | # that need that .jar in their classpath should depend on this target, |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 762 | # content_shell_apk_java. Dependents of content_shell_apk receive its |
| 763 | # jar path in the variable 'apk_output_jar_path'. This target should |
| 764 | # only be used by targets which instrument content_shell_apk. |
| 765 | 'target_name': 'content_shell_apk_java', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 766 | 'type': 'none', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 767 | 'dependencies': [ |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 768 | 'content_shell_apk', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 769 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 770 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 771 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 772 | { |
| 773 | 'target_name': 'content_shell_apk', |
| 774 | 'type': 'none', |
| 775 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 776 | 'content.gyp:content_java', |
[email protected] | c48fece0 | 2013-06-19 12:01:42 | [diff] [blame] | 777 | 'content_java_test_support', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 778 | 'content_shell_java', |
| 779 | 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 780 | '../base/base.gyp:base_java', |
| 781 | '../media/media.gyp:media_java', |
| 782 | '../net/net.gyp:net_java', |
[email protected] | 4e38405 | 2013-08-14 20:46:30 | [diff] [blame] | 783 | '../tools/android/forwarder/forwarder.gyp:forwarder', |
[email protected] | f450287d | 2013-11-15 17:52:54 | [diff] [blame] | 784 | '../ui/android/ui_android.gyp:ui_java', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 785 | ], |
| 786 | 'variables': { |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 787 | 'apk_name': 'ContentShell', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 788 | 'manifest_package_name': 'org.chromium.content_shell_apk', |
| 789 | 'java_in_dir': 'shell/android/shell_apk', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 790 | 'resource_dir': 'shell/android/shell_apk/res', |
[email protected] | e486525 | 2013-04-04 09:15:59 | [diff] [blame] | 791 | 'native_lib_target': 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 792 | 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'], |
[email protected] | 0437c50 | 2013-11-28 05:17:33 | [diff] [blame] | 793 | 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 794 | }, |
[email protected] | 5b0095b7 | 2013-08-01 17:44:22 | [diff] [blame] | 795 | 'conditions': [ |
| 796 | ['android_webview_build==0', { |
| 797 | 'dependencies': [ |
| 798 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
| 799 | ], |
| 800 | }], |
| 801 | ], |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 802 | 'includes': [ '../build/java_apk.gypi' ], |
| 803 | }, |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 804 | ], |
| 805 | }], # OS=="android" |
[email protected] | 369205f | 2013-10-29 04:35:05 | [diff] [blame] | 806 | ['OS=="win"', { |
| 807 | 'targets': [ |
| 808 | { |
| 809 | 'target_name': 'content_shell_crash_service', |
| 810 | 'type': 'executable', |
| 811 | 'dependencies': [ |
| 812 | '../base/base.gyp:base', |
| 813 | '../components/components.gyp:breakpad_crash_service', |
| 814 | ], |
| 815 | 'include_dirs': [ |
| 816 | '..', |
| 817 | ], |
| 818 | 'sources': [ |
| 819 | 'shell/tools/content_shell_crash_service.cc', |
| 820 | ], |
| 821 | 'msvs_settings': { |
| 822 | 'VCLinkerTool': { |
| 823 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 824 | }, |
| 825 | }, |
| 826 | }, |
| 827 | ], |
| 828 | }], # OS=="win" |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 829 | ['OS=="win" and fastbuild==0 and target_arch=="ia32"', { |
| 830 | 'variables': { |
| 831 | 'dest_dir': '<(PRODUCT_DIR)/syzygy', |
| 832 | }, |
| 833 | 'targets': [ |
| 834 | { |
| 835 | 'target_name': 'content_shell_syzyasan', |
| 836 | 'type': 'none', |
| 837 | 'sources' : [], |
| 838 | # Instrument content_shell with SyzyAsan. |
| 839 | 'actions': [ |
| 840 | { |
| 841 | 'action_name': 'Instrument content_shell with SyzyAsan', |
| 842 | 'msvs_cygwin_shell': 0, |
| 843 | 'inputs': [ |
| 844 | '<(PRODUCT_DIR)/content_shell.exe', |
| 845 | ], |
| 846 | 'outputs': [ |
| 847 | '<(dest_dir)/content_shell.exe', |
| 848 | '<(dest_dir)/content_shell.exe.pdb', |
| 849 | ], |
| 850 | 'action': [ |
| 851 | 'python', |
| 852 | '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py', |
| 853 | '--mode', 'asan', |
| 854 | '--input_executable', '<(PRODUCT_DIR)/content_shell.exe', |
| 855 | '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb', |
| 856 | '--destination_dir', '<(dest_dir)', |
| 857 | ], |
| 858 | }, |
| 859 | ], |
| 860 | }, |
| 861 | ], |
| 862 | }], # OS=="win" and fastbuild==0 and target_arch=="ia32" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 863 | ] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 864 | } |