[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] | 73a75977 | 2013-07-02 20:47:45 | [diff] [blame] | 38 | 'content_resources.gyp:content_resources', |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 39 | 'content_shell_resources', |
| 40 | 'copy_test_netscape_plugin', |
| 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] | d6d06a35 | 2013-10-23 07:04:00 | [diff] [blame] | 44 | '../components/components.gyp:breakpad_component', |
[email protected] | 41fba0e | 2014-01-16 18:19:42 | [diff] [blame] | 45 | '../gin/gin.gyp:gin', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 46 | '../ipc/ipc.gyp:ipc', |
[email protected] | 433df47 | 2012-03-07 20:33:39 | [diff] [blame] | 47 | '../media/media.gyp:media', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 48 | '../net/net.gyp:net', |
[email protected] | 24f8069 | 2012-08-13 15:15:50 | [diff] [blame] | 49 | '../net/net.gyp:net_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 50 | '../skia/skia.gyp:skia', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 51 | '../third_party/WebKit/public/blink.gyp:blink', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 52 | '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_support', |
[email protected] | 114efae | 2013-11-06 20:37:57 | [diff] [blame] | 53 | '../ui/events/events.gyp:events_base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 54 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 55 | '../ui/gfx/gfx.gyp:gfx_geometry', |
[email protected] | 8350f16f | 2012-11-30 00:25:32 | [diff] [blame] | 56 | '../ui/gl/gl.gyp:gl', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 57 | '../ui/ui.gyp:ui', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 58 | '../url/url.gyp:url_lib', |
[email protected] | 12bc28fcb | 2011-09-21 15:53:50 | [diff] [blame] | 59 | '../v8/tools/gyp/v8.gyp:v8', |
[email protected] | 3469ea2 | 2013-09-14 01:24:47 | [diff] [blame] | 60 | '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent', |
[email protected] | a356e5cc | 2013-09-24 02:54:46 | [diff] [blame] | 61 | '../webkit/common/webkit_common.gyp:webkit_common', |
[email protected] | a356e5cc | 2013-09-24 02:54:46 | [diff] [blame] | 62 | '../webkit/webkit_resources.gyp:webkit_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 63 | ], |
| 64 | 'include_dirs': [ |
| 65 | '..', |
| 66 | ], |
| 67 | 'sources': [ |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 68 | 'public/test/layouttest_support.h', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 69 | 'shell/android/shell_jni_registrar.cc', |
| 70 | 'shell/android/shell_jni_registrar.h', |
| 71 | 'shell/android/shell_manager.cc', |
| 72 | 'shell/android/shell_manager.h', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 73 | 'shell/app/paths_mac.h', |
| 74 | 'shell/app/paths_mac.mm', |
[email protected] | d6d06a35 | 2013-10-23 07:04:00 | [diff] [blame] | 75 | 'shell/app/shell_breakpad_client.cc', |
| 76 | 'shell/app/shell_breakpad_client.h', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 77 | 'shell/app/shell_main_delegate.cc', |
| 78 | 'shell/app/shell_main_delegate.h', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 79 | 'shell/app/shell_main_delegate_mac.h', |
| 80 | 'shell/app/shell_main_delegate_mac.mm', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 81 | 'shell/app/webkit_test_platform_support_android.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 82 | 'shell/app/webkit_test_platform_support.h', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 83 | 'shell/app/webkit_test_platform_support_linux.cc', |
| 84 | 'shell/app/webkit_test_platform_support_mac.mm', |
| 85 | 'shell/app/webkit_test_platform_support_win.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 86 | 'shell/browser/notify_done_forwarder.cc', |
| 87 | 'shell/browser/notify_done_forwarder.h', |
| 88 | 'shell/browser/shell_android.cc', |
| 89 | 'shell/browser/shell_application_mac.h', |
| 90 | 'shell/browser/shell_application_mac.mm', |
| 91 | 'shell/browser/shell_aura.cc', |
| 92 | 'shell/browser/shell_browser_context.cc', |
| 93 | 'shell/browser/shell_browser_context.h', |
| 94 | 'shell/browser/shell_browser_main.cc', |
| 95 | 'shell/browser/shell_browser_main.h', |
| 96 | 'shell/browser/shell_browser_main_parts.cc', |
| 97 | 'shell/browser/shell_browser_main_parts.h', |
| 98 | 'shell/browser/shell_browser_main_parts_mac.mm', |
| 99 | 'shell/browser/shell.cc', |
| 100 | 'shell/browser/shell_content_browser_client.cc', |
| 101 | 'shell/browser/shell_content_browser_client.h', |
| 102 | 'shell/browser/shell_devtools_delegate.cc', |
| 103 | 'shell/browser/shell_devtools_delegate.h', |
| 104 | 'shell/browser/shell_devtools_frontend.cc', |
| 105 | 'shell/browser/shell_devtools_frontend.h', |
| 106 | 'shell/browser/shell_download_manager_delegate.cc', |
| 107 | 'shell/browser/shell_download_manager_delegate.h', |
| 108 | 'shell/browser/shell_gtk.cc', |
| 109 | 'shell/browser/shell.h', |
| 110 | 'shell/browser/shell_javascript_dialog_gtk.cc', |
| 111 | 'shell/browser/shell_javascript_dialog.h', |
| 112 | 'shell/browser/shell_javascript_dialog_mac.mm', |
| 113 | 'shell/browser/shell_javascript_dialog_manager.cc', |
| 114 | 'shell/browser/shell_javascript_dialog_manager.h', |
| 115 | 'shell/browser/shell_javascript_dialog_win.cc', |
| 116 | 'shell/browser/shell_layout_tests_android.cc', |
| 117 | 'shell/browser/shell_layout_tests_android.h', |
| 118 | 'shell/browser/shell_login_dialog.cc', |
| 119 | 'shell/browser/shell_login_dialog_gtk.cc', |
| 120 | 'shell/browser/shell_login_dialog.h', |
| 121 | 'shell/browser/shell_login_dialog_mac.mm', |
| 122 | 'shell/browser/shell_mac.mm', |
| 123 | 'shell/browser/shell_message_filter.cc', |
| 124 | 'shell/browser/shell_message_filter.h', |
| 125 | 'shell/browser/shell_net_log.cc', |
| 126 | 'shell/browser/shell_net_log.h', |
| 127 | 'shell/browser/shell_network_delegate.cc', |
| 128 | 'shell/browser/shell_network_delegate.h', |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 129 | 'shell/browser/shell_platform_data_aura.cc', |
| 130 | 'shell/browser/shell_platform_data_aura.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 131 | 'shell/browser/shell_plugin_service_filter.cc', |
| 132 | 'shell/browser/shell_plugin_service_filter.h', |
| 133 | 'shell/browser/shell_quota_permission_context.cc', |
| 134 | 'shell/browser/shell_quota_permission_context.h', |
| 135 | 'shell/browser/shell_resource_dispatcher_host_delegate.cc', |
| 136 | 'shell/browser/shell_resource_dispatcher_host_delegate.h', |
[email protected] | 9896c55 | 2013-08-29 19:03:20 | [diff] [blame] | 137 | 'shell/browser/shell_speech_recognition_manager_delegate.cc', |
| 138 | 'shell/browser/shell_speech_recognition_manager_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 139 | 'shell/browser/shell_url_request_context_getter.cc', |
| 140 | 'shell/browser/shell_url_request_context_getter.h', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 141 | 'shell/browser/shell_views.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 142 | 'shell/browser/shell_web_contents_view_delegate_android.cc', |
| 143 | 'shell/browser/shell_web_contents_view_delegate_creator.h', |
| 144 | 'shell/browser/shell_web_contents_view_delegate_gtk.cc', |
| 145 | 'shell/browser/shell_web_contents_view_delegate.h', |
| 146 | 'shell/browser/shell_web_contents_view_delegate_mac.mm', |
| 147 | 'shell/browser/shell_web_contents_view_delegate_win.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 148 | 'shell/browser/webkit_test_controller.cc', |
| 149 | 'shell/browser/webkit_test_controller.h', |
[email protected] | 4562cf7 | 2014-01-27 10:10:13 | [diff] [blame] | 150 | 'shell/common/leak_detection_result.h', |
[email protected] | b7c504c | 2013-05-07 14:42:12 | [diff] [blame] | 151 | 'shell/common/shell_content_client.cc', |
| 152 | 'shell/common/shell_content_client.h', |
| 153 | 'shell/common/shell_messages.cc', |
| 154 | 'shell/common/shell_messages.h', |
| 155 | 'shell/common/shell_switches.cc', |
| 156 | 'shell/common/shell_switches.h', |
| 157 | 'shell/common/shell_test_configuration.cc', |
| 158 | 'shell/common/shell_test_configuration.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 159 | 'shell/common/test_runner/WebPreferences.cpp', |
| 160 | 'shell/common/test_runner/WebPreferences.h', |
[email protected] | b7c504c | 2013-05-07 14:42:12 | [diff] [blame] | 161 | 'shell/common/webkit_test_helpers.cc', |
| 162 | 'shell/common/webkit_test_helpers.h', |
[email protected] | 6cfccd1 | 2012-06-28 12:14:05 | [diff] [blame] | 163 | 'shell/geolocation/shell_access_token_store.cc', |
| 164 | 'shell/geolocation/shell_access_token_store.h', |
[email protected] | 41fba0e | 2014-01-16 18:19:42 | [diff] [blame] | 165 | 'shell/renderer/gc_controller.cc', |
| 166 | 'shell/renderer/gc_controller.h', |
[email protected] | 4562cf7 | 2014-01-27 10:10:13 | [diff] [blame] | 167 | 'shell/renderer/leak_detector.cc', |
| 168 | 'shell/renderer/leak_detector.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 169 | 'shell/renderer/shell_content_renderer_client.cc', |
| 170 | 'shell/renderer/shell_content_renderer_client.h', |
[email protected] | a86c0e96 | 2013-12-17 17:10:39 | [diff] [blame] | 171 | 'shell/renderer/shell_render_frame_observer.cc', |
| 172 | 'shell/renderer/shell_render_frame_observer.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 173 | 'shell/renderer/shell_render_process_observer.cc', |
| 174 | 'shell/renderer/shell_render_process_observer.h', |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 175 | 'shell/renderer/shell_render_view_observer.cc', |
| 176 | 'shell/renderer/shell_render_view_observer.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 177 | 'shell/renderer/test_runner/AccessibilityController.cpp', |
| 178 | 'shell/renderer/test_runner/AccessibilityController.h', |
| 179 | 'shell/renderer/test_runner/CppBoundClass.cpp', |
| 180 | 'shell/renderer/test_runner/CppBoundClass.h', |
| 181 | 'shell/renderer/test_runner/CppVariant.cpp', |
| 182 | 'shell/renderer/test_runner/CppVariant.h', |
| 183 | 'shell/renderer/test_runner/EventSender.cpp', |
| 184 | 'shell/renderer/test_runner/EventSender.h', |
| 185 | 'shell/renderer/test_runner/GamepadController.cpp', |
| 186 | 'shell/renderer/test_runner/GamepadController.h', |
| 187 | 'shell/renderer/test_runner/KeyCodeMapping.cpp', |
| 188 | 'shell/renderer/test_runner/KeyCodeMapping.h', |
| 189 | 'shell/renderer/test_runner/MockColorChooser.cpp', |
| 190 | 'shell/renderer/test_runner/MockColorChooser.h', |
| 191 | 'shell/renderer/test_runner/MockConstraints.cpp', |
| 192 | 'shell/renderer/test_runner/MockConstraints.h', |
| 193 | 'shell/renderer/test_runner/MockGrammarCheck.cpp', |
| 194 | 'shell/renderer/test_runner/MockGrammarCheck.h', |
| 195 | 'shell/renderer/test_runner/MockSpellCheck.cpp', |
| 196 | 'shell/renderer/test_runner/MockSpellCheck.h', |
| 197 | 'shell/renderer/test_runner/MockWebAudioDevice.cpp', |
| 198 | 'shell/renderer/test_runner/MockWebAudioDevice.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 199 | 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp', |
| 200 | 'shell/renderer/test_runner/MockWebMIDIAccessor.h', |
[email protected] | d76ff416 | 2014-01-05 19:04:43 | [diff] [blame] | 201 | 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp', |
| 202 | 'shell/renderer/test_runner/MockWebMediaStreamCenter.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 203 | 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp', |
| 204 | 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h', |
[email protected] | d76ff416 | 2014-01-05 19:04:43 | [diff] [blame] | 205 | 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp', |
| 206 | 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 207 | 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp', |
| 208 | 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h', |
| 209 | 'shell/renderer/test_runner/MockWebSpeechInputController.cpp', |
| 210 | 'shell/renderer/test_runner/MockWebSpeechInputController.h', |
| 211 | 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp', |
| 212 | 'shell/renderer/test_runner/MockWebSpeechRecognizer.h', |
| 213 | 'shell/renderer/test_runner/NotificationPresenter.cpp', |
| 214 | 'shell/renderer/test_runner/NotificationPresenter.h', |
| 215 | 'shell/renderer/test_runner/SpellCheckClient.cpp', |
| 216 | 'shell/renderer/test_runner/SpellCheckClient.h', |
| 217 | 'shell/renderer/test_runner/TestCommon.cpp', |
| 218 | 'shell/renderer/test_runner/TestCommon.h', |
| 219 | 'shell/renderer/test_runner/TestInterfaces.cpp', |
| 220 | 'shell/renderer/test_runner/TestInterfaces.h', |
| 221 | 'shell/renderer/test_runner/TestPlugin.cpp', |
| 222 | 'shell/renderer/test_runner/TestPlugin.h', |
| 223 | 'shell/renderer/test_runner/TestRunner.cpp', |
| 224 | 'shell/renderer/test_runner/TestRunner.h', |
| 225 | 'shell/renderer/test_runner/TextInputController.cpp', |
| 226 | 'shell/renderer/test_runner/TextInputController.h', |
| 227 | 'shell/renderer/test_runner/WebAXObjectProxy.cpp', |
| 228 | 'shell/renderer/test_runner/WebAXObjectProxy.h', |
| 229 | 'shell/renderer/test_runner/WebFrameTestProxy.h', |
| 230 | 'shell/renderer/test_runner/WebPermissions.cpp', |
| 231 | 'shell/renderer/test_runner/WebPermissions.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 232 | 'shell/renderer/test_runner/WebTask.cpp', |
| 233 | 'shell/renderer/test_runner/WebTask.h', |
| 234 | 'shell/renderer/test_runner/WebTestDelegate.h', |
| 235 | 'shell/renderer/test_runner/WebTestInterfaces.cpp', |
| 236 | 'shell/renderer/test_runner/WebTestInterfaces.h', |
| 237 | 'shell/renderer/test_runner/WebTestProxy.cpp', |
| 238 | 'shell/renderer/test_runner/WebTestProxy.h', |
| 239 | 'shell/renderer/test_runner/WebTestRunner.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 240 | 'shell/renderer/test_runner/WebTestThemeEngineMac.h', |
| 241 | 'shell/renderer/test_runner/WebTestThemeEngineMac.mm', |
| 242 | 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp', |
| 243 | 'shell/renderer/test_runner/WebTestThemeEngineMock.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 244 | 'shell/renderer/test_runner/WebUserMediaClientMock.cpp', |
| 245 | 'shell/renderer/test_runner/WebUserMediaClientMock.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 246 | 'shell/renderer/webkit_test_runner.cc', |
| 247 | 'shell/renderer/webkit_test_runner.h', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 248 | 'test/layouttest_support.cc', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 249 | ], |
| 250 | 'msvs_settings': { |
| 251 | 'VCLinkerTool': { |
| 252 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 253 | }, |
| 254 | }, |
| 255 | 'conditions': [ |
[email protected] | 099d14a | 2014-02-06 09:49:46 | [diff] [blame^] | 256 | ['OS=="mac"', { |
| 257 | 'sources/': [ |
| 258 | ['exclude', 'WebTestThemeEngineMock.cpp'], |
| 259 | ], |
| 260 | }], |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 261 | ['OS=="win" and win_use_allocator_shim==1', { |
| 262 | 'dependencies': [ |
| 263 | '../base/allocator/allocator.gyp:allocator', |
| 264 | ], |
| 265 | }], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 266 | ['OS=="win"', { |
| 267 | 'resource_include_dirs': [ |
| 268 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 269 | ], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 270 | 'dependencies': [ |
[email protected] | d7871ac | 2013-07-09 21:35:41 | [diff] [blame] | 271 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 272 | ], |
| 273 | 'configurations': { |
| 274 | 'Debug_Base': { |
| 275 | 'msvs_settings': { |
| 276 | 'VCLinkerTool': { |
| 277 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 278 | }, |
| 279 | }, |
| 280 | }, |
| 281 | }, |
[email protected] | 3bed530 | 2013-02-15 19:31:41 | [diff] [blame] | 282 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 283 | 'msvs_disabled_warnings': [ 4267, ], |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 284 | }, { # OS!="win" |
| 285 | 'sources/': [ |
| 286 | ['exclude', 'Win\\.cpp$'], |
| 287 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 288 | }], # OS=="win" |
[email protected] | 6eb6bb6 | 2012-11-10 06:30:59 | [diff] [blame] | 289 | ['OS=="linux"', { |
| 290 | 'dependencies': [ |
| 291 | '../build/linux/system.gyp:fontconfig', |
| 292 | ], |
| 293 | }], |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 294 | ['use_x11 == 1', { |
| 295 | 'dependencies': [ |
| 296 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 297 | ], |
| 298 | }], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 299 | ['OS=="android"', { |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 300 | 'dependencies': [ |
| 301 | 'content_shell_jni_headers', |
| 302 | ], |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 303 | 'dependencies!': [ |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 304 | 'copy_test_netscape_plugin', |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 305 | ], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 306 | }, { # else: OS!="android" |
| 307 | 'dependencies': [ |
| 308 | # This dependency is for running DRT against the content shell, and |
| 309 | # this combination is not yet supported on Android. |
[email protected] | 3469ea2 | 2013-09-14 01:24:47 | [diff] [blame] | 310 | 'test_support_content', |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 311 | ], |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 312 | }], # OS=="android" |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 313 | ['os_posix == 1 and OS != "mac" and android_webview_build != 1', { |
| 314 | 'dependencies': [ |
| 315 | '../components/components.gyp:breakpad_host', |
| 316 | ], |
| 317 | }], |
[email protected] | 3c8fe548 | 2013-05-22 15:17:03 | [diff] [blame] | 318 | ['(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] | 319 | 'dependencies': [ |
| 320 | # This is needed by content/app/content_main_runner.cc |
| 321 | '../base/allocator/allocator.gyp:allocator', |
| 322 | ], |
| 323 | }], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 324 | ['use_aura==1', { |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 325 | 'dependencies': [ |
| 326 | '../ui/aura/aura.gyp:aura', |
| 327 | '../ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 328 | ], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 329 | 'sources/': [ |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 330 | ['exclude', 'shell/browser/shell_gtk.cc'], |
[email protected] | fa4a4583 | 2012-04-12 21:32:48 | [diff] [blame] | 331 | ], |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 332 | 'conditions': [ |
| 333 | ['toolkit_views==1', { |
| 334 | 'dependencies': [ |
[email protected] | dae7844 | 2013-11-26 16:57:02 | [diff] [blame] | 335 | '../ui/resources/ui_resources.gyp:ui_resources', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 336 | '../ui/views/controls/webview/webview.gyp:webview', |
| 337 | '../ui/views/views.gyp:views', |
| 338 | '../ui/views/views.gyp:views_test_support', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 339 | ], |
| 340 | 'sources/': [ |
| 341 | ['exclude', 'shell/browser/shell_aura.cc'], |
| 342 | ], |
| 343 | }, { |
| 344 | 'sources/': [ |
| 345 | ['exclude', 'shell/browser/shell_views.cc'], |
| 346 | ], |
| 347 | }], |
| 348 | ], |
| 349 | }, { |
| 350 | 'sources/': [ |
| 351 | ['exclude', 'shell/browser/shell_aura.cc'], |
| 352 | ['exclude', 'shell/browser/shell_views.cc'], |
| 353 | ], |
[email protected] | 96b80b47 | 2012-07-03 19:41:56 | [diff] [blame] | 354 | }], # use_aura==1 |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 355 | # The test plugin relies on X11. |
| 356 | ['OS=="linux" and use_x11==0', { |
| 357 | 'dependencies!': [ |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 358 | 'copy_test_netscape_plugin', |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 359 | ], |
| 360 | }], |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 361 | ['chromeos==1', { |
| 362 | 'dependencies': [ |
| 363 | '../chromeos/chromeos.gyp:chromeos', |
[email protected] | de6831b | 2013-11-16 01:04:30 | [diff] [blame] | 364 | '../ui/wm/wm.gyp:wm_test_support', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 365 | ], |
| 366 | }], # chromeos==1 |
[email protected] | 929246a | 2013-02-28 13:55:20 | [diff] [blame] | 367 | ['use_custom_freetype==1', { |
| 368 | 'dependencies': [ |
| 369 | '../third_party/freetype2/freetype2.gyp:freetype2', |
| 370 | ], |
| 371 | }], |
[email protected] | dfb936019 | 2013-05-27 09:42:34 | [diff] [blame] | 372 | ['enable_plugins==0', { |
| 373 | 'sources/': [ |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 374 | ['exclude', 'shell/browser/shell_plugin_service_filter.cc'], |
| 375 | ['exclude', 'shell/browser/shell_plugin_service_filter.h'], |
[email protected] | dfb936019 | 2013-05-27 09:42:34 | [diff] [blame] | 376 | ], |
| 377 | }] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 378 | ], |
| 379 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 380 | { |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 381 | 'target_name': 'content_shell_resources', |
| 382 | 'type': 'none', |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 383 | 'dependencies': [ |
| 384 | 'generate_content_shell_resources', |
| 385 | ], |
| 386 | 'variables': { |
| 387 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 388 | }, |
| 389 | 'includes': [ '../build/grit_target.gypi' ], |
| 390 | 'copies': [ |
| 391 | { |
| 392 | 'destination': '<(PRODUCT_DIR)', |
| 393 | 'files': [ |
| 394 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' |
| 395 | ], |
| 396 | }, |
| 397 | ], |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 398 | 'conditions': [ |
| 399 | ['OS=="win"', { |
| 400 | 'copies': [{ |
| 401 | 'destination': '<(PRODUCT_DIR)', |
| 402 | 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'], |
| 403 | }], |
| 404 | }], |
| 405 | ['OS=="mac"', { |
| 406 | 'all_dependent_settings': { |
| 407 | 'mac_bundle_resources': [ |
| 408 | 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF', |
| 409 | '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png', |
| 410 | '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png', |
| 411 | ], |
| 412 | }, |
| 413 | }], |
| 414 | ['use_x11 == 1', { |
| 415 | 'copies': [{ |
| 416 | 'destination': '<(PRODUCT_DIR)', |
| 417 | 'files': [ |
| 418 | 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF', |
| 419 | 'shell/renderer/test_runner/resources/fonts/fonts.conf', |
| 420 | ] |
| 421 | }], |
| 422 | }], |
| 423 | ['OS=="android"', { |
| 424 | 'copies': [{ |
| 425 | 'destination': '<(PRODUCT_DIR)', |
| 426 | 'files': [ |
| 427 | 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF', |
| 428 | 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml', |
| 429 | 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml', |
| 430 | ] |
| 431 | }], |
| 432 | }], |
| 433 | ], |
[email protected] | 4cb792f4 | 2012-03-24 03:12:42 | [diff] [blame] | 434 | }, |
| 435 | { |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 436 | 'target_name': 'generate_content_shell_resources', |
| 437 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 438 | 'variables': { |
| 439 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 440 | }, |
| 441 | 'actions': [ |
| 442 | { |
| 443 | 'action_name': 'content_shell_resources', |
| 444 | 'variables': { |
| 445 | 'grit_grd_file': 'shell/shell_resources.grd', |
| 446 | }, |
| 447 | 'includes': [ '../build/grit_action.gypi' ], |
| 448 | }, |
| 449 | ], |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 450 | }, |
| 451 | { |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 452 | # We build a minimal set of resources so WebKit in content_shell has |
| 453 | # access to necessary resources. |
| 454 | 'target_name': 'content_shell_pak', |
| 455 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 456 | 'dependencies': [ |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 457 | 'content_resources.gyp:content_resources', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 458 | 'content_shell_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 459 | '<(DEPTH)/net/net.gyp:net_resources', |
| 460 | '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
[email protected] | 1c0c3f4 | 2013-11-20 02:03:28 | [diff] [blame] | 461 | '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
[email protected] | d7871ac | 2013-07-09 21:35:41 | [diff] [blame] | 462 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources', |
| 463 | '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 464 | ], |
[email protected] | 3df230d | 2013-07-03 00:44:57 | [diff] [blame] | 465 | 'conditions': [ |
| 466 | ['OS!="android" and OS!="ios"', { |
| 467 | 'dependencies': [ |
| 468 | 'browser/tracing/tracing_resources.gyp:tracing_resources', |
| 469 | ], |
| 470 | }], |
[email protected] | 8dffd2c | 2013-12-02 14:14:38 | [diff] [blame] | 471 | ['OS!="android"', { |
| 472 | 'dependencies': [ |
| 473 | 'browser/devtools/devtools_resources.gyp:devtools_resources', |
| 474 | ], |
| 475 | }], |
[email protected] | 3df230d | 2013-07-03 00:44:57 | [diff] [blame] | 476 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 477 | 'variables': { |
| 478 | 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', |
| 479 | }, |
| 480 | 'actions': [ |
| 481 | { |
| 482 | 'action_name': 'repack_content_shell_pack', |
| 483 | 'variables': { |
| 484 | 'pak_inputs': [ |
| 485 | '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
[email protected] | 479bea2 | 2013-07-02 21:46:06 | [diff] [blame] | 486 | '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 487 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 488 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 489 | '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak', |
[email protected] | a52c731 | 2012-07-24 22:45:57 | [diff] [blame] | 490 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak', |
[email protected] | e1c26ae | 2013-01-31 18:13:18 | [diff] [blame] | 491 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak', |
[email protected] | c767d57 | 2012-07-27 10:55:58 | [diff] [blame] | 492 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', |
[email protected] | e5f893b | 2013-07-30 02:52:22 | [diff] [blame] | 493 | '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak', |
[email protected] | 30c8f54 | 2012-09-01 01:02:29 | [diff] [blame] | 494 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak', |
[email protected] | af551a6 | 2012-07-31 16:44:03 | [diff] [blame] | 495 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 496 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 497 | }, |
| 498 | 'inputs': [ |
| 499 | '<(repack_path)', |
| 500 | '<@(pak_inputs)', |
| 501 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 502 | 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 503 | '<@(pak_inputs)'], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 504 | 'conditions': [ |
| 505 | ['OS!="android"', { |
[email protected] | 8dffd2c | 2013-12-02 14:14:38 | [diff] [blame] | 506 | 'variables': { |
| 507 | 'pak_inputs': [ |
| 508 | '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', |
| 509 | ], |
| 510 | }, |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 511 | 'outputs': [ |
| 512 | '<(PRODUCT_DIR)/content_shell.pak', |
| 513 | ], |
| 514 | }, { |
| 515 | 'outputs': [ |
| 516 | '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 517 | ], |
| 518 | }], |
| 519 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 520 | }, |
| 521 | ], |
| 522 | }, |
| 523 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 524 | 'target_name': 'content_shell', |
| 525 | 'type': 'executable', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 526 | 'mac_bundle': 1, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 527 | 'variables': { |
| 528 | 'chromium_code': 1, |
| 529 | }, |
| 530 | 'dependencies': [ |
| 531 | 'content_shell_lib', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 532 | 'content_shell_pak', |
[email protected] | bb5d2d9 | 2012-10-15 07:45:42 | [diff] [blame] | 533 | '../third_party/mesa/mesa.gyp:osmesa', |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 534 | '../tools/imagediff/image_diff.gyp:image_diff', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 535 | ], |
| 536 | 'include_dirs': [ |
| 537 | '..', |
| 538 | ], |
| 539 | 'sources': [ |
[email protected] | 711f428e | 2012-06-22 02:18:23 | [diff] [blame] | 540 | 'app/startup_helper_win.cc', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 541 | 'shell/app/shell_main.cc', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 542 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 543 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 544 | 'shell/app/app.icns', |
| 545 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 546 | ], |
| 547 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 548 | # be necessary to list app-Info.plist once, not the three times it is |
| 549 | # listed here. |
| 550 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 551 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 552 | ], |
| 553 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 554 | 'INFOPLIST_FILE': 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 555 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 556 | 'msvs_settings': { |
| 557 | 'VCLinkerTool': { |
| 558 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 559 | }, |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 560 | 'VCManifestTool': { |
[email protected] | 5d60b0b | 2013-07-30 20:24:30 | [diff] [blame] | 561 | 'AdditionalManifestFiles': [ |
| 562 | 'shell/app/shell.exe.manifest', |
| 563 | ], |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 564 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 565 | }, |
| 566 | 'conditions': [ |
| 567 | ['OS=="win" and win_use_allocator_shim==1', { |
| 568 | 'dependencies': [ |
| 569 | '../base/allocator/allocator.gyp:allocator', |
| 570 | ], |
| 571 | }], |
| 572 | ['OS=="win"', { |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 573 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 574 | 'shell/app/shell.rc', |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 575 | ], |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 576 | 'configurations': { |
| 577 | 'Debug_Base': { |
| 578 | 'msvs_settings': { |
| 579 | 'VCLinkerTool': { |
| 580 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 581 | }, |
| 582 | }, |
| 583 | }, |
| 584 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 585 | }], # OS=="win" |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 586 | ['OS == "win" or toolkit_uses_gtk == 1', { |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 587 | 'dependencies': [ |
| 588 | '../sandbox/sandbox.gyp:sandbox', |
| 589 | ], |
[email protected] | 5d9bc78 | 2013-05-17 17:22:14 | [diff] [blame] | 590 | }], # OS=="win" or toolkit_uses_gtk == 1 |
[email protected] | 39899089 | 2012-01-20 03:25:58 | [diff] [blame] | 591 | ['toolkit_uses_gtk == 1', { |
| 592 | 'dependencies': [ |
| 593 | '<(DEPTH)/build/linux/system.gyp:gtk', |
| 594 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 595 | }], # toolkit_uses_gtk |
| 596 | ['OS=="mac"', { |
| 597 | 'product_name': '<(content_shell_product_name)', |
| 598 | 'dependencies!': [ |
| 599 | 'content_shell_lib', |
| 600 | ], |
| 601 | 'dependencies': [ |
| 602 | 'content_shell_framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 603 | 'content_shell_helper_app', |
| 604 | ], |
| 605 | 'copies': [ |
| 606 | { |
| 607 | 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks', |
| 608 | 'files': [ |
| 609 | '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app', |
| 610 | ], |
| 611 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 612 | ], |
| 613 | 'postbuilds': [ |
| 614 | { |
| 615 | 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework', |
| 616 | 'action': [ |
| 617 | '../build/mac/copy_framework_unversioned.sh', |
| 618 | '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework', |
| 619 | '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
| 620 | ], |
| 621 | }, |
| 622 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 623 | # Modify the Info.plist as needed. |
| 624 | 'postbuild_name': 'Tweak Info.plist', |
| 625 | 'action': ['../build/mac/tweak_info_plist.py', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 626 | '--scm=1', |
| 627 | '--version=<(content_shell_version)'], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 628 | }, |
| 629 | { |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 630 | # This postbuid step is responsible for creating the following |
| 631 | # helpers: |
| 632 | # |
| 633 | # Content Shell Helper EH.app and Content Shell Helper NP.app are |
| 634 | # created from Content Shell Helper.app. |
| 635 | # |
| 636 | # The EH helper is marked for an executable heap. The NP helper |
| 637 | # is marked for no PIE (ASLR). |
| 638 | 'postbuild_name': 'Make More Helpers', |
| 639 | 'action': [ |
| 640 | '../build/mac/make_more_helpers.sh', |
| 641 | 'Frameworks', |
| 642 | '<(content_shell_product_name)', |
| 643 | ], |
| 644 | }, |
| 645 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 646 | # Make sure there isn't any Objective-C in the shell's |
| 647 | # executable. |
| 648 | 'postbuild_name': 'Verify No Objective-C', |
| 649 | 'action': [ |
| 650 | '../build/mac/verify_no_objc.sh', |
| 651 | ], |
| 652 | }, |
| 653 | ], |
| 654 | }], # OS=="mac" |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 655 | ['OS=="android"', { |
| 656 | 'dependencies!': [ |
| 657 | '../tools/imagediff/image_diff.gyp:image_diff', |
| 658 | ], |
| 659 | }], # OS=="android" |
| 660 | ['OS=="android" and android_webview_build==0', { |
| 661 | 'dependencies': [ |
| 662 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
| 663 | ], |
| 664 | }], # OS=="android" and android_webview_build==0 |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 665 | ], |
| 666 | }, |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 667 | { |
| 668 | 'target_name': 'content_shell_builder', |
| 669 | 'type': 'none', |
| 670 | 'dependencies': [ |
| 671 | 'content_shell', |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 672 | ], |
| 673 | }, |
[email protected] | d76ff416 | 2014-01-05 19:04:43 | [diff] [blame] | 674 | { |
| 675 | 'target_name': 'layout_test_helper', |
| 676 | 'type': 'executable', |
| 677 | 'sources': [ |
| 678 | 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm', |
| 679 | 'shell/renderer/test_runner/helper/layout_test_helper_win.cc', |
| 680 | ], |
| 681 | 'conditions': [ |
| 682 | ['OS=="mac"', { |
| 683 | 'link_settings': { |
| 684 | 'libraries': [ |
| 685 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 686 | ], |
| 687 | }, |
| 688 | }], |
| 689 | ], |
| 690 | }, |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 691 | { |
| 692 | 'target_name': 'test_netscape_plugin', |
| 693 | 'type': 'loadable_module', |
| 694 | 'sources': [ |
| 695 | 'shell/tools/plugin/PluginObject.cpp', |
| 696 | 'shell/tools/plugin/PluginObject.h', |
| 697 | 'shell/tools/plugin/PluginObjectMac.mm', |
| 698 | 'shell/tools/plugin/PluginTest.cpp', |
| 699 | 'shell/tools/plugin/PluginTest.h', |
| 700 | 'shell/tools/plugin/TestObject.cpp', |
| 701 | 'shell/tools/plugin/TestObject.h', |
| 702 | 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp', |
| 703 | 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp', |
| 704 | 'shell/tools/plugin/Tests/FormValue.cpp', |
| 705 | 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp', |
| 706 | 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp', |
| 707 | 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp', |
| 708 | 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp', |
| 709 | 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp', |
| 710 | 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp', |
| 711 | 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp', |
| 712 | 'shell/tools/plugin/Tests/NPPNewFails.cpp', |
| 713 | 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp', |
| 714 | 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp', |
| 715 | 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp', |
| 716 | 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp', |
| 717 | 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp', |
| 718 | 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp', |
| 719 | 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp', |
| 720 | 'shell/tools/plugin/main.cpp', |
| 721 | ], |
| 722 | 'include_dirs': [ |
| 723 | '<(DEPTH)', |
| 724 | '<(DEPTH)/content/shell/tools/plugin/', |
| 725 | ], |
| 726 | 'dependencies': [ |
| 727 | '../base/base.gyp:base', |
| 728 | '../third_party/npapi/npapi.gyp:npapi', |
| 729 | ], |
| 730 | 'conditions': [ |
| 731 | ['OS=="mac"', { |
| 732 | 'mac_bundle': 1, |
| 733 | 'product_extension': 'plugin', |
| 734 | 'link_settings': { |
| 735 | 'libraries': [ |
| 736 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 737 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 738 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 739 | ] |
| 740 | }, |
| 741 | 'xcode_settings': { |
| 742 | 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', |
| 743 | 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist', |
| 744 | }, |
| 745 | }], |
| 746 | ['os_posix == 1 and OS != "mac"', { |
| 747 | 'cflags': [ |
| 748 | '-fvisibility=default', |
| 749 | ], |
| 750 | }], |
| 751 | ['OS=="win"', { |
| 752 | 'defines': [ |
| 753 | # This seems like a hack, but this is what Safari Win does. |
| 754 | 'snprintf=_snprintf', |
| 755 | ], |
| 756 | 'sources': [ |
| 757 | 'shell/tools/plugin/win/TestNetscapePlugin.def', |
| 758 | 'shell/tools/plugin/win/TestNetscapePlugin.rc', |
| 759 | ], |
| 760 | # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll. |
| 761 | 'product_name': 'np_test_netscape_plugin', |
| 762 | # Disable c4267 warnings until we fix size_t to int truncations. |
| 763 | 'msvs_disabled_warnings': [ 4267, ], |
| 764 | }], |
| 765 | ], |
| 766 | }, |
| 767 | { |
| 768 | 'target_name': 'copy_test_netscape_plugin', |
| 769 | 'type': 'none', |
| 770 | 'dependencies': [ |
| 771 | 'test_netscape_plugin', |
| 772 | ], |
| 773 | 'conditions': [ |
| 774 | ['OS=="win"', { |
| 775 | 'copies': [{ |
| 776 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 777 | 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'], |
| 778 | }], |
| 779 | }], |
| 780 | ['OS=="mac"', { |
| 781 | 'copies': [{ |
| 782 | 'destination': '<(PRODUCT_DIR)/plugins/', |
| 783 | 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'], |
| 784 | }], |
| 785 | }], |
| 786 | ['os_posix == 1 and OS != "mac"', { |
| 787 | 'copies': [{ |
| 788 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 789 | 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'], |
| 790 | }], |
| 791 | }], |
| 792 | ], |
| 793 | } |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 794 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 795 | 'conditions': [ |
| 796 | ['OS=="mac"', { |
| 797 | 'targets': [ |
| 798 | { |
| 799 | 'target_name': 'content_shell_framework', |
| 800 | 'type': 'shared_library', |
| 801 | 'product_name': '<(content_shell_product_name) Framework', |
| 802 | 'mac_bundle': 1, |
| 803 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 804 | 'shell/app/English.lproj/HttpAuth.xib', |
| 805 | 'shell/app/English.lproj/MainMenu.xib', |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 806 | '<(PRODUCT_DIR)/content_shell.pak', |
| 807 | 'shell/app/framework-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 808 | ], |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 809 | 'mac_bundle_resources!': [ |
| 810 | 'shell/app/framework-Info.plist', |
| 811 | ], |
| 812 | 'xcode_settings': { |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 813 | # The framework is placed within the .app's Framework |
| 814 | # directory. DYLIB_INSTALL_NAME_BASE and |
| 815 | # LD_DYLIB_INSTALL_NAME affect -install_name. |
| 816 | 'DYLIB_INSTALL_NAME_BASE': |
| 817 | '@executable_path/../Frameworks', |
| 818 | # See /build/mac/copy_framework_unversioned.sh for |
| 819 | # information on LD_DYLIB_INSTALL_NAME. |
| 820 | 'LD_DYLIB_INSTALL_NAME': |
| 821 | '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)', |
| 822 | |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 823 | 'INFOPLIST_FILE': 'shell/app/framework-Info.plist', |
| 824 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 825 | 'dependencies': [ |
| 826 | 'content_shell_lib', |
| 827 | ], |
| 828 | 'include_dirs': [ |
| 829 | '..', |
| 830 | ], |
| 831 | 'sources': [ |
[email protected] | 4642f5b | 2013-07-03 21:43:31 | [diff] [blame] | 832 | 'shell/app/shell_content_main.cc', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 833 | 'shell/app/shell_content_main.h', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 834 | ], |
[email protected] | 30c246bc | 2014-01-28 06:00:04 | [diff] [blame] | 835 | 'postbuilds': [ |
| 836 | { |
| 837 | # Modify the Info.plist as needed. The script explains why |
| 838 | # this is needed. This is also done in the chrome target. |
| 839 | # The framework needs the Breakpad keys if this feature is |
| 840 | # enabled. It does not need the Keystone keys; these always |
| 841 | # come from the outer application bundle. The framework |
| 842 | # doesn't currently use the SCM keys for anything, |
| 843 | # but this seems like a really good place to store them. |
| 844 | 'postbuild_name': 'Tweak Info.plist', |
| 845 | 'action': ['../build/mac/tweak_info_plist.py', |
| 846 | '--breakpad=1', |
| 847 | '--keystone=0', |
| 848 | '--scm=1', |
| 849 | '--version=<(content_shell_version)', |
| 850 | '--branding=<(content_shell_product_name)'], |
| 851 | }, |
| 852 | ], |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 853 | 'copies': [ |
| 854 | { |
| 855 | # Copy FFmpeg binaries for audio/video support. |
| 856 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 857 | 'files': [ |
| 858 | '<(PRODUCT_DIR)/ffmpegsumo.so', |
| 859 | ], |
| 860 | }, |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 861 | { |
| 862 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', |
| 863 | 'files': [ |
| 864 | '<(PRODUCT_DIR)/crash_inspector', |
| 865 | '<(PRODUCT_DIR)/crash_report_sender.app' |
| 866 | ], |
| 867 | }, |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 868 | ], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 869 | 'conditions': [ |
| 870 | ['enable_webrtc==1', { |
| 871 | 'variables': { |
| 872 | 'libpeer_target_type%': 'static_library', |
| 873 | }, |
| 874 | 'conditions': [ |
[email protected] | e4aa290b | 2013-05-01 18:54:19 | [diff] [blame] | 875 | ['libpeer_target_type!="static_library"', { |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 876 | 'copies': [{ |
| 877 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 878 | 'files': [ |
[email protected] | 62461b7 | 2013-05-02 12:27:12 | [diff] [blame] | 879 | '<(PRODUCT_DIR)/libpeerconnection.so', |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 880 | ], |
| 881 | }], |
| 882 | }], |
| 883 | ], |
| 884 | }], |
[email protected] | 30c246bc | 2014-01-28 06:00:04 | [diff] [blame] | 885 | ['icu_use_data_file_flag==1', { |
| 886 | 'mac_bundle_resources': [ |
| 887 | '<(PRODUCT_DIR)/icudtl.dat', |
| 888 | ], |
| 889 | }], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 890 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 891 | }, # target content_shell_framework |
| 892 | { |
| 893 | 'target_name': 'content_shell_helper_app', |
| 894 | 'type': 'executable', |
| 895 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 896 | 'product_name': '<(content_shell_product_name) Helper', |
| 897 | 'mac_bundle': 1, |
| 898 | 'dependencies': [ |
| 899 | 'content_shell_framework', |
| 900 | ], |
| 901 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 902 | 'shell/app/shell_main.cc', |
| 903 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 904 | ], |
| 905 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 906 | # be necessary to list helper-Info.plist once, not the three times it |
| 907 | # is listed here. |
| 908 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 909 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 910 | ], |
| 911 | # TODO(mark): For now, don't put any resources into this app. Its |
| 912 | # resources directory will be a symbolic link to the browser app's |
| 913 | # resources directory. |
| 914 | 'mac_bundle_resources/': [ |
| 915 | ['exclude', '.*'], |
| 916 | ], |
| 917 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 918 | 'INFOPLIST_FILE': 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 919 | }, |
| 920 | 'postbuilds': [ |
| 921 | { |
| 922 | # The framework defines its load-time path |
| 923 | # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| 924 | # (chrome). A different relative path needs to be used in |
| 925 | # content_shell_helper_app. |
| 926 | 'postbuild_name': 'Fix Framework Link', |
| 927 | 'action': [ |
| 928 | 'install_name_tool', |
| 929 | '-change', |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 930 | '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
| 931 | '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 932 | '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 933 | ], |
| 934 | }, |
| 935 | { |
| 936 | # Modify the Info.plist as needed. The script explains why this |
| 937 | # is needed. This is also done in the chrome and chrome_dll |
[email protected] | bbf5244 | 2012-08-23 22:53:18 | [diff] [blame] | 938 | # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 |
| 939 | # are used because Breakpad, Keystone, and SCM keys are |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 940 | # never placed into the helper. |
| 941 | 'postbuild_name': 'Tweak Info.plist', |
| 942 | 'action': ['../build/mac/tweak_info_plist.py', |
| 943 | '--breakpad=0', |
| 944 | '--keystone=0', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 945 | '--scm=0', |
| 946 | '--version=<(content_shell_version)'], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 947 | }, |
| 948 | { |
| 949 | # Make sure there isn't any Objective-C in the helper app's |
| 950 | # executable. |
| 951 | 'postbuild_name': 'Verify No Objective-C', |
| 952 | 'action': [ |
| 953 | '../build/mac/verify_no_objc.sh', |
| 954 | ], |
| 955 | }, |
| 956 | ], |
[email protected] | ec40c38f | 2012-06-28 16:37:49 | [diff] [blame] | 957 | 'conditions': [ |
| 958 | ['component=="shared_library"', { |
| 959 | 'xcode_settings': { |
| 960 | 'LD_RUNPATH_SEARCH_PATHS': [ |
| 961 | # Get back from Content Shell.app/Contents/Frameworks/ |
| 962 | # Helper.app/Contents/MacOS |
| 963 | '@loader_path/../../../../../..', |
| 964 | ], |
| 965 | }, |
| 966 | }], |
| 967 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 968 | }, # target content_shell_helper_app |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 969 | ], |
| 970 | }], # OS=="mac" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 971 | ['OS=="android"', { |
| 972 | 'targets': [ |
| 973 | { |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 974 | # TODO(jrg): Update this action and other jni generators to only |
| 975 | # require specifying the java directory and generate the rest. |
| 976 | 'target_name': 'content_shell_jni_headers', |
| 977 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 978 | 'sources': [ |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 979 | 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java', |
[email protected] | eadcff0f | 2013-06-20 21:08:10 | [diff] [blame] | 980 | 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 981 | 'shell/android/java/src/org/chromium/content_shell/ShellManager.java', |
| 982 | 'shell/android/java/src/org/chromium/content_shell/Shell.java', |
| 983 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 984 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 985 | 'jni_gen_package': 'content/shell', |
[email protected] | 8ef3318fe | 2014-01-10 15:23:54 | [diff] [blame] | 986 | 'jni_generator_ptr_type': 'long', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 987 | }, |
| 988 | 'includes': [ '../build/jni_generator.gypi' ], |
| 989 | }, |
| 990 | { |
[email protected] | c110158 | 2012-06-25 17:07:18 | [diff] [blame] | 991 | 'target_name': 'libcontent_shell_content_view', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 992 | 'type': 'shared_library', |
| 993 | 'dependencies': [ |
| 994 | 'content_shell_jni_headers', |
| 995 | 'content_shell_lib', |
| 996 | 'content_shell_pak', |
| 997 | # Skia is necessary to ensure the dependencies needed by |
| 998 | # WebContents are included. |
| 999 | '../skia/skia.gyp:skia', |
| 1000 | '<(DEPTH)/media/media.gyp:player_android', |
| 1001 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 1002 | 'sources': [ |
| 1003 | 'shell/android/shell_library_loader.cc', |
| 1004 | 'shell/android/shell_library_loader.h', |
[email protected] | f83a4739 | 2012-07-12 22:15:04 | [diff] [blame] | 1005 | ], |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 1006 | 'conditions': [ |
[email protected] | d999c3cb | 2013-03-12 10:22:36 | [diff] [blame] | 1007 | ['android_webview_build==1', { |
[email protected] | 7abcaa8 | 2012-06-27 17:09:48 | [diff] [blame] | 1008 | 'ldflags': [ |
| 1009 | '-lgabi++', # For rtti |
| 1010 | ], |
| 1011 | }], |
| 1012 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 1013 | }, |
| 1014 | { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1015 | 'target_name': 'content_shell_java', |
| 1016 | 'type': 'none', |
| 1017 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 1018 | 'content.gyp:content_java', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1019 | ], |
| 1020 | 'variables': { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1021 | 'java_in_dir': '../content/shell/android/java', |
| 1022 | 'has_java_resources': 1, |
| 1023 | 'R_package': 'org.chromium.content_shell', |
| 1024 | 'R_package_relpath': 'org/chromium/content_shell', |
| 1025 | }, |
| 1026 | 'includes': [ '../build/java.gypi' ], |
| 1027 | }, |
| 1028 | { |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1029 | # content_shell_apk creates a .jar as a side effect. Any java targets |
| 1030 | # that need that .jar in their classpath should depend on this target, |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1031 | # content_shell_apk_java. Dependents of content_shell_apk receive its |
| 1032 | # jar path in the variable 'apk_output_jar_path'. This target should |
| 1033 | # only be used by targets which instrument content_shell_apk. |
| 1034 | 'target_name': 'content_shell_apk_java', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1035 | 'type': 'none', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1036 | 'dependencies': [ |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1037 | 'content_shell_apk', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1038 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 1039 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 1040 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1041 | { |
| 1042 | 'target_name': 'content_shell_apk', |
| 1043 | 'type': 'none', |
| 1044 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 1045 | 'content.gyp:content_java', |
[email protected] | c48fece0 | 2013-06-19 12:01:42 | [diff] [blame] | 1046 | 'content_java_test_support', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1047 | 'content_shell_java', |
| 1048 | 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1049 | '../base/base.gyp:base_java', |
| 1050 | '../media/media.gyp:media_java', |
| 1051 | '../net/net.gyp:net_java', |
[email protected] | 4e38405 | 2013-08-14 20:46:30 | [diff] [blame] | 1052 | '../tools/android/forwarder/forwarder.gyp:forwarder', |
[email protected] | f450287d | 2013-11-15 17:52:54 | [diff] [blame] | 1053 | '../ui/android/ui_android.gyp:ui_java', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1054 | ], |
| 1055 | 'variables': { |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1056 | 'apk_name': 'ContentShell', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 1057 | 'manifest_package_name': 'org.chromium.content_shell_apk', |
| 1058 | 'java_in_dir': 'shell/android/shell_apk', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 1059 | 'resource_dir': 'shell/android/shell_apk/res', |
[email protected] | e486525 | 2013-04-04 09:15:59 | [diff] [blame] | 1060 | 'native_lib_target': 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1061 | 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'], |
[email protected] | 0437c50 | 2013-11-28 05:17:33 | [diff] [blame] | 1062 | 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1063 | }, |
[email protected] | 5b0095b7 | 2013-08-01 17:44:22 | [diff] [blame] | 1064 | 'conditions': [ |
| 1065 | ['android_webview_build==0', { |
| 1066 | 'dependencies': [ |
| 1067 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
| 1068 | ], |
| 1069 | }], |
| 1070 | ], |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 1071 | 'includes': [ '../build/java_apk.gypi' ], |
| 1072 | }, |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 1073 | ], |
| 1074 | }], # OS=="android" |
[email protected] | 369205f | 2013-10-29 04:35:05 | [diff] [blame] | 1075 | ['OS=="win"', { |
| 1076 | 'targets': [ |
| 1077 | { |
| 1078 | 'target_name': 'content_shell_crash_service', |
| 1079 | 'type': 'executable', |
| 1080 | 'dependencies': [ |
| 1081 | '../base/base.gyp:base', |
| 1082 | '../components/components.gyp:breakpad_crash_service', |
| 1083 | ], |
| 1084 | 'include_dirs': [ |
| 1085 | '..', |
| 1086 | ], |
| 1087 | 'sources': [ |
| 1088 | 'shell/tools/content_shell_crash_service.cc', |
| 1089 | ], |
| 1090 | 'msvs_settings': { |
| 1091 | 'VCLinkerTool': { |
| 1092 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 1093 | }, |
| 1094 | }, |
| 1095 | }, |
| 1096 | ], |
| 1097 | }], # OS=="win" |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 1098 | ['OS=="win" and fastbuild==0 and target_arch=="ia32"', { |
| 1099 | 'variables': { |
| 1100 | 'dest_dir': '<(PRODUCT_DIR)/syzygy', |
| 1101 | }, |
| 1102 | 'targets': [ |
| 1103 | { |
| 1104 | 'target_name': 'content_shell_syzyasan', |
| 1105 | 'type': 'none', |
| 1106 | 'sources' : [], |
| 1107 | # Instrument content_shell with SyzyAsan. |
| 1108 | 'actions': [ |
| 1109 | { |
| 1110 | 'action_name': 'Instrument content_shell with SyzyAsan', |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 1111 | 'inputs': [ |
| 1112 | '<(PRODUCT_DIR)/content_shell.exe', |
| 1113 | ], |
| 1114 | 'outputs': [ |
| 1115 | '<(dest_dir)/content_shell.exe', |
| 1116 | '<(dest_dir)/content_shell.exe.pdb', |
| 1117 | ], |
| 1118 | 'action': [ |
| 1119 | 'python', |
| 1120 | '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py', |
| 1121 | '--mode', 'asan', |
| 1122 | '--input_executable', '<(PRODUCT_DIR)/content_shell.exe', |
| 1123 | '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb', |
| 1124 | '--destination_dir', '<(dest_dir)', |
| 1125 | ], |
| 1126 | }, |
| 1127 | ], |
| 1128 | }, |
| 1129 | ], |
| 1130 | }], # OS=="win" and fastbuild==0 and target_arch=="ia32" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 1131 | ] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 1132 | } |