[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] | 03ff5e5 | 2011-09-30 00:28:14 | [diff] [blame] | 24 | 'defines!': ['CONTENT_IMPLEMENTATION'], |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 25 | 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 26 | 'variables': { |
| 27 | 'chromium_code': 1, |
| 28 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 29 | 'dependencies': [ |
[email protected] | a20f6e8 | 2013-07-01 13:38:41 | [diff] [blame] | 30 | 'content.gyp:content_app', |
| 31 | 'content.gyp:content_browser', |
| 32 | 'content.gyp:content_common', |
| 33 | 'content.gyp:content_gpu', |
| 34 | 'content.gyp:content_plugin', |
| 35 | 'content.gyp:content_ppapi_plugin', |
| 36 | 'content.gyp:content_renderer', |
| 37 | 'content.gyp:content_utility', |
| 38 | 'content.gyp:content_worker', |
[email protected] | 0faa0a2b | 2011-11-15 18:03:14 | [diff] [blame] | 39 | 'content_resources.gyp:content_resources', |
[email protected] | a20f6e8 | 2013-07-01 13:38:41 | [diff] [blame] | 40 | 'content_shell_resources', |
| 41 | 'test_support_content', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 42 | '../base/base.gyp:base', |
| 43 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[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] | 4ded0abe | 2013-06-26 17:51:48 | [diff] [blame] | 49 | '../third_party/WebKit/public/all.gyp:blink_testing', |
[email protected] | 8350f16f | 2012-11-30 00:25:32 | [diff] [blame] | 50 | '../ui/gl/gl.gyp:gl', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 51 | '../ui/ui.gyp:ui', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 52 | '../url/url.gyp:url_lib', |
[email protected] | 12bc28fcb | 2011-09-21 15:53:50 | [diff] [blame] | 53 | '../v8/tools/gyp/v8.gyp:v8', |
[email protected] | 024b2f2 | 2013-01-17 13:56:10 | [diff] [blame] | 54 | '../webkit/support/webkit_support.gyp:webkit_resources', |
[email protected] | 0104871 | 2012-07-09 23:26:27 | [diff] [blame] | 55 | '../webkit/support/webkit_support.gyp:webkit_support', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 56 | ], |
| 57 | 'include_dirs': [ |
| 58 | '..', |
| 59 | ], |
| 60 | 'sources': [ |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 61 | 'shell/android/shell_jni_registrar.cc', |
| 62 | 'shell/android/shell_jni_registrar.h', |
| 63 | 'shell/android/shell_manager.cc', |
| 64 | 'shell/android/shell_manager.h', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 65 | 'shell/app/shell_main_delegate.cc', |
| 66 | 'shell/app/shell_main_delegate.h', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame^] | 67 | 'shell/app/webkit_test_platform_support.h', |
| 68 | 'shell/app/webkit_test_platform_support_android.cc', |
| 69 | 'shell/app/webkit_test_platform_support_linux.cc', |
| 70 | 'shell/app/webkit_test_platform_support_mac.mm', |
| 71 | 'shell/app/webkit_test_platform_support_win.cc', |
[email protected] | b7c504c | 2013-05-07 14:42:12 | [diff] [blame] | 72 | 'shell/common/shell_content_client.cc', |
| 73 | 'shell/common/shell_content_client.h', |
| 74 | 'shell/common/shell_messages.cc', |
| 75 | 'shell/common/shell_messages.h', |
| 76 | 'shell/common/shell_switches.cc', |
| 77 | 'shell/common/shell_switches.h', |
| 78 | 'shell/common/shell_test_configuration.cc', |
| 79 | 'shell/common/shell_test_configuration.h', |
| 80 | 'shell/common/webkit_test_helpers.cc', |
| 81 | 'shell/common/webkit_test_helpers.h', |
[email protected] | 6cfccd1 | 2012-06-28 12:14:05 | [diff] [blame] | 82 | 'shell/geolocation/shell_access_token_store.cc', |
| 83 | 'shell/geolocation/shell_access_token_store.h', |
[email protected] | 2a2caa0 | 2013-01-22 20:50:36 | [diff] [blame] | 84 | 'shell/minimal_ash.cc', |
| 85 | 'shell/minimal_ash.h', |
[email protected] | 1ca4fac | 2013-04-08 14:15:11 | [diff] [blame] | 86 | 'shell/notify_done_forwarder.cc', |
| 87 | 'shell/notify_done_forwarder.h', |
[email protected] | e1aff17 | 2012-03-22 22:41:17 | [diff] [blame] | 88 | 'shell/paths_mac.h', |
| 89 | 'shell/paths_mac.mm', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 90 | 'shell/renderer/shell_content_renderer_client.cc', |
| 91 | 'shell/renderer/shell_content_renderer_client.h', |
[email protected] | 99902de | 2013-06-20 23:04:09 | [diff] [blame] | 92 | 'shell/renderer/shell_media_stream_client.cc', |
| 93 | 'shell/renderer/shell_media_stream_client.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 94 | 'shell/renderer/shell_render_process_observer.cc', |
| 95 | 'shell/renderer/shell_render_process_observer.h', |
| 96 | 'shell/renderer/webkit_test_runner.cc', |
| 97 | 'shell/renderer/webkit_test_runner.h', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 98 | 'shell/shell.cc', |
| 99 | 'shell/shell.h', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 100 | 'shell/shell_android.cc', |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 101 | 'shell/shell_aura.cc', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 102 | 'shell/shell_gtk.cc', |
| 103 | 'shell/shell_mac.mm', |
| 104 | 'shell/shell_win.cc', |
[email protected] | c4e78d7 | 2012-03-24 22:55:41 | [diff] [blame] | 105 | 'shell/shell_application_mac.h', |
| 106 | 'shell/shell_application_mac.mm', |
[email protected] | b0f146f | 2011-09-15 22:14:25 | [diff] [blame] | 107 | 'shell/shell_browser_context.cc', |
| 108 | 'shell/shell_browser_context.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 109 | 'shell/shell_browser_main.cc', |
| 110 | 'shell/shell_browser_main.h', |
[email protected] | 147f809 | 2012-03-21 11:47:45 | [diff] [blame] | 111 | 'shell/shell_browser_main_parts.cc', |
| 112 | 'shell/shell_browser_main_parts.h', |
| 113 | 'shell/shell_browser_main_parts_mac.mm', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 114 | 'shell/shell_content_browser_client.cc', |
| 115 | 'shell/shell_content_browser_client.h', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 116 | 'shell/shell_devtools_delegate.cc', |
| 117 | 'shell/shell_devtools_delegate.h', |
[email protected] | 0773e0c | 2013-01-25 15:57:57 | [diff] [blame] | 118 | 'shell/shell_devtools_frontend.cc', |
| 119 | 'shell/shell_devtools_frontend.h', |
[email protected] | 98d6f15 | 2011-09-29 19:35:51 | [diff] [blame] | 120 | 'shell/shell_download_manager_delegate.cc', |
| 121 | 'shell/shell_download_manager_delegate.h', |
[email protected] | 71a88bb | 2013-02-01 22:05:15 | [diff] [blame] | 122 | 'shell/shell_javascript_dialog_manager.cc', |
| 123 | 'shell/shell_javascript_dialog_manager.h', |
[email protected] | fc4f4dd4 | 2012-07-30 20:52:48 | [diff] [blame] | 124 | 'shell/shell_javascript_dialog_gtk.cc', |
[email protected] | f221002 | 2012-03-29 00:36:08 | [diff] [blame] | 125 | 'shell/shell_javascript_dialog_mac.mm', |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 126 | 'shell/shell_javascript_dialog_win.cc', |
[email protected] | f221002 | 2012-03-29 00:36:08 | [diff] [blame] | 127 | 'shell/shell_javascript_dialog.h', |
[email protected] | eadcff0f | 2013-06-20 21:08:10 | [diff] [blame] | 128 | 'shell/shell_layout_tests_android.cc', |
| 129 | 'shell/shell_layout_tests_android.h', |
[email protected] | e6fbecf2 | 2012-08-01 10:11:03 | [diff] [blame] | 130 | 'shell/shell_login_dialog_gtk.cc', |
[email protected] | e3503ac | 2012-04-05 15:01:36 | [diff] [blame] | 131 | 'shell/shell_login_dialog_mac.mm', |
| 132 | 'shell/shell_login_dialog.cc', |
| 133 | 'shell/shell_login_dialog.h', |
[email protected] | 5a3c3f3 | 2013-01-23 12:23:39 | [diff] [blame] | 134 | 'shell/shell_message_filter.cc', |
| 135 | 'shell/shell_message_filter.h', |
[email protected] | 33bc283 | 2012-03-29 08:18:17 | [diff] [blame] | 136 | 'shell/shell_network_delegate.cc', |
| 137 | 'shell/shell_network_delegate.h', |
[email protected] | 7886b62 | 2013-05-27 09:24:09 | [diff] [blame] | 138 | 'shell/shell_plugin_service_filter.cc', |
| 139 | 'shell/shell_plugin_service_filter.h', |
[email protected] | fc41b21 | 2013-03-25 16:04:23 | [diff] [blame] | 140 | 'shell/shell_quota_permission_context.cc', |
| 141 | 'shell/shell_quota_permission_context.h', |
[email protected] | e3503ac | 2012-04-05 15:01:36 | [diff] [blame] | 142 | 'shell/shell_resource_dispatcher_host_delegate.cc', |
| 143 | 'shell/shell_resource_dispatcher_host_delegate.h', |
[email protected] | c5f1e33 | 2011-09-27 01:08:03 | [diff] [blame] | 144 | 'shell/shell_url_request_context_getter.cc', |
| 145 | 'shell/shell_url_request_context_getter.h', |
[email protected] | 0d978ef | 2013-02-27 15:32:54 | [diff] [blame] | 146 | 'shell/shell_web_contents_view_delegate_android.cc', |
[email protected] | 4c2aa39 | 2012-09-03 01:29:42 | [diff] [blame] | 147 | 'shell/shell_web_contents_view_delegate_creator.h', |
| 148 | 'shell/shell_web_contents_view_delegate_gtk.cc', |
[email protected] | dcbe5fe3 | 2012-09-10 10:18:32 | [diff] [blame] | 149 | 'shell/shell_web_contents_view_delegate_mac.mm', |
[email protected] | 4c9bf348 | 2012-09-12 14:35:35 | [diff] [blame] | 150 | 'shell/shell_web_contents_view_delegate_win.cc', |
[email protected] | 4c2aa39 | 2012-09-03 01:29:42 | [diff] [blame] | 151 | 'shell/shell_web_contents_view_delegate.h', |
[email protected] | 8dafad3 | 2012-12-10 14:11:45 | [diff] [blame] | 152 | 'shell/webkit_test_controller.cc', |
| 153 | 'shell/webkit_test_controller.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 154 | ], |
| 155 | 'msvs_settings': { |
| 156 | 'VCLinkerTool': { |
| 157 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 158 | }, |
| 159 | }, |
| 160 | 'conditions': [ |
| 161 | ['OS=="win" and win_use_allocator_shim==1', { |
| 162 | 'dependencies': [ |
| 163 | '../base/allocator/allocator.gyp:allocator', |
| 164 | ], |
| 165 | }], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 166 | ['OS=="win"', { |
| 167 | 'resource_include_dirs': [ |
| 168 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 169 | ], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 170 | 'dependencies': [ |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 171 | '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
| 172 | ], |
| 173 | 'configurations': { |
| 174 | 'Debug_Base': { |
| 175 | 'msvs_settings': { |
| 176 | 'VCLinkerTool': { |
| 177 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 178 | }, |
| 179 | }, |
| 180 | }, |
| 181 | }, |
[email protected] | 3bed530 | 2013-02-15 19:31:41 | [diff] [blame] | 182 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 183 | 'msvs_disabled_warnings': [ 4267, ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 184 | }], # OS=="win" |
[email protected] | 6eb6bb6 | 2012-11-10 06:30:59 | [diff] [blame] | 185 | ['OS=="linux"', { |
| 186 | 'dependencies': [ |
| 187 | '../build/linux/system.gyp:fontconfig', |
| 188 | ], |
| 189 | }], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 190 | ['OS=="android"', { |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 191 | 'dependencies': [ |
| 192 | 'content_shell_jni_headers', |
| 193 | ], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 194 | }, { # else: OS!="android" |
| 195 | 'dependencies': [ |
| 196 | # This dependency is for running DRT against the content shell, and |
| 197 | # this combination is not yet supported on Android. |
| 198 | '../webkit/support/webkit_support.gyp:webkit_support', |
| 199 | ], |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 200 | }], # OS=="android" |
[email protected] | 3c8fe548 | 2013-05-22 15:17:03 | [diff] [blame] | 201 | ['(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] | 202 | 'dependencies': [ |
| 203 | # This is needed by content/app/content_main_runner.cc |
| 204 | '../base/allocator/allocator.gyp:allocator', |
| 205 | ], |
| 206 | }], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 207 | ['use_aura==1', { |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 208 | 'dependencies': [ |
| 209 | '../ui/aura/aura.gyp:aura', |
| 210 | '../ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | 9e7fca80 | 2012-09-01 18:53:05 | [diff] [blame] | 211 | '../ui/views/controls/webview/webview.gyp:webview', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 212 | '../ui/views/views.gyp:views', |
[email protected] | 0aa7693 | 2012-10-14 19:11:10 | [diff] [blame] | 213 | '../ui/views/views.gyp:views_test_support', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 214 | '../ui/ui.gyp:ui_resources', |
| 215 | ], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 216 | 'sources/': [ |
| 217 | ['exclude', 'shell/shell_gtk.cc'], |
| 218 | ['exclude', 'shell/shell_win.cc'], |
| 219 | ], |
[email protected] | 96b80b47 | 2012-07-03 19:41:56 | [diff] [blame] | 220 | }], # use_aura==1 |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 221 | ['chromeos==1', { |
| 222 | 'dependencies': [ |
| 223 | '../chromeos/chromeos.gyp:chromeos', |
| 224 | ], |
| 225 | }], # chromeos==1 |
[email protected] | 2d2f60d | 2013-05-14 04:42:01 | [diff] [blame] | 226 | ['use_ash==1', { |
| 227 | 'dependencies': [ |
| 228 | '../ash/ash.gyp:ash', |
| 229 | ], |
| 230 | }], |
[email protected] | 929246a | 2013-02-28 13:55:20 | [diff] [blame] | 231 | ['use_custom_freetype==1', { |
| 232 | 'dependencies': [ |
| 233 | '../third_party/freetype2/freetype2.gyp:freetype2', |
| 234 | ], |
| 235 | }], |
[email protected] | dfb936019 | 2013-05-27 09:42:34 | [diff] [blame] | 236 | ['enable_plugins==0', { |
| 237 | 'sources/': [ |
| 238 | ['exclude', 'shell/shell_plugin_service_filter.cc'], |
| 239 | ['exclude', 'shell/shell_plugin_service_filter.h'], |
| 240 | ], |
| 241 | }] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 242 | ], |
| 243 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 244 | { |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 245 | 'target_name': 'content_shell_resources', |
| 246 | 'type': 'none', |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 247 | 'dependencies': [ |
| 248 | 'generate_content_shell_resources', |
| 249 | ], |
| 250 | 'variables': { |
| 251 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 252 | }, |
| 253 | 'includes': [ '../build/grit_target.gypi' ], |
| 254 | 'copies': [ |
| 255 | { |
| 256 | 'destination': '<(PRODUCT_DIR)', |
| 257 | 'files': [ |
| 258 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' |
| 259 | ], |
| 260 | }, |
| 261 | ], |
[email protected] | 4cb792f4 | 2012-03-24 03:12:42 | [diff] [blame] | 262 | }, |
| 263 | { |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 264 | 'target_name': 'generate_content_shell_resources', |
| 265 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 266 | 'variables': { |
| 267 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 268 | }, |
| 269 | 'actions': [ |
| 270 | { |
| 271 | 'action_name': 'content_shell_resources', |
| 272 | 'variables': { |
| 273 | 'grit_grd_file': 'shell/shell_resources.grd', |
| 274 | }, |
| 275 | 'includes': [ '../build/grit_action.gypi' ], |
| 276 | }, |
| 277 | ], |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 278 | }, |
| 279 | { |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 280 | # We build a minimal set of resources so WebKit in content_shell has |
| 281 | # access to necessary resources. |
| 282 | 'target_name': 'content_shell_pak', |
| 283 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 284 | 'dependencies': [ |
[email protected] | 7001915 | 2012-12-19 11:44:19 | [diff] [blame] | 285 | 'browser/devtools/devtools_resources.gyp:devtools_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 286 | 'content_resources.gyp:content_resources', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 287 | 'content_shell_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 288 | '<(DEPTH)/net/net.gyp:net_resources', |
| 289 | '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | 6c3e649 | 2012-02-27 17:07:45 | [diff] [blame] | 290 | '<(DEPTH)/ui/ui.gyp:ui_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 291 | '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', |
| 292 | '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 293 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 294 | 'variables': { |
| 295 | 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', |
| 296 | }, |
| 297 | 'actions': [ |
| 298 | { |
| 299 | 'action_name': 'repack_content_shell_pack', |
| 300 | 'variables': { |
| 301 | 'pak_inputs': [ |
| 302 | '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 303 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 304 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 305 | '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak', |
[email protected] | a52c731 | 2012-07-24 22:45:57 | [diff] [blame] | 306 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak', |
[email protected] | e1c26ae | 2013-01-31 18:13:18 | [diff] [blame] | 307 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 308 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 309 | '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 310 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak', |
[email protected] | 30c8f54 | 2012-09-01 01:02:29 | [diff] [blame] | 311 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak', |
[email protected] | af551a6 | 2012-07-31 16:44:03 | [diff] [blame] | 312 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 313 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 314 | }, |
| 315 | 'inputs': [ |
| 316 | '<(repack_path)', |
| 317 | '<@(pak_inputs)', |
| 318 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 319 | 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 320 | '<@(pak_inputs)'], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 321 | 'conditions': [ |
| 322 | ['OS!="android"', { |
| 323 | 'outputs': [ |
| 324 | '<(PRODUCT_DIR)/content_shell.pak', |
| 325 | ], |
| 326 | }, { |
| 327 | 'outputs': [ |
| 328 | '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 329 | ], |
| 330 | }], |
| 331 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 332 | }, |
| 333 | ], |
| 334 | }, |
| 335 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 336 | 'target_name': 'content_shell', |
| 337 | 'type': 'executable', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 338 | 'mac_bundle': 1, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 339 | 'defines!': ['CONTENT_IMPLEMENTATION'], |
| 340 | 'variables': { |
| 341 | 'chromium_code': 1, |
| 342 | }, |
| 343 | 'dependencies': [ |
| 344 | 'content_shell_lib', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 345 | 'content_shell_pak', |
[email protected] | bb5d2d9 | 2012-10-15 07:45:42 | [diff] [blame] | 346 | '../third_party/mesa/mesa.gyp:osmesa', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 347 | ], |
| 348 | 'include_dirs': [ |
| 349 | '..', |
| 350 | ], |
| 351 | 'sources': [ |
[email protected] | 711f428e | 2012-06-22 02:18:23 | [diff] [blame] | 352 | 'app/startup_helper_win.cc', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 353 | 'shell/app/shell_main.cc', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 354 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 355 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 356 | 'shell/app/app.icns', |
| 357 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 358 | ], |
| 359 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 360 | # be necessary to list app-Info.plist once, not the three times it is |
| 361 | # listed here. |
| 362 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 363 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 364 | ], |
| 365 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 366 | 'INFOPLIST_FILE': 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 367 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 368 | 'msvs_settings': { |
| 369 | 'VCLinkerTool': { |
| 370 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 371 | }, |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 372 | 'VCManifestTool': { |
| 373 | 'AdditionalManifestFiles': 'shell/app/shell.exe.manifest', |
| 374 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 375 | }, |
| 376 | 'conditions': [ |
| 377 | ['OS=="win" and win_use_allocator_shim==1', { |
| 378 | 'dependencies': [ |
| 379 | '../base/allocator/allocator.gyp:allocator', |
| 380 | ], |
| 381 | }], |
| 382 | ['OS=="win"', { |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 383 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 384 | 'shell/app/shell.rc', |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 385 | ], |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 386 | 'configurations': { |
| 387 | 'Debug_Base': { |
| 388 | 'msvs_settings': { |
| 389 | 'VCLinkerTool': { |
| 390 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 391 | }, |
| 392 | }, |
| 393 | }, |
| 394 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 395 | }], # OS=="win" |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 396 | ['OS == "win" or toolkit_uses_gtk == 1', { |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 397 | 'dependencies': [ |
| 398 | '../sandbox/sandbox.gyp:sandbox', |
| 399 | ], |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 400 | }], # OS=="win" or toolkit_uses_gtk == 1 |
[email protected] | 39899089 | 2012-01-20 03:25:58 | [diff] [blame] | 401 | ['toolkit_uses_gtk == 1', { |
| 402 | 'dependencies': [ |
| 403 | '<(DEPTH)/build/linux/system.gyp:gtk', |
| 404 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 405 | }], # toolkit_uses_gtk |
| 406 | ['OS=="mac"', { |
| 407 | 'product_name': '<(content_shell_product_name)', |
| 408 | 'dependencies!': [ |
| 409 | 'content_shell_lib', |
| 410 | ], |
| 411 | 'dependencies': [ |
| 412 | 'content_shell_framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 413 | 'content_shell_helper_app', |
| 414 | ], |
| 415 | 'copies': [ |
| 416 | { |
| 417 | 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks', |
| 418 | 'files': [ |
| 419 | '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app', |
| 420 | ], |
| 421 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 422 | ], |
| 423 | 'postbuilds': [ |
| 424 | { |
| 425 | 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework', |
| 426 | 'action': [ |
| 427 | '../build/mac/copy_framework_unversioned.sh', |
| 428 | '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework', |
| 429 | '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
| 430 | ], |
| 431 | }, |
| 432 | { |
| 433 | 'postbuild_name': 'Fix Framework Link', |
| 434 | 'action': [ |
| 435 | 'install_name_tool', |
| 436 | '-change', |
| 437 | '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework', |
| 438 | '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
| 439 | '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 440 | ], |
| 441 | }, |
| 442 | { |
| 443 | # Modify the Info.plist as needed. |
| 444 | 'postbuild_name': 'Tweak Info.plist', |
| 445 | 'action': ['../build/mac/tweak_info_plist.py', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 446 | '--scm=1', |
| 447 | '--version=<(content_shell_version)'], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 448 | }, |
| 449 | { |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 450 | # This postbuid step is responsible for creating the following |
| 451 | # helpers: |
| 452 | # |
| 453 | # Content Shell Helper EH.app and Content Shell Helper NP.app are |
| 454 | # created from Content Shell Helper.app. |
| 455 | # |
| 456 | # The EH helper is marked for an executable heap. The NP helper |
| 457 | # is marked for no PIE (ASLR). |
| 458 | 'postbuild_name': 'Make More Helpers', |
| 459 | 'action': [ |
| 460 | '../build/mac/make_more_helpers.sh', |
| 461 | 'Frameworks', |
| 462 | '<(content_shell_product_name)', |
| 463 | ], |
| 464 | }, |
| 465 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 466 | # Make sure there isn't any Objective-C in the shell's |
| 467 | # executable. |
| 468 | 'postbuild_name': 'Verify No Objective-C', |
| 469 | 'action': [ |
| 470 | '../build/mac/verify_no_objc.sh', |
| 471 | ], |
| 472 | }, |
| 473 | ], |
| 474 | }], # OS=="mac" |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 475 | ], |
| 476 | }, |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 477 | { |
| 478 | 'target_name': 'content_shell_builder', |
| 479 | 'type': 'none', |
| 480 | 'dependencies': [ |
| 481 | 'content_shell', |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 482 | ], |
| 483 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 484 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 485 | 'conditions': [ |
| 486 | ['OS=="mac"', { |
| 487 | 'targets': [ |
| 488 | { |
| 489 | 'target_name': 'content_shell_framework', |
| 490 | 'type': 'shared_library', |
| 491 | 'product_name': '<(content_shell_product_name) Framework', |
| 492 | 'mac_bundle': 1, |
| 493 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 494 | 'shell/app/English.lproj/HttpAuth.xib', |
| 495 | 'shell/app/English.lproj/MainMenu.xib', |
[email protected] | 4cb792f4 | 2012-03-24 03:12:42 | [diff] [blame] | 496 | '<(PRODUCT_DIR)/content_shell.pak' |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 497 | ], |
| 498 | 'dependencies': [ |
| 499 | 'content_shell_lib', |
| 500 | ], |
| 501 | 'include_dirs': [ |
| 502 | '..', |
| 503 | ], |
| 504 | 'sources': [ |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame^] | 505 | 'shell/app/shell_content_main.cc', |
| 506 | 'shell/app/shell_content_main.h', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 507 | ], |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 508 | 'copies': [ |
| 509 | { |
| 510 | # Copy FFmpeg binaries for audio/video support. |
| 511 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 512 | 'files': [ |
| 513 | '<(PRODUCT_DIR)/ffmpegsumo.so', |
| 514 | ], |
| 515 | }, |
| 516 | ], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 517 | 'conditions': [ |
| 518 | ['enable_webrtc==1', { |
| 519 | 'variables': { |
| 520 | 'libpeer_target_type%': 'static_library', |
| 521 | }, |
| 522 | 'conditions': [ |
[email protected] | e4aa290b | 2013-05-01 18:54:19 | [diff] [blame] | 523 | ['libpeer_target_type!="static_library"', { |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 524 | 'copies': [{ |
| 525 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 526 | 'files': [ |
[email protected] | 62461b7 | 2013-05-02 12:27:12 | [diff] [blame] | 527 | '<(PRODUCT_DIR)/libpeerconnection.so', |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 528 | ], |
| 529 | }], |
| 530 | }], |
| 531 | ], |
| 532 | }], |
| 533 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 534 | }, # target content_shell_framework |
| 535 | { |
| 536 | 'target_name': 'content_shell_helper_app', |
| 537 | 'type': 'executable', |
| 538 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 539 | 'product_name': '<(content_shell_product_name) Helper', |
| 540 | 'mac_bundle': 1, |
| 541 | 'dependencies': [ |
| 542 | 'content_shell_framework', |
| 543 | ], |
| 544 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 545 | 'shell/app/shell_main.cc', |
| 546 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 547 | ], |
| 548 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 549 | # be necessary to list helper-Info.plist once, not the three times it |
| 550 | # is listed here. |
| 551 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 552 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 553 | ], |
| 554 | # TODO(mark): For now, don't put any resources into this app. Its |
| 555 | # resources directory will be a symbolic link to the browser app's |
| 556 | # resources directory. |
| 557 | 'mac_bundle_resources/': [ |
| 558 | ['exclude', '.*'], |
| 559 | ], |
| 560 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 561 | 'INFOPLIST_FILE': 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 562 | }, |
| 563 | 'postbuilds': [ |
| 564 | { |
| 565 | # The framework defines its load-time path |
| 566 | # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| 567 | # (chrome). A different relative path needs to be used in |
| 568 | # content_shell_helper_app. |
| 569 | 'postbuild_name': 'Fix Framework Link', |
| 570 | 'action': [ |
| 571 | 'install_name_tool', |
| 572 | '-change', |
| 573 | '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework', |
| 574 | '@executable_path/../../../../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
| 575 | '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 576 | ], |
| 577 | }, |
| 578 | { |
| 579 | # Modify the Info.plist as needed. The script explains why this |
| 580 | # is needed. This is also done in the chrome and chrome_dll |
[email protected] | bbf5244 | 2012-08-23 22:53:18 | [diff] [blame] | 581 | # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 |
| 582 | # are used because Breakpad, Keystone, and SCM keys are |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 583 | # never placed into the helper. |
| 584 | 'postbuild_name': 'Tweak Info.plist', |
| 585 | 'action': ['../build/mac/tweak_info_plist.py', |
| 586 | '--breakpad=0', |
| 587 | '--keystone=0', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 588 | '--scm=0', |
| 589 | '--version=<(content_shell_version)'], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 590 | }, |
| 591 | { |
| 592 | # Make sure there isn't any Objective-C in the helper app's |
| 593 | # executable. |
| 594 | 'postbuild_name': 'Verify No Objective-C', |
| 595 | 'action': [ |
| 596 | '../build/mac/verify_no_objc.sh', |
| 597 | ], |
| 598 | }, |
| 599 | ], |
[email protected] | ec40c38f | 2012-06-28 16:37:49 | [diff] [blame] | 600 | 'conditions': [ |
| 601 | ['component=="shared_library"', { |
| 602 | 'xcode_settings': { |
| 603 | 'LD_RUNPATH_SEARCH_PATHS': [ |
| 604 | # Get back from Content Shell.app/Contents/Frameworks/ |
| 605 | # Helper.app/Contents/MacOS |
| 606 | '@loader_path/../../../../../..', |
| 607 | ], |
| 608 | }, |
| 609 | }], |
| 610 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 611 | }, # target content_shell_helper_app |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 612 | ], |
| 613 | }], # OS=="mac" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 614 | ['OS=="android"', { |
| 615 | 'targets': [ |
| 616 | { |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 617 | # TODO(jrg): Update this action and other jni generators to only |
| 618 | # require specifying the java directory and generate the rest. |
| 619 | 'target_name': 'content_shell_jni_headers', |
| 620 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 621 | 'sources': [ |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 622 | 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java', |
[email protected] | eadcff0f | 2013-06-20 21:08:10 | [diff] [blame] | 623 | 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 624 | 'shell/android/java/src/org/chromium/content_shell/ShellManager.java', |
| 625 | 'shell/android/java/src/org/chromium/content_shell/Shell.java', |
| 626 | ], |
[email protected] | 029a771 | 2013-01-15 08:11:42 | [diff] [blame] | 627 | 'direct_dependent_settings': { |
| 628 | 'include_dirs': [ |
| 629 | '<(SHARED_INTERMEDIATE_DIR)/content/shell', |
| 630 | ], |
| 631 | }, |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 632 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 633 | 'jni_gen_package': 'content/shell', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 634 | }, |
| 635 | 'includes': [ '../build/jni_generator.gypi' ], |
| 636 | }, |
| 637 | { |
[email protected] | c110158 | 2012-06-25 17:07:18 | [diff] [blame] | 638 | 'target_name': 'libcontent_shell_content_view', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 639 | 'type': 'shared_library', |
| 640 | 'dependencies': [ |
| 641 | 'content_shell_jni_headers', |
| 642 | 'content_shell_lib', |
| 643 | 'content_shell_pak', |
| 644 | # Skia is necessary to ensure the dependencies needed by |
| 645 | # WebContents are included. |
| 646 | '../skia/skia.gyp:skia', |
| 647 | '<(DEPTH)/media/media.gyp:player_android', |
| 648 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 649 | 'sources': [ |
| 650 | 'shell/android/shell_library_loader.cc', |
| 651 | 'shell/android/shell_library_loader.h', |
[email protected] | f83a4739 | 2012-07-12 22:15:04 | [diff] [blame] | 652 | ], |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 653 | 'conditions': [ |
[email protected] | d999c3cb | 2013-03-12 10:22:36 | [diff] [blame] | 654 | ['android_webview_build==1', { |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 655 | 'ldflags': [ |
| 656 | '-lgabi++', # For rtti |
| 657 | ], |
| 658 | }], |
| 659 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 660 | }, |
| 661 | { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 662 | 'target_name': 'content_shell_java', |
| 663 | 'type': 'none', |
| 664 | 'dependencies': [ |
[email protected] | a20f6e8 | 2013-07-01 13:38:41 | [diff] [blame] | 665 | 'content.gyp:content_java', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 666 | ], |
| 667 | 'variables': { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 668 | 'java_in_dir': '../content/shell/android/java', |
| 669 | 'has_java_resources': 1, |
| 670 | 'R_package': 'org.chromium.content_shell', |
| 671 | 'R_package_relpath': 'org/chromium/content_shell', |
| 672 | }, |
| 673 | 'includes': [ '../build/java.gypi' ], |
| 674 | }, |
| 675 | { |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 676 | # content_shell_apk creates a .jar as a side effect. Any java targets |
| 677 | # that need that .jar in their classpath should depend on this target, |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 678 | # content_shell_apk_java. Dependents of content_shell_apk receive its |
| 679 | # jar path in the variable 'apk_output_jar_path'. This target should |
| 680 | # only be used by targets which instrument content_shell_apk. |
| 681 | 'target_name': 'content_shell_apk_java', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 682 | 'type': 'none', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 683 | 'dependencies': [ |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 684 | 'content_shell_apk', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 685 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 686 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 687 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 688 | { |
| 689 | 'target_name': 'content_shell_apk', |
| 690 | 'type': 'none', |
| 691 | 'dependencies': [ |
[email protected] | a20f6e8 | 2013-07-01 13:38:41 | [diff] [blame] | 692 | 'content.gyp:content_java', |
[email protected] | c48fece0 | 2013-06-19 12:01:42 | [diff] [blame] | 693 | 'content_java_test_support', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 694 | 'content_shell_java', |
| 695 | 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 696 | '../base/base.gyp:base_java', |
| 697 | '../media/media.gyp:media_java', |
| 698 | '../net/net.gyp:net_java', |
| 699 | '../ui/ui.gyp:ui_java', |
| 700 | ], |
| 701 | 'variables': { |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 702 | 'apk_name': 'ContentShell', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 703 | 'manifest_package_name': 'org.chromium.content_shell_apk', |
| 704 | 'java_in_dir': 'shell/android/shell_apk', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 705 | 'resource_dir': 'shell/android/shell_apk/res', |
[email protected] | e486525 | 2013-04-04 09:15:59 | [diff] [blame] | 706 | 'native_lib_target': 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 707 | 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'], |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 708 | 'asset_location': '<(ant_build_out)/content_shell/assets', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 709 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 710 | 'includes': [ '../build/java_apk.gypi' ], |
| 711 | }, |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 712 | ], |
| 713 | }], # OS=="android" |
| 714 | ] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 715 | } |