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