[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] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 30 | 'app/resources/content_resources.gyp:content_resources', |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 31 | 'app/strings/content_strings.gyp:content_strings', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 32 | 'content.gyp:content_app_both', |
| 33 | 'content.gyp:content_browser', |
| 34 | 'content.gyp:content_common', |
| 35 | 'content.gyp:content_gpu', |
| 36 | 'content.gyp:content_plugin', |
| 37 | 'content.gyp:content_ppapi_plugin', |
| 38 | 'content.gyp:content_renderer', |
thestig | bce0267 | 2014-08-26 10:01:34 | [diff] [blame] | 39 | 'content.gyp:content_resources', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 40 | 'content.gyp:content_utility', |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 41 | 'content_shell_resources', |
mostynb | 6a65ae6e | 2015-09-28 13:50:00 | [diff] [blame] | 42 | 'content_test_mojo_bindings', |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 43 | 'copy_test_netscape_plugin', |
[email protected] | 5326cd2f | 2014-04-07 13:35:58 | [diff] [blame] | 44 | 'layouttest_support_content', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 45 | '../base/base.gyp:base', |
[email protected] | 5326cd2f | 2014-04-07 13:35:58 | [diff] [blame] | 46 | '../base/base.gyp:base_static', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 47 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 3856462 | 2014-08-19 02:47:18 | [diff] [blame] | 48 | '../cc/blink/cc_blink.gyp:cc_blink', |
[email protected] | 5326cd2f | 2014-04-07 13:35:58 | [diff] [blame] | 49 | '../cc/cc.gyp:cc', |
mark | d413b2d | 2015-03-13 07:45:40 | [diff] [blame] | 50 | '../components/components.gyp:crash_component_breakpad_mac_to_be_deleted', |
dgozman | f720015 | 2015-04-22 17:48:21 | [diff] [blame] | 51 | '../components/components.gyp:devtools_discovery', |
dgozman | 102fee9 | 2015-04-20 15:45:46 | [diff] [blame] | 52 | '../components/components.gyp:devtools_http_handler', |
hanxi | 149b92d | 2014-09-11 21:57:18 | [diff] [blame] | 53 | '../components/components.gyp:web_cache_renderer', |
chrishtr | 8a377e6 | 2015-06-01 19:20:08 | [diff] [blame] | 54 | '../components/components.gyp:plugins_renderer', |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 55 | '../components/test_runner/test_runner.gyp:test_runner', |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame] | 56 | '../components/url_formatter/url_formatter.gyp:url_formatter', |
scheib | 87f4589 | 2015-01-20 19:19:44 | [diff] [blame] | 57 | '../device/bluetooth/bluetooth.gyp:device_bluetooth', |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 58 | '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks', |
[email protected] | 41fba0e | 2014-01-16 18:19:42 | [diff] [blame] | 59 | '../gin/gin.gyp:gin', |
[email protected] | 5326cd2f | 2014-04-07 13:35:58 | [diff] [blame] | 60 | '../gpu/gpu.gyp:gpu', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 61 | '../ipc/ipc.gyp:ipc', |
acolwell | 9e0840d | 2014-09-06 19:01:32 | [diff] [blame] | 62 | '../media/blink/media_blink.gyp:media_blink', |
[email protected] | 433df47 | 2012-03-07 20:33:39 | [diff] [blame] | 63 | '../media/media.gyp:media', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 64 | '../net/net.gyp:net', |
[email protected] | 24f8069 | 2012-08-13 15:15:50 | [diff] [blame] | 65 | '../net/net.gyp:net_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 66 | '../skia/skia.gyp:skia', |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 67 | '../storage/storage_browser.gyp:storage', |
[email protected] | 3de922f | 2013-12-20 13:27:38 | [diff] [blame] | 68 | '../third_party/WebKit/public/blink.gyp:blink', |
[email protected] | 95f8a14 | 2014-04-24 00:23:58 | [diff] [blame] | 69 | '../third_party/WebKit/public/blink.gyp:blink_test_support', |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 70 | '../testing/gmock.gyp:gmock', |
| 71 | '../testing/gtest.gyp:gtest', |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 72 | '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 73 | '../ui/base/ui_base.gyp:ui_base', |
[email protected] | 114efae | 2013-11-06 20:37:57 | [diff] [blame] | 74 | '../ui/events/events.gyp:events_base', |
[email protected] | 529a3cf | 2013-09-30 02:47:48 | [diff] [blame] | 75 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 76 | '../ui/gfx/gfx.gyp:gfx_geometry', |
[email protected] | ffff5b3 | 2014-06-25 21:31:08 | [diff] [blame] | 77 | '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc', |
[email protected] | 8350f16f | 2012-11-30 00:25:32 | [diff] [blame] | 78 | '../ui/gl/gl.gyp:gl', |
[email protected] | 002cc08f | 2013-06-03 05:40:29 | [diff] [blame] | 79 | '../url/url.gyp:url_lib', |
[email protected] | 12bc28fcb | 2011-09-21 15:53:50 | [diff] [blame] | 80 | '../v8/tools/gyp/v8.gyp:v8', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 81 | ], |
| 82 | 'include_dirs': [ |
| 83 | '..', |
| 84 | ], |
| 85 | 'sources': [ |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 86 | # Note: sources list duplicated in GN build. |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 87 | 'shell/android/shell_jni_registrar.cc', |
| 88 | 'shell/android/shell_jni_registrar.h', |
| 89 | 'shell/android/shell_manager.cc', |
| 90 | 'shell/android/shell_manager.h', |
tfarina | 4d06f57 | 2014-10-17 03:36:48 | [diff] [blame] | 91 | 'shell/app/blink_test_platform_support.h', |
| 92 | 'shell/app/blink_test_platform_support_android.cc', |
| 93 | 'shell/app/blink_test_platform_support_linux.cc', |
| 94 | 'shell/app/blink_test_platform_support_mac.mm', |
| 95 | 'shell/app/blink_test_platform_support_win.cc', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 96 | 'shell/app/paths_mac.h', |
| 97 | 'shell/app/paths_mac.mm', |
rsesek | a0a7a04 | 2014-09-18 23:59:20 | [diff] [blame] | 98 | 'shell/app/shell_crash_reporter_client.cc', |
| 99 | 'shell/app/shell_crash_reporter_client.h', |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 100 | 'shell/app/shell_main_delegate.cc', |
| 101 | 'shell/app/shell_main_delegate.h', |
[email protected] | 2a94e81 | 2013-07-12 15:31:02 | [diff] [blame] | 102 | 'shell/app/shell_main_delegate_mac.h', |
| 103 | 'shell/app/shell_main_delegate_mac.mm', |
tfarina | cde9125 | 2015-05-06 16:10:49 | [diff] [blame] | 104 | 'shell/browser/blink_test_controller.cc', |
| 105 | 'shell/browser/blink_test_controller.h', |
[email protected] | 9cd36bfb | 2014-08-20 00:32:00 | [diff] [blame] | 106 | 'shell/browser/ipc_echo_message_filter.cc', |
| 107 | 'shell/browser/ipc_echo_message_filter.h', |
mkwst | d6805d0d | 2014-10-16 14:44:37 | [diff] [blame] | 108 | 'shell/browser/layout_test/layout_test_android.cc', |
| 109 | 'shell/browser/layout_test/layout_test_android.h', |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 110 | 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc', |
| 111 | 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h', |
jyasskin | 8057c00 | 2015-09-10 19:09:53 | [diff] [blame] | 112 | 'shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc', |
| 113 | 'shell/browser/layout_test/layout_test_bluetooth_chooser_factory.h', |
mkwst | d993d06a | 2014-10-10 11:44:38 | [diff] [blame] | 114 | 'shell/browser/layout_test/layout_test_browser_context.cc', |
| 115 | 'shell/browser/layout_test/layout_test_browser_context.h', |
mkwst | 88e2318 | 2014-10-16 12:08:58 | [diff] [blame] | 116 | 'shell/browser/layout_test/layout_test_browser_main.cc', |
| 117 | 'shell/browser/layout_test/layout_test_browser_main.h', |
mkwst | 36b11b6f | 2014-10-15 16:18:56 | [diff] [blame] | 118 | 'shell/browser/layout_test/layout_test_browser_main_parts.cc', |
| 119 | 'shell/browser/layout_test/layout_test_browser_main_parts.h', |
peter | cd7abb4 | 2014-10-17 13:34:01 | [diff] [blame] | 120 | 'shell/browser/layout_test/layout_test_content_browser_client.cc', |
| 121 | 'shell/browser/layout_test/layout_test_content_browser_client.h', |
mkwst | 30d20d5 | 2014-10-09 13:33:14 | [diff] [blame] | 122 | 'shell/browser/layout_test/layout_test_devtools_frontend.cc', |
| 123 | 'shell/browser/layout_test/layout_test_devtools_frontend.h', |
satorux | 225d7ed | 2015-02-13 02:23:35 | [diff] [blame] | 124 | 'shell/browser/layout_test/layout_test_download_manager_delegate.cc', |
| 125 | 'shell/browser/layout_test/layout_test_download_manager_delegate.h', |
mkwst | 6efe7f2e6 | 2014-10-08 15:09:01 | [diff] [blame] | 126 | 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc', |
| 127 | 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h', |
Peter Beverloo | e8f2f9d | 2014-10-20 16:47:49 | [diff] [blame] | 128 | 'shell/browser/layout_test/layout_test_message_filter.cc', |
| 129 | 'shell/browser/layout_test/layout_test_message_filter.h', |
mek | c918220 | 2015-03-03 17:56:07 | [diff] [blame] | 130 | 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc', |
| 131 | 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h', |
peter | cd7abb4 | 2014-10-17 13:34:01 | [diff] [blame] | 132 | 'shell/browser/layout_test/layout_test_notification_manager.cc', |
| 133 | 'shell/browser/layout_test/layout_test_notification_manager.h', |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 134 | 'shell/browser/layout_test/layout_test_permission_manager.cc', |
tfarina | 8e08285f | 2015-05-02 03:17:39 | [diff] [blame] | 135 | 'shell/browser/layout_test/layout_test_permission_manager.h', |
mvanouwerkerk | de895c9c | 2014-12-06 12:17:32 | [diff] [blame] | 136 | 'shell/browser/layout_test/layout_test_push_messaging_service.cc', |
| 137 | 'shell/browser/layout_test/layout_test_push_messaging_service.h', |
mkwst | 002d0290 | 2014-10-09 10:17:00 | [diff] [blame] | 138 | 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc', |
| 139 | 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h', |
mkwst | 94388f79 | 2014-10-16 07:36:52 | [diff] [blame] | 140 | 'shell/browser/layout_test/layout_test_url_request_context_getter.cc', |
| 141 | 'shell/browser/layout_test/layout_test_url_request_context_getter.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 142 | 'shell/browser/notify_done_forwarder.cc', |
| 143 | 'shell/browser/notify_done_forwarder.h', |
peter | 11d5f56 | 2014-10-23 23:12:25 | [diff] [blame] | 144 | 'shell/browser/shell.cc', |
| 145 | 'shell/browser/shell.h', |
| 146 | 'shell/browser/shell_access_token_store.cc', |
| 147 | 'shell/browser/shell_access_token_store.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 148 | 'shell/browser/shell_android.cc', |
| 149 | 'shell/browser/shell_application_mac.h', |
| 150 | 'shell/browser/shell_application_mac.mm', |
| 151 | 'shell/browser/shell_aura.cc', |
| 152 | 'shell/browser/shell_browser_context.cc', |
| 153 | 'shell/browser/shell_browser_context.h', |
| 154 | 'shell/browser/shell_browser_main.cc', |
| 155 | 'shell/browser/shell_browser_main.h', |
| 156 | 'shell/browser/shell_browser_main_parts.cc', |
| 157 | 'shell/browser/shell_browser_main_parts.h', |
| 158 | 'shell/browser/shell_browser_main_parts_mac.mm', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 159 | 'shell/browser/shell_content_browser_client.cc', |
| 160 | 'shell/browser/shell_content_browser_client.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 161 | 'shell/browser/shell_devtools_frontend.cc', |
| 162 | 'shell/browser/shell_devtools_frontend.h', |
satorux | 225d7ed | 2015-02-13 02:23:35 | [diff] [blame] | 163 | 'shell/browser/shell_devtools_manager_delegate.cc', |
| 164 | 'shell/browser/shell_devtools_manager_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 165 | 'shell/browser/shell_download_manager_delegate.cc', |
| 166 | 'shell/browser/shell_download_manager_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 167 | 'shell/browser/shell_javascript_dialog.h', |
| 168 | 'shell/browser/shell_javascript_dialog_mac.mm', |
| 169 | 'shell/browser/shell_javascript_dialog_manager.cc', |
| 170 | 'shell/browser/shell_javascript_dialog_manager.h', |
| 171 | 'shell/browser/shell_javascript_dialog_win.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 172 | 'shell/browser/shell_login_dialog.cc', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 173 | 'shell/browser/shell_login_dialog.h', |
| 174 | 'shell/browser/shell_login_dialog_mac.mm', |
| 175 | 'shell/browser/shell_mac.mm', |
satorux | 225d7ed | 2015-02-13 02:23:35 | [diff] [blame] | 176 | 'shell/browser/shell_mojo_test_utils_android.cc', |
| 177 | 'shell/browser/shell_mojo_test_utils_android.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 178 | 'shell/browser/shell_net_log.cc', |
| 179 | 'shell/browser/shell_net_log.h', |
| 180 | 'shell/browser/shell_network_delegate.cc', |
| 181 | 'shell/browser/shell_network_delegate.h', |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 182 | 'shell/browser/shell_permission_manager.cc', |
| 183 | 'shell/browser/shell_permission_manager.h', |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 184 | 'shell/browser/shell_platform_data_aura.cc', |
| 185 | 'shell/browser/shell_platform_data_aura.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 186 | 'shell/browser/shell_plugin_service_filter.cc', |
| 187 | 'shell/browser/shell_plugin_service_filter.h', |
| 188 | 'shell/browser/shell_quota_permission_context.cc', |
| 189 | 'shell/browser/shell_quota_permission_context.h', |
| 190 | 'shell/browser/shell_resource_dispatcher_host_delegate.cc', |
| 191 | 'shell/browser/shell_resource_dispatcher_host_delegate.h', |
[email protected] | 9896c55 | 2013-08-29 19:03:20 | [diff] [blame] | 192 | 'shell/browser/shell_speech_recognition_manager_delegate.cc', |
| 193 | 'shell/browser/shell_speech_recognition_manager_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 194 | 'shell/browser/shell_url_request_context_getter.cc', |
| 195 | 'shell/browser/shell_url_request_context_getter.h', |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 196 | 'shell/browser/shell_views.cc', |
satorux | 225d7ed | 2015-02-13 02:23:35 | [diff] [blame] | 197 | 'shell/browser/shell_web_contents_view_delegate.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 198 | 'shell/browser/shell_web_contents_view_delegate_android.cc', |
| 199 | 'shell/browser/shell_web_contents_view_delegate_creator.h', |
[email protected] | de7d61ff | 2013-08-20 11:30:41 | [diff] [blame] | 200 | 'shell/browser/shell_web_contents_view_delegate_mac.mm', |
| 201 | 'shell/browser/shell_web_contents_view_delegate_win.cc', |
peter | e0420359 | 2014-10-27 17:57:35 | [diff] [blame] | 202 | 'shell/common/layout_test/layout_test_messages.cc', |
| 203 | 'shell/common/layout_test/layout_test_messages.h', |
[email protected] | 4562cf7 | 2014-01-27 10:10:13 | [diff] [blame] | 204 | 'shell/common/leak_detection_result.h', |
[email protected] | b7c504c | 2013-05-07 14:42:12 | [diff] [blame] | 205 | 'shell/common/shell_content_client.cc', |
| 206 | 'shell/common/shell_content_client.h', |
| 207 | 'shell/common/shell_messages.cc', |
| 208 | 'shell/common/shell_messages.h', |
| 209 | 'shell/common/shell_switches.cc', |
| 210 | 'shell/common/shell_switches.h', |
| 211 | 'shell/common/shell_test_configuration.cc', |
| 212 | 'shell/common/shell_test_configuration.h', |
jochen | 284435c | 2014-10-02 13:08:23 | [diff] [blame] | 213 | 'shell/common/v8_breakpad_support_win.cc', |
| 214 | 'shell/common/v8_breakpad_support_win.h', |
[email protected] | 9cd36bfb | 2014-08-20 00:32:00 | [diff] [blame] | 215 | 'shell/renderer/ipc_echo.cc', |
| 216 | 'shell/renderer/ipc_echo.h', |
tfarina | 685c3980 | 2015-05-04 22:11:22 | [diff] [blame] | 217 | 'shell/renderer/layout_test/blink_test_helpers.cc', |
| 218 | 'shell/renderer/layout_test/blink_test_helpers.h', |
tfarina | 8e08285f | 2015-05-02 03:17:39 | [diff] [blame] | 219 | 'shell/renderer/layout_test/blink_test_runner.cc', |
| 220 | 'shell/renderer/layout_test/blink_test_runner.h', |
mkwst | 04b72d1 | 2014-10-08 15:52:55 | [diff] [blame] | 221 | 'shell/renderer/layout_test/gc_controller.cc', |
| 222 | 'shell/renderer/layout_test/gc_controller.h', |
mkwst | 02ec0d6 | 2014-10-07 22:07:29 | [diff] [blame] | 223 | 'shell/renderer/layout_test/layout_test_content_renderer_client.cc', |
| 224 | 'shell/renderer/layout_test/layout_test_content_renderer_client.h', |
mkwst | 3e72c1f | 2014-10-08 05:02:36 | [diff] [blame] | 225 | 'shell/renderer/layout_test/layout_test_render_frame_observer.cc', |
| 226 | 'shell/renderer/layout_test/layout_test_render_frame_observer.h', |
mkwst | 99069fc | 2014-10-08 06:13:28 | [diff] [blame] | 227 | 'shell/renderer/layout_test/layout_test_render_process_observer.cc', |
| 228 | 'shell/renderer/layout_test/layout_test_render_process_observer.h', |
mkwst | 04b72d1 | 2014-10-08 15:52:55 | [diff] [blame] | 229 | 'shell/renderer/layout_test/leak_detector.cc', |
| 230 | 'shell/renderer/layout_test/leak_detector.h', |
jochen | 5126513 | 2015-05-28 07:33:45 | [diff] [blame] | 231 | 'shell/renderer/layout_test/test_media_stream_renderer_factory.cc', |
| 232 | 'shell/renderer/layout_test/test_media_stream_renderer_factory.h', |
| 233 | 'shell/renderer/layout_test/test_video_frame_provider.cc', |
| 234 | 'shell/renderer/layout_test/test_video_frame_provider.h', |
[email protected] | f7a4e3b9 | 2013-05-03 15:29:58 | [diff] [blame] | 235 | 'shell/renderer/shell_content_renderer_client.cc', |
| 236 | 'shell/renderer/shell_content_renderer_client.h', |
[email protected] | 81914ad | 2013-07-02 18:54:25 | [diff] [blame] | 237 | 'shell/renderer/shell_render_view_observer.cc', |
| 238 | 'shell/renderer/shell_render_view_observer.h', |
rockot | b814a58 | 2015-06-05 00:30:52 | [diff] [blame] | 239 | 'shell/utility/shell_content_utility_client.cc', |
| 240 | 'shell/utility/shell_content_utility_client.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 241 | ], |
| 242 | 'msvs_settings': { |
| 243 | 'VCLinkerTool': { |
| 244 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 245 | }, |
| 246 | }, |
| 247 | 'conditions': [ |
| 248 | ['OS=="win" and win_use_allocator_shim==1', { |
| 249 | 'dependencies': [ |
| 250 | '../base/allocator/allocator.gyp:allocator', |
| 251 | ], |
| 252 | }], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 253 | ['OS=="win"', { |
| 254 | 'resource_include_dirs': [ |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 255 | '<(SHARED_INTERMEDIATE_DIR)/content/app/strings', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 256 | ], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 257 | 'dependencies': [ |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 258 | '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 259 | ], |
| 260 | 'configurations': { |
| 261 | 'Debug_Base': { |
| 262 | 'msvs_settings': { |
| 263 | 'VCLinkerTool': { |
| 264 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 265 | }, |
| 266 | }, |
| 267 | }, |
| 268 | }, |
[email protected] | 3bed530 | 2013-02-15 19:31:41 | [diff] [blame] | 269 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 270 | 'msvs_disabled_warnings': [ 4267, ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 271 | }], # OS=="win" |
[email protected] | 6eb6bb6 | 2012-11-10 06:30:59 | [diff] [blame] | 272 | ['OS=="linux"', { |
| 273 | 'dependencies': [ |
| 274 | '../build/linux/system.gyp:fontconfig', |
| 275 | ], |
| 276 | }], |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 277 | ['use_x11 == 1', { |
| 278 | 'dependencies': [ |
dnicoara | 78a73470 | 2014-11-04 19:54:38 | [diff] [blame] | 279 | '../ui/events/devices/events_devices.gyp:events_devices', |
[email protected] | 6b911a3 | 2014-01-10 02:34:53 | [diff] [blame] | 280 | '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 281 | ], |
| 282 | }], |
[email protected] | 689266d | 2012-08-07 12:52:20 | [diff] [blame] | 283 | ['OS=="android"', { |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 284 | 'dependencies': [ |
ppi | f581fe9 | 2014-10-08 18:52:19 | [diff] [blame] | 285 | '../mojo/mojo_base.gyp:libmojo_system_java', |
[email protected] | 82e9e2b1 | 2012-07-19 00:32:01 | [diff] [blame] | 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" |
torne | 1b1c978 | 2015-03-30 20:49:00 | [diff] [blame] | 292 | ['os_posix == 1 and OS != "mac"', { |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 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 | }, |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 366 | 'dependencies': [ |
| 367 | '../components/test_runner/test_runner.gyp:resources', |
| 368 | ], |
[email protected] | 5c94e99 | 2014-05-11 14:22:06 | [diff] [blame] | 369 | 'actions': [ |
| 370 | { |
| 371 | 'action_name': 'generate_content_shell_resources', |
| 372 | 'variables': { |
| 373 | 'grit_grd_file': 'shell/shell_resources.grd', |
| 374 | }, |
| 375 | 'includes': [ '../build/grit_action.gypi' ], |
| 376 | }, |
| 377 | ], |
[email protected] | b581eb40 | 2012-03-09 01:31:46 | [diff] [blame] | 378 | 'includes': [ '../build/grit_target.gypi' ], |
| 379 | 'copies': [ |
| 380 | { |
| 381 | 'destination': '<(PRODUCT_DIR)', |
| 382 | 'files': [ |
| 383 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' |
| 384 | ], |
| 385 | }, |
| 386 | ], |
[email protected] | 4cb792f4 | 2012-03-24 03:12:42 | [diff] [blame] | 387 | }, |
| 388 | { |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 389 | # We build a minimal set of resources so WebKit in content_shell has |
| 390 | # access to necessary resources. |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 391 | # GN version: //content/shell:pak |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 392 | 'target_name': 'content_shell_pak', |
| 393 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 394 | 'dependencies': [ |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 395 | 'app/resources/content_resources.gyp:content_resources', |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 396 | 'app/strings/content_strings.gyp:content_strings', |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 397 | 'browser/tracing/tracing_resources.gyp:tracing_resources', |
thestig | bce0267 | 2014-08-26 10:01:34 | [diff] [blame] | 398 | 'content.gyp:content_resources', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 399 | 'content_shell_resources', |
[email protected] | 06c5416 | 2013-06-10 00:25:05 | [diff] [blame] | 400 | '<(DEPTH)/net/net.gyp:net_resources', |
[email protected] | 1400d1d | 2014-07-25 07:49:59 | [diff] [blame] | 401 | '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources', |
[email protected] | 1c0c3f4 | 2013-11-20 02:03:28 | [diff] [blame] | 402 | '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', |
[email protected] | e3d7486 | 2014-05-18 14:12:27 | [diff] [blame] | 403 | '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 404 | ], |
[email protected] | 3df230d | 2013-07-03 00:44:57 | [diff] [blame] | 405 | 'conditions': [ |
[email protected] | 8dffd2c | 2013-12-02 14:14:38 | [diff] [blame] | 406 | ['OS!="android"', { |
| 407 | 'dependencies': [ |
| 408 | 'browser/devtools/devtools_resources.gyp:devtools_resources', |
| 409 | ], |
| 410 | }], |
vivek.vg | e136a865 | 2014-09-05 10:51:28 | [diff] [blame] | 411 | ['OS=="android"', { |
| 412 | 'copies': [ |
| 413 | { |
| 414 | 'destination': '<(PRODUCT_DIR)', |
| 415 | 'files': [ |
| 416 | '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak' |
| 417 | ], |
| 418 | }, |
| 419 | ], |
| 420 | }], |
sadrul | 7bd20c9 | 2015-06-24 16:45:44 | [diff] [blame] | 421 | ['toolkit_views==1', { |
| 422 | 'dependencies': [ |
| 423 | '<(DEPTH)/ui/views/resources/views_resources.gyp:views_resources' |
| 424 | ], |
| 425 | }], |
[email protected] | 3df230d | 2013-07-03 00:44:57 | [diff] [blame] | 426 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 427 | 'actions': [ |
| 428 | { |
| 429 | 'action_name': 'repack_content_shell_pack', |
| 430 | 'variables': { |
| 431 | 'pak_inputs': [ |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 432 | '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak', |
| 433 | '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak', |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 434 | '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak', |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 435 | '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak', |
[email protected] | 479bea2 | 2013-07-02 21:46:06 | [diff] [blame] | 436 | '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak', |
[email protected] | 1400d1d | 2014-07-25 07:49:59 | [diff] [blame] | 437 | '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame] | 438 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 439 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
[email protected] | a3c13435 | 2014-07-11 19:23:19 | [diff] [blame] | 440 | '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak', |
| 441 | '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak', |
[email protected] | d232922 | 2014-07-18 07:14:22 | [diff] [blame] | 442 | '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak', |
[email protected] | a3c13435 | 2014-07-11 19:23:19 | [diff] [blame] | 443 | '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 444 | ], |
[email protected] | 01bdc920 | 2014-03-28 21:11:20 | [diff] [blame] | 445 | 'conditions': [ |
sadrul | 7bd20c9 | 2015-06-24 16:45:44 | [diff] [blame] | 446 | ['toolkit_views==1', { |
| 447 | 'pak_inputs': [ |
| 448 | '<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_100_percent.pak', |
| 449 | ], |
| 450 | }], |
[email protected] | 01bdc920 | 2014-03-28 21:11:20 | [diff] [blame] | 451 | ['OS!="android"', { |
vivek.vg | 77816a1 | 2014-12-18 14:28:20 | [diff] [blame] | 452 | 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',], |
[email protected] | 01bdc920 | 2014-03-28 21:11:20 | [diff] [blame] | 453 | 'pak_output': '<(PRODUCT_DIR)/content_shell.pak', |
| 454 | }, { |
| 455 | 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 456 | }], |
| 457 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 458 | }, |
[email protected] | 01bdc920 | 2014-03-28 21:11:20 | [diff] [blame] | 459 | 'includes': [ '../build/repack_action.gypi' ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 460 | }, |
| 461 | ], |
| 462 | }, |
| 463 | { |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 464 | # GN version: //content/shell:content_shell |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 465 | 'target_name': 'content_shell', |
| 466 | 'type': 'executable', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 467 | 'mac_bundle': 1, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 468 | 'variables': { |
| 469 | 'chromium_code': 1, |
| 470 | }, |
| 471 | 'dependencies': [ |
| 472 | 'content_shell_lib', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 473 | 'content_shell_pak', |
[email protected] | bb5d2d9 | 2012-10-15 07:45:42 | [diff] [blame] | 474 | '../third_party/mesa/mesa.gyp:osmesa', |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 475 | '../tools/imagediff/image_diff.gyp:image_diff', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 476 | ], |
| 477 | 'include_dirs': [ |
| 478 | '..', |
| 479 | ], |
| 480 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 481 | 'shell/app/shell_main.cc', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 482 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 483 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 484 | 'shell/app/app.icns', |
| 485 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 486 | ], |
| 487 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 488 | # be necessary to list app-Info.plist once, not the three times it is |
| 489 | # listed here. |
| 490 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 491 | 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 492 | ], |
| 493 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 494 | 'INFOPLIST_FILE': 'shell/app/app-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 495 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 496 | 'msvs_settings': { |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 497 | 'VCManifestTool': { |
[email protected] | 5d60b0b | 2013-07-30 20:24:30 | [diff] [blame] | 498 | 'AdditionalManifestFiles': [ |
| 499 | 'shell/app/shell.exe.manifest', |
| 500 | ], |
[email protected] | 3062492 | 2013-06-04 10:40:10 | [diff] [blame] | 501 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 502 | }, |
| 503 | 'conditions': [ |
| 504 | ['OS=="win" and win_use_allocator_shim==1', { |
| 505 | 'dependencies': [ |
| 506 | '../base/allocator/allocator.gyp:allocator', |
| 507 | ], |
| 508 | }], |
| 509 | ['OS=="win"', { |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 510 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 511 | 'shell/app/shell.rc', |
[email protected] | 7fc8382 | 2012-03-30 19:53:29 | [diff] [blame] | 512 | ], |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 513 | 'configurations': { |
| 514 | 'Debug_Base': { |
| 515 | 'msvs_settings': { |
| 516 | 'VCLinkerTool': { |
| 517 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 518 | }, |
| 519 | }, |
| 520 | }, |
| 521 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 522 | }], # OS=="win" |
[email protected] | c997bc4 | 2014-04-11 18:25:58 | [diff] [blame] | 523 | ['OS == "win"', { |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 524 | 'dependencies': [ |
| 525 | '../sandbox/sandbox.gyp:sandbox', |
| 526 | ], |
[email protected] | c997bc4 | 2014-04-11 18:25:58 | [diff] [blame] | 527 | }], # OS=="win" |
[email protected] | 78539df | 2014-07-16 22:34:22 | [diff] [blame] | 528 | ['OS=="win" and asan==0', { |
| 529 | 'msvs_settings': { |
| 530 | 'VCLinkerTool': { |
| 531 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 532 | }, |
| 533 | }, |
| 534 | }], # OS=="win" and asan==0 |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 535 | ['OS=="mac"', { |
| 536 | 'product_name': '<(content_shell_product_name)', |
| 537 | 'dependencies!': [ |
| 538 | 'content_shell_lib', |
| 539 | ], |
| 540 | 'dependencies': [ |
| 541 | 'content_shell_framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 542 | 'content_shell_helper_app', |
| 543 | ], |
| 544 | 'copies': [ |
| 545 | { |
| 546 | 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks', |
| 547 | 'files': [ |
| 548 | '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app', |
| 549 | ], |
| 550 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 551 | ], |
| 552 | 'postbuilds': [ |
| 553 | { |
| 554 | 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework', |
| 555 | 'action': [ |
| 556 | '../build/mac/copy_framework_unversioned.sh', |
| 557 | '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework', |
| 558 | '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
| 559 | ], |
| 560 | }, |
| 561 | { |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 562 | # Modify the Info.plist as needed. |
| 563 | 'postbuild_name': 'Tweak Info.plist', |
| 564 | 'action': ['../build/mac/tweak_info_plist.py', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 565 | '--scm=1', |
| 566 | '--version=<(content_shell_version)'], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 567 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 568 | ], |
| 569 | }], # OS=="mac" |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 570 | ['OS=="android"', { |
torne | 1b1c978 | 2015-03-30 20:49:00 | [diff] [blame] | 571 | 'dependencies': [ |
| 572 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
| 573 | ], |
[email protected] | 331d169 | 2013-07-25 20:40:13 | [diff] [blame] | 574 | 'dependencies!': [ |
| 575 | '../tools/imagediff/image_diff.gyp:image_diff', |
| 576 | ], |
| 577 | }], # OS=="android" |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 578 | ], |
| 579 | }, |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 580 | { |
| 581 | 'target_name': 'content_shell_builder', |
| 582 | 'type': 'none', |
| 583 | 'dependencies': [ |
| 584 | 'content_shell', |
[email protected] | fe2420d | 2012-08-21 07:28:33 | [diff] [blame] | 585 | ], |
| 586 | }, |
[email protected] | 9f3ecf4 | 2014-05-07 18:21:06 | [diff] [blame] | 587 | |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 588 | { |
| 589 | 'target_name': 'test_netscape_plugin', |
| 590 | 'type': 'loadable_module', |
| 591 | 'sources': [ |
| 592 | 'shell/tools/plugin/PluginObject.cpp', |
| 593 | 'shell/tools/plugin/PluginObject.h', |
| 594 | 'shell/tools/plugin/PluginObjectMac.mm', |
| 595 | 'shell/tools/plugin/PluginTest.cpp', |
| 596 | 'shell/tools/plugin/PluginTest.h', |
| 597 | 'shell/tools/plugin/TestObject.cpp', |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 598 | 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp', |
| 599 | 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp', |
| 600 | 'shell/tools/plugin/Tests/FormValue.cpp', |
| 601 | 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp', |
| 602 | 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp', |
| 603 | 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp', |
| 604 | 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp', |
| 605 | 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp', |
| 606 | 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp', |
| 607 | 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp', |
| 608 | 'shell/tools/plugin/Tests/NPPNewFails.cpp', |
| 609 | 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp', |
| 610 | 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp', |
| 611 | 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp', |
| 612 | 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp', |
| 613 | 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp', |
| 614 | 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp', |
| 615 | 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp', |
| 616 | 'shell/tools/plugin/main.cpp', |
[email protected] | 0516a59 | 2014-02-13 00:10:04 | [diff] [blame] | 617 | 'shell/tools/plugin/test_object.h', |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 618 | ], |
| 619 | 'include_dirs': [ |
| 620 | '<(DEPTH)', |
| 621 | '<(DEPTH)/content/shell/tools/plugin/', |
| 622 | ], |
| 623 | 'dependencies': [ |
| 624 | '../base/base.gyp:base', |
| 625 | '../third_party/npapi/npapi.gyp:npapi', |
| 626 | ], |
| 627 | 'conditions': [ |
| 628 | ['OS=="mac"', { |
| 629 | 'mac_bundle': 1, |
| 630 | 'product_extension': 'plugin', |
| 631 | 'link_settings': { |
| 632 | 'libraries': [ |
| 633 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 634 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 635 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 636 | ] |
| 637 | }, |
| 638 | 'xcode_settings': { |
| 639 | 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', |
| 640 | 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist', |
| 641 | }, |
| 642 | }], |
| 643 | ['os_posix == 1 and OS != "mac"', { |
| 644 | 'cflags': [ |
| 645 | '-fvisibility=default', |
| 646 | ], |
| 647 | }], |
thakis | 603fc87 | 2015-01-19 05:42:29 | [diff] [blame] | 648 | ['use_x11 == 1', { |
| 649 | 'dependencies': [ '../build/linux/system.gyp:x11' ], |
| 650 | }], |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 651 | ['OS=="win"', { |
brucedawson | 2622e27 | 2015-04-08 00:13:54 | [diff] [blame] | 652 | 'conditions': [ |
| 653 | ['MSVS_VERSION < "2015"', { |
| 654 | 'defines': [ |
| 655 | # This seems like a hack, but this is what Safari Win does. |
| 656 | # Luckily it is no longer needed/allowed with VS 2015. |
| 657 | 'snprintf=_snprintf', |
| 658 | ], |
| 659 | }], |
[email protected] | de28fed2e | 2014-02-01 14:36:32 | [diff] [blame] | 660 | ], |
| 661 | 'sources': [ |
| 662 | 'shell/tools/plugin/win/TestNetscapePlugin.def', |
| 663 | 'shell/tools/plugin/win/TestNetscapePlugin.rc', |
| 664 | ], |
| 665 | # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll. |
| 666 | 'product_name': 'np_test_netscape_plugin', |
| 667 | # Disable c4267 warnings until we fix size_t to int truncations. |
| 668 | 'msvs_disabled_warnings': [ 4267, ], |
| 669 | }], |
| 670 | ], |
| 671 | }, |
| 672 | { |
| 673 | 'target_name': 'copy_test_netscape_plugin', |
| 674 | 'type': 'none', |
| 675 | 'dependencies': [ |
| 676 | 'test_netscape_plugin', |
| 677 | ], |
| 678 | 'conditions': [ |
| 679 | ['OS=="win"', { |
| 680 | 'copies': [{ |
| 681 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 682 | 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'], |
| 683 | }], |
| 684 | }], |
| 685 | ['OS=="mac"', { |
| 686 | 'copies': [{ |
| 687 | 'destination': '<(PRODUCT_DIR)/plugins/', |
| 688 | 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'], |
| 689 | }], |
| 690 | }], |
| 691 | ['os_posix == 1 and OS != "mac"', { |
| 692 | 'copies': [{ |
| 693 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 694 | 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'], |
| 695 | }], |
| 696 | }], |
| 697 | ], |
| 698 | } |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 699 | ], |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 700 | 'conditions': [ |
| 701 | ['OS=="mac"', { |
| 702 | 'targets': [ |
| 703 | { |
| 704 | 'target_name': 'content_shell_framework', |
| 705 | 'type': 'shared_library', |
| 706 | 'product_name': '<(content_shell_product_name) Framework', |
| 707 | 'mac_bundle': 1, |
| 708 | 'mac_bundle_resources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 709 | 'shell/app/English.lproj/HttpAuth.xib', |
| 710 | 'shell/app/English.lproj/MainMenu.xib', |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 711 | '<(PRODUCT_DIR)/content_shell.pak', |
| 712 | 'shell/app/framework-Info.plist', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 713 | ], |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 714 | 'mac_bundle_resources!': [ |
| 715 | 'shell/app/framework-Info.plist', |
| 716 | ], |
| 717 | 'xcode_settings': { |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 718 | # The framework is placed within the .app's Framework |
| 719 | # directory. DYLIB_INSTALL_NAME_BASE and |
| 720 | # LD_DYLIB_INSTALL_NAME affect -install_name. |
| 721 | 'DYLIB_INSTALL_NAME_BASE': |
| 722 | '@executable_path/../Frameworks', |
| 723 | # See /build/mac/copy_framework_unversioned.sh for |
| 724 | # information on LD_DYLIB_INSTALL_NAME. |
| 725 | 'LD_DYLIB_INSTALL_NAME': |
| 726 | '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)', |
| 727 | |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 728 | 'INFOPLIST_FILE': 'shell/app/framework-Info.plist', |
| 729 | }, |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 730 | 'dependencies': [ |
| 731 | 'content_shell_lib', |
| 732 | ], |
| 733 | 'include_dirs': [ |
| 734 | '..', |
| 735 | ], |
| 736 | 'sources': [ |
[email protected] | 4642f5b | 2013-07-03 21:43:31 | [diff] [blame] | 737 | 'shell/app/shell_content_main.cc', |
[email protected] | 216161f | 2013-07-02 16:23:20 | [diff] [blame] | 738 | 'shell/app/shell_content_main.h', |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 739 | ], |
[email protected] | 30c246bc | 2014-01-28 06:00:04 | [diff] [blame] | 740 | 'postbuilds': [ |
| 741 | { |
| 742 | # Modify the Info.plist as needed. The script explains why |
| 743 | # this is needed. This is also done in the chrome target. |
| 744 | # The framework needs the Breakpad keys if this feature is |
| 745 | # enabled. It does not need the Keystone keys; these always |
| 746 | # come from the outer application bundle. The framework |
| 747 | # doesn't currently use the SCM keys for anything, |
| 748 | # but this seems like a really good place to store them. |
| 749 | 'postbuild_name': 'Tweak Info.plist', |
| 750 | 'action': ['../build/mac/tweak_info_plist.py', |
| 751 | '--breakpad=1', |
| 752 | '--keystone=0', |
| 753 | '--scm=1', |
| 754 | '--version=<(content_shell_version)', |
| 755 | '--branding=<(content_shell_product_name)'], |
| 756 | }, |
| 757 | ], |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 758 | 'copies': [ |
| 759 | { |
[email protected] | a7aa8ab | 2013-10-24 07:21:48 | [diff] [blame] | 760 | 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources', |
| 761 | 'files': [ |
| 762 | '<(PRODUCT_DIR)/crash_inspector', |
| 763 | '<(PRODUCT_DIR)/crash_report_sender.app' |
| 764 | ], |
| 765 | }, |
[email protected] | 5d96bbe | 2012-07-25 17:13:23 | [diff] [blame] | 766 | ], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 767 | 'conditions': [ |
[email protected] | 30c246bc | 2014-01-28 06:00:04 | [diff] [blame] | 768 | ['icu_use_data_file_flag==1', { |
| 769 | 'mac_bundle_resources': [ |
| 770 | '<(PRODUCT_DIR)/icudtl.dat', |
| 771 | ], |
| 772 | }], |
baixo | 51f683a | 2014-11-28 13:05:25 | [diff] [blame] | 773 | ['v8_use_external_startup_data==1', { |
| 774 | 'mac_bundle_resources': [ |
| 775 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 776 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 777 | ], |
| 778 | }], |
[email protected] | fda1c6c8 | 2013-04-09 16:10:12 | [diff] [blame] | 779 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 780 | }, # target content_shell_framework |
| 781 | { |
| 782 | 'target_name': 'content_shell_helper_app', |
| 783 | 'type': 'executable', |
| 784 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 785 | 'product_name': '<(content_shell_product_name) Helper', |
| 786 | 'mac_bundle': 1, |
| 787 | 'dependencies': [ |
| 788 | 'content_shell_framework', |
| 789 | ], |
| 790 | 'sources': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 791 | 'shell/app/shell_main.cc', |
| 792 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 793 | ], |
| 794 | # TODO(mark): Come up with a fancier way to do this. It should only |
| 795 | # be necessary to list helper-Info.plist once, not the three times it |
| 796 | # is listed here. |
| 797 | 'mac_bundle_resources!': [ |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 798 | 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 799 | ], |
| 800 | # TODO(mark): For now, don't put any resources into this app. Its |
| 801 | # resources directory will be a symbolic link to the browser app's |
| 802 | # resources directory. |
| 803 | 'mac_bundle_resources/': [ |
| 804 | ['exclude', '.*'], |
| 805 | ], |
| 806 | 'xcode_settings': { |
[email protected] | 993951d | 2013-05-08 21:37:02 | [diff] [blame] | 807 | 'INFOPLIST_FILE': 'shell/app/helper-Info.plist', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 808 | }, |
| 809 | 'postbuilds': [ |
| 810 | { |
| 811 | # The framework defines its load-time path |
| 812 | # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| 813 | # (chrome). A different relative path needs to be used in |
| 814 | # content_shell_helper_app. |
| 815 | 'postbuild_name': 'Fix Framework Link', |
| 816 | 'action': [ |
| 817 | 'install_name_tool', |
| 818 | '-change', |
[email protected] | 6efed47 | 2013-11-01 02:09:34 | [diff] [blame] | 819 | '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
| 820 | '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework', |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 821 | '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 822 | ], |
| 823 | }, |
| 824 | { |
| 825 | # Modify the Info.plist as needed. The script explains why this |
| 826 | # is needed. This is also done in the chrome and chrome_dll |
[email protected] | bbf5244 | 2012-08-23 22:53:18 | [diff] [blame] | 827 | # targets. In this case, --breakpad=0, --keystone=0, and --scm=0 |
| 828 | # are used because Breakpad, Keystone, and SCM keys are |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 829 | # never placed into the helper. |
| 830 | 'postbuild_name': 'Tweak Info.plist', |
| 831 | 'action': ['../build/mac/tweak_info_plist.py', |
| 832 | '--breakpad=0', |
| 833 | '--keystone=0', |
[email protected] | 6d30291 | 2012-11-05 21:57:28 | [diff] [blame] | 834 | '--scm=0', |
| 835 | '--version=<(content_shell_version)'], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 836 | }, |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 837 | ], |
[email protected] | ec40c38f | 2012-06-28 16:37:49 | [diff] [blame] | 838 | 'conditions': [ |
| 839 | ['component=="shared_library"', { |
| 840 | 'xcode_settings': { |
| 841 | 'LD_RUNPATH_SEARCH_PATHS': [ |
| 842 | # Get back from Content Shell.app/Contents/Frameworks/ |
| 843 | # Helper.app/Contents/MacOS |
| 844 | '@loader_path/../../../../../..', |
| 845 | ], |
| 846 | }, |
| 847 | }], |
| 848 | ], |
[email protected] | 180df8f | 2012-03-09 22:36:10 | [diff] [blame] | 849 | }, # target content_shell_helper_app |
[email protected] | 85ff1604 | 2012-03-06 23:46:34 | [diff] [blame] | 850 | ], |
| 851 | }], # OS=="mac" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 852 | ['OS=="android"', { |
| 853 | 'targets': [ |
| 854 | { |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 855 | # TODO(jrg): Update this action and other jni generators to only |
| 856 | # require specifying the java directory and generate the rest. |
| 857 | 'target_name': 'content_shell_jni_headers', |
| 858 | 'type': 'none', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 859 | 'sources': [ |
[email protected] | eadcff0f | 2013-06-20 21:08:10 | [diff] [blame] | 860 | 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java', |
ppi | f581fe9 | 2014-10-08 18:52:19 | [diff] [blame] | 861 | 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java', |
[email protected] | e46f6615 | 2012-07-19 20:02:55 | [diff] [blame] | 862 | 'shell/android/java/src/org/chromium/content_shell/ShellManager.java', |
| 863 | 'shell/android/java/src/org/chromium/content_shell/Shell.java', |
| 864 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 865 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 866 | 'jni_gen_package': 'content/shell', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 867 | }, |
| 868 | 'includes': [ '../build/jni_generator.gypi' ], |
| 869 | }, |
| 870 | { |
[email protected] | c110158 | 2012-06-25 17:07:18 | [diff] [blame] | 871 | 'target_name': 'libcontent_shell_content_view', |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 872 | 'type': 'shared_library', |
| 873 | 'dependencies': [ |
| 874 | 'content_shell_jni_headers', |
| 875 | 'content_shell_lib', |
| 876 | 'content_shell_pak', |
| 877 | # Skia is necessary to ensure the dependencies needed by |
| 878 | # WebContents are included. |
| 879 | '../skia/skia.gyp:skia', |
| 880 | '<(DEPTH)/media/media.gyp:player_android', |
| 881 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 882 | 'sources': [ |
| 883 | 'shell/android/shell_library_loader.cc', |
[email protected] | f83a4739 | 2012-07-12 22:15:04 | [diff] [blame] | 884 | ], |
[email protected] | a08029b4 | 2012-04-25 03:18:46 | [diff] [blame] | 885 | }, |
| 886 | { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 887 | 'target_name': 'content_shell_java', |
| 888 | 'type': 'none', |
| 889 | 'dependencies': [ |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 890 | 'content.gyp:content_java', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 891 | ], |
| 892 | 'variables': { |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 893 | 'java_in_dir': '../content/shell/android/java', |
| 894 | 'has_java_resources': 1, |
| 895 | 'R_package': 'org.chromium.content_shell', |
| 896 | 'R_package_relpath': 'org/chromium/content_shell', |
| 897 | }, |
| 898 | 'includes': [ '../build/java.gypi' ], |
| 899 | }, |
| 900 | { |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 901 | # content_shell_apk creates a .jar as a side effect. Any java targets |
| 902 | # that need that .jar in their classpath should depend on this target, |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 903 | # content_shell_apk_java. Dependents of content_shell_apk receive its |
| 904 | # jar path in the variable 'apk_output_jar_path'. This target should |
| 905 | # only be used by targets which instrument content_shell_apk. |
| 906 | 'target_name': 'content_shell_apk_java', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 907 | 'type': 'none', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 908 | 'dependencies': [ |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 909 | 'content_shell_apk', |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 910 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 911 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 319d6a8 | 2012-09-20 22:52:28 | [diff] [blame] | 912 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 913 | { |
sievers | 0350cad | 2014-12-03 23:50:55 | [diff] [blame] | 914 | # GN version: //content/shell/android:content_shell_manifest |
| 915 | 'target_name': 'content_shell_manifest', |
| 916 | 'type': 'none', |
| 917 | 'variables': { |
sievers | 4c08a9c | 2014-12-05 01:57:28 | [diff] [blame] | 918 | 'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'], |
sievers | 0350cad | 2014-12-03 23:50:55 | [diff] [blame] | 919 | 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml', |
| 920 | }, |
| 921 | 'includes': [ '../build/android/jinja_template.gypi' ], |
| 922 | }, |
| 923 | { |
| 924 | # GN version: //content/shell/android:content_shell_apk |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 925 | 'target_name': 'content_shell_apk', |
| 926 | 'type': 'none', |
| 927 | 'dependencies': [ |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 928 | 'content.gyp:content_icudata', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 929 | 'content.gyp:content_java', |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 930 | 'content.gyp:content_v8_external_data', |
[email protected] | c48fece0 | 2013-06-19 12:01:42 | [diff] [blame] | 931 | 'content_java_test_support', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 932 | 'content_shell_java', |
| 933 | 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 934 | '../base/base.gyp:base_java', |
| 935 | '../media/media.gyp:media_java', |
| 936 | '../net/net.gyp:net_java', |
[email protected] | abeda1f | 2014-02-21 17:08:34 | [diff] [blame] | 937 | '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir', |
[email protected] | 4e38405 | 2013-08-14 20:46:30 | [diff] [blame] | 938 | '../tools/android/forwarder/forwarder.gyp:forwarder', |
torne | 1b1c978 | 2015-03-30 20:49:00 | [diff] [blame] | 939 | '../tools/imagediff/image_diff.gyp:image_diff#host', |
[email protected] | f450287d | 2013-11-15 17:52:54 | [diff] [blame] | 940 | '../ui/android/ui_android.gyp:ui_java', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 941 | ], |
| 942 | 'variables': { |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 943 | 'apk_name': 'ContentShell', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 944 | 'manifest_package_name': 'org.chromium.content_shell_apk', |
sievers | 0350cad | 2014-12-03 23:50:55 | [diff] [blame] | 945 | 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml', |
[email protected] | 4d4eb5b | 2013-01-29 21:55:55 | [diff] [blame] | 946 | 'java_in_dir': 'shell/android/shell_apk', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 947 | 'resource_dir': 'shell/android/shell_apk/res', |
[email protected] | e486525 | 2013-04-04 09:15:59 | [diff] [blame] | 948 | 'native_lib_target': 'libcontent_shell_content_view', |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 949 | 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'], |
[email protected] | 0437c50 | 2013-11-28 05:17:33 | [diff] [blame] | 950 | 'asset_location': '<(PRODUCT_DIR)/content_shell/assets', |
[email protected] | abeda1f | 2014-02-21 17:08:34 | [diff] [blame] | 951 | 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'], |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 952 | 'conditions': [ |
| 953 | ['icu_use_data_file_flag==1', { |
| 954 | 'additional_input_paths': [ |
| 955 | '<(PRODUCT_DIR)/icudtl.dat', |
| 956 | ], |
| 957 | }], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 958 | ['v8_use_external_startup_data==1', { |
| 959 | 'additional_input_paths': [ |
| 960 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 961 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 962 | ], |
| 963 | }], |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 964 | ], |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 965 | }, |
[email protected] | 75c86a2 | 2012-09-26 03:50:37 | [diff] [blame] | 966 | 'includes': [ '../build/java_apk.gypi' ], |
| 967 | }, |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 968 | ], |
| 969 | }], # OS=="android" |
[email protected] | 369205f | 2013-10-29 04:35:05 | [diff] [blame] | 970 | ['OS=="win"', { |
| 971 | 'targets': [ |
| 972 | { |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 973 | # GN version: //content/shell:crash_service |
[email protected] | 369205f | 2013-10-29 04:35:05 | [diff] [blame] | 974 | 'target_name': 'content_shell_crash_service', |
| 975 | 'type': 'executable', |
| 976 | 'dependencies': [ |
| 977 | '../base/base.gyp:base', |
| 978 | '../components/components.gyp:breakpad_crash_service', |
| 979 | ], |
| 980 | 'include_dirs': [ |
| 981 | '..', |
| 982 | ], |
| 983 | 'sources': [ |
| 984 | 'shell/tools/content_shell_crash_service.cc', |
| 985 | ], |
| 986 | 'msvs_settings': { |
| 987 | 'VCLinkerTool': { |
| 988 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 989 | }, |
| 990 | }, |
| 991 | }, |
| 992 | ], |
| 993 | }], # OS=="win" |
[email protected] | 004703a | 2014-05-05 23:23:00 | [diff] [blame] | 994 | ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', { |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 995 | 'variables': { |
| 996 | 'dest_dir': '<(PRODUCT_DIR)/syzygy', |
| 997 | }, |
| 998 | 'targets': [ |
| 999 | { |
| 1000 | 'target_name': 'content_shell_syzyasan', |
| 1001 | 'type': 'none', |
| 1002 | 'sources' : [], |
| 1003 | # Instrument content_shell with SyzyAsan. |
| 1004 | 'actions': [ |
| 1005 | { |
| 1006 | 'action_name': 'Instrument content_shell with SyzyAsan', |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 1007 | 'inputs': [ |
| 1008 | '<(PRODUCT_DIR)/content_shell.exe', |
| 1009 | ], |
| 1010 | 'outputs': [ |
| 1011 | '<(dest_dir)/content_shell.exe', |
| 1012 | '<(dest_dir)/content_shell.exe.pdb', |
| 1013 | ], |
| 1014 | 'action': [ |
| 1015 | 'python', |
chrisha | f25cab2 | 2014-12-16 19:40:15 | [diff] [blame] | 1016 | '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py', |
[email protected] | c8250d4 | 2013-10-01 05:17:46 | [diff] [blame] | 1017 | '--mode', 'asan', |
| 1018 | '--input_executable', '<(PRODUCT_DIR)/content_shell.exe', |
| 1019 | '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb', |
| 1020 | '--destination_dir', '<(dest_dir)', |
| 1021 | ], |
| 1022 | }, |
| 1023 | ], |
| 1024 | }, |
| 1025 | ], |
| 1026 | }], # OS=="win" and fastbuild==0 and target_arch=="ia32" |
[email protected] | cc66d28 | 2012-03-30 11:44:06 | [diff] [blame] | 1027 | ] |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 1028 | } |