[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 1 | # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/config/features.gni") |
brettw | 4cab0f1 | 2015-09-14 21:40:01 | [diff] [blame] | 6 | import("//build/config/sanitizers/sanitizers.gni") |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 7 | import("//build/config/ui.gni") |
skobes | 502412ae | 2016-01-19 17:40:43 | [diff] [blame] | 8 | import("//build/config/win/console_app.gni") |
brettw | 2e2220c | 2015-07-21 18:56:35 | [diff] [blame] | 9 | import("//build/config/win/manifest.gni") |
alokp | aa2fdfb7 | 2016-02-03 22:55:54 | [diff] [blame] | 10 | import("//media/media_options.gni") |
ortuno | f78c841 | 2016-03-31 18:59:59 | [diff] [blame] | 11 | import("//mojo/public/tools/bindings/mojom.gni") |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 12 | import("//tools/grit/repack.gni") |
cjhopman | cd7694af | 2014-09-08 00:00:04 | [diff] [blame] | 13 | import("//tools/grit/grit_rule.gni") |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 14 | if (is_android) { |
| 15 | import("//build/config/android/config.gni") |
rsesek | 20a58a6 | 2016-04-15 20:59:23 | [diff] [blame] | 16 | } else if (is_mac) { |
| 17 | import("//build/config/mac/rules.gni") |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 18 | import("//build/mac/tweak_info_plist.gni") |
machenbach | d65ec5c | 2016-07-22 09:05:23 | [diff] [blame] | 19 | import("//v8/gni/v8.gni") |
sebmarchand | a2df339 | 2016-07-13 15:34:59 | [diff] [blame] | 20 | } else if (is_win) { |
| 21 | import("//build/win/syzygy/syzygy.gni") |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | declare_args() { |
| 25 | content_shell_product_name = "Content Shell" |
esprehn | b378909 | 2015-11-24 19:46:03 | [diff] [blame] | 26 | content_shell_version = "99.77.34.5" |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 27 | } |
| 28 | |
thakis | ff2eab9c | 2015-11-13 00:29:58 | [diff] [blame] | 29 | config("content_shell_lib_warnings") { |
| 30 | if (is_clang) { |
| 31 | # TODO(thakis): Remove this once http://crbug.com/383820 is figured out |
| 32 | cflags = [ "-Wno-nonnull" ] |
| 33 | } |
| 34 | } |
| 35 | |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 36 | static_library("content_shell_lib") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 37 | testonly = true |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 38 | sources = [ |
dpranke | c6beb839 | 2015-10-30 23:44:21 | [diff] [blame] | 39 | "android/shell_descriptors.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 40 | "android/shell_jni_registrar.cc", |
| 41 | "android/shell_jni_registrar.h", |
| 42 | "android/shell_manager.cc", |
| 43 | "android/shell_manager.h", |
lukasza | 88e4b0b4 | 2016-02-25 21:42:10 | [diff] [blame] | 44 | "app/blink_test_platform_support.h", |
| 45 | "app/blink_test_platform_support_android.cc", |
| 46 | "app/blink_test_platform_support_linux.cc", |
| 47 | "app/blink_test_platform_support_mac.mm", |
| 48 | "app/blink_test_platform_support_win.cc", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 49 | "app/paths_mac.h", |
| 50 | "app/paths_mac.mm", |
rsesek | a0a7a04 | 2014-09-18 23:59:20 | [diff] [blame] | 51 | "app/shell_crash_reporter_client.cc", |
| 52 | "app/shell_crash_reporter_client.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 53 | "app/shell_main_delegate.cc", |
| 54 | "app/shell_main_delegate.h", |
| 55 | "app/shell_main_delegate_mac.h", |
| 56 | "app/shell_main_delegate_mac.mm", |
jochen | 5ce1af9 | 2016-02-17 20:39:45 | [diff] [blame] | 57 | "browser/layout_test/blink_test_controller.cc", |
| 58 | "browser/layout_test/blink_test_controller.h", |
mkwst | d6805d0d | 2014-10-16 14:44:37 | [diff] [blame] | 59 | "browser/layout_test/layout_test_android.cc", |
| 60 | "browser/layout_test/layout_test_android.h", |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 61 | "browser/layout_test/layout_test_bluetooth_adapter_provider.cc", |
| 62 | "browser/layout_test/layout_test_bluetooth_adapter_provider.h", |
jyasskin | 8057c00 | 2015-09-10 19:09:53 | [diff] [blame] | 63 | "browser/layout_test/layout_test_bluetooth_chooser_factory.cc", |
| 64 | "browser/layout_test/layout_test_bluetooth_chooser_factory.h", |
ortuno | f78c841 | 2016-03-31 18:59:59 | [diff] [blame] | 65 | "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc", |
| 66 | "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h", |
mkwst | d993d06a | 2014-10-10 11:44:38 | [diff] [blame] | 67 | "browser/layout_test/layout_test_browser_context.cc", |
| 68 | "browser/layout_test/layout_test_browser_context.h", |
mkwst | 88e2318 | 2014-10-16 12:08:58 | [diff] [blame] | 69 | "browser/layout_test/layout_test_browser_main.cc", |
| 70 | "browser/layout_test/layout_test_browser_main.h", |
mkwst | 36b11b6f | 2014-10-15 16:18:56 | [diff] [blame] | 71 | "browser/layout_test/layout_test_browser_main_parts.cc", |
| 72 | "browser/layout_test/layout_test_browser_main_parts.h", |
peter | cd7abb4 | 2014-10-17 13:34:01 | [diff] [blame] | 73 | "browser/layout_test/layout_test_content_browser_client.cc", |
| 74 | "browser/layout_test/layout_test_content_browser_client.h", |
mkwst | 30d20d5 | 2014-10-09 13:33:14 | [diff] [blame] | 75 | "browser/layout_test/layout_test_devtools_frontend.cc", |
| 76 | "browser/layout_test/layout_test_devtools_frontend.h", |
mkwst | 94388f79 | 2014-10-16 07:36:52 | [diff] [blame] | 77 | "browser/layout_test/layout_test_download_manager_delegate.cc", |
| 78 | "browser/layout_test/layout_test_download_manager_delegate.h", |
ortuno | 1045554 | 2016-07-01 00:06:43 | [diff] [blame] | 79 | "browser/layout_test/layout_test_first_device_bluetooth_chooser.cc", |
| 80 | "browser/layout_test/layout_test_first_device_bluetooth_chooser.h", |
mkwst | 6efe7f2e6 | 2014-10-08 15:09:01 | [diff] [blame] | 81 | "browser/layout_test/layout_test_javascript_dialog_manager.cc", |
| 82 | "browser/layout_test/layout_test_javascript_dialog_manager.h", |
Peter Beverloo | e8f2f9d | 2014-10-20 16:47:49 | [diff] [blame] | 83 | "browser/layout_test/layout_test_message_filter.cc", |
| 84 | "browser/layout_test/layout_test_message_filter.h", |
peter | cd7abb4 | 2014-10-17 13:34:01 | [diff] [blame] | 85 | "browser/layout_test/layout_test_notification_manager.cc", |
| 86 | "browser/layout_test/layout_test_notification_manager.h", |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 87 | "browser/layout_test/layout_test_permission_manager.cc", |
| 88 | "browser/layout_test/layout_test_permission_manager.h", |
mvanouwerkerk | de895c9c | 2014-12-06 12:17:32 | [diff] [blame] | 89 | "browser/layout_test/layout_test_push_messaging_service.cc", |
| 90 | "browser/layout_test/layout_test_push_messaging_service.h", |
mkwst | 002d0290 | 2014-10-09 10:17:00 | [diff] [blame] | 91 | "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc", |
| 92 | "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h", |
mkwst | 94388f79 | 2014-10-16 07:36:52 | [diff] [blame] | 93 | "browser/layout_test/layout_test_url_request_context_getter.cc", |
| 94 | "browser/layout_test/layout_test_url_request_context_getter.h", |
lukasza | 8e550a0 | 2016-04-18 18:34:17 | [diff] [blame] | 95 | "browser/layout_test/secondary_test_window_observer.cc", |
| 96 | "browser/layout_test/secondary_test_window_observer.h", |
jochen | e9ba6dd | 2016-02-23 17:20:49 | [diff] [blame] | 97 | "browser/layout_test/test_info_extractor.cc", |
| 98 | "browser/layout_test/test_info_extractor.h", |
peter | 11d5f56 | 2014-10-23 23:12:25 | [diff] [blame] | 99 | "browser/shell.cc", |
| 100 | "browser/shell.h", |
| 101 | "browser/shell_access_token_store.cc", |
| 102 | "browser/shell_access_token_store.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 103 | "browser/shell_android.cc", |
| 104 | "browser/shell_application_mac.h", |
| 105 | "browser/shell_application_mac.mm", |
| 106 | "browser/shell_browser_context.cc", |
| 107 | "browser/shell_browser_context.h", |
| 108 | "browser/shell_browser_main.cc", |
| 109 | "browser/shell_browser_main.h", |
| 110 | "browser/shell_browser_main_parts.cc", |
| 111 | "browser/shell_browser_main_parts.h", |
| 112 | "browser/shell_browser_main_parts_mac.mm", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 113 | "browser/shell_content_browser_client.cc", |
| 114 | "browser/shell_content_browser_client.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 115 | "browser/shell_devtools_frontend.cc", |
| 116 | "browser/shell_devtools_frontend.h", |
satorux | 7fa9d30 | 2015-02-16 00:44:52 | [diff] [blame] | 117 | "browser/shell_devtools_manager_delegate.cc", |
| 118 | "browser/shell_devtools_manager_delegate.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 119 | "browser/shell_download_manager_delegate.cc", |
| 120 | "browser/shell_download_manager_delegate.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 121 | "browser/shell_javascript_dialog.h", |
| 122 | "browser/shell_javascript_dialog_mac.mm", |
| 123 | "browser/shell_javascript_dialog_manager.cc", |
| 124 | "browser/shell_javascript_dialog_manager.h", |
| 125 | "browser/shell_javascript_dialog_win.cc", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 126 | "browser/shell_login_dialog.cc", |
| 127 | "browser/shell_login_dialog.h", |
| 128 | "browser/shell_login_dialog_mac.mm", |
| 129 | "browser/shell_mac.mm", |
satorux | 7fa9d30 | 2015-02-16 00:44:52 | [diff] [blame] | 130 | "browser/shell_mojo_test_utils_android.cc", |
| 131 | "browser/shell_mojo_test_utils_android.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 132 | "browser/shell_net_log.cc", |
| 133 | "browser/shell_net_log.h", |
| 134 | "browser/shell_network_delegate.cc", |
| 135 | "browser/shell_network_delegate.h", |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 136 | "browser/shell_permission_manager.cc", |
| 137 | "browser/shell_permission_manager.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 138 | "browser/shell_platform_data_aura.cc", |
| 139 | "browser/shell_platform_data_aura.h", |
| 140 | "browser/shell_plugin_service_filter.cc", |
| 141 | "browser/shell_plugin_service_filter.h", |
| 142 | "browser/shell_quota_permission_context.cc", |
| 143 | "browser/shell_quota_permission_context.h", |
| 144 | "browser/shell_resource_dispatcher_host_delegate.cc", |
| 145 | "browser/shell_resource_dispatcher_host_delegate.h", |
| 146 | "browser/shell_speech_recognition_manager_delegate.cc", |
| 147 | "browser/shell_speech_recognition_manager_delegate.h", |
| 148 | "browser/shell_url_request_context_getter.cc", |
| 149 | "browser/shell_url_request_context_getter.h", |
satorux | 7fa9d30 | 2015-02-16 00:44:52 | [diff] [blame] | 150 | "browser/shell_web_contents_view_delegate.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 151 | "browser/shell_web_contents_view_delegate_android.cc", |
| 152 | "browser/shell_web_contents_view_delegate_creator.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 153 | "browser/shell_web_contents_view_delegate_mac.mm", |
lukasza | 80f7f60 | 2016-03-22 23:13:19 | [diff] [blame] | 154 | "common/layout_test/layout_test_content_client.cc", |
| 155 | "common/layout_test/layout_test_content_client.h", |
peter | e0420359 | 2014-10-27 17:57:35 | [diff] [blame] | 156 | "common/layout_test/layout_test_messages.cc", |
| 157 | "common/layout_test/layout_test_messages.h", |
lukasza | 381b049 | 2016-03-10 16:48:43 | [diff] [blame] | 158 | "common/layout_test/layout_test_switches.cc", |
| 159 | "common/layout_test/layout_test_switches.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 160 | "common/leak_detection_result.h", |
| 161 | "common/shell_content_client.cc", |
| 162 | "common/shell_content_client.h", |
| 163 | "common/shell_messages.cc", |
| 164 | "common/shell_messages.h", |
iclelland | 186a896 | 2016-06-22 16:06:20 | [diff] [blame] | 165 | "common/shell_origin_trial_policy.cc", |
| 166 | "common/shell_origin_trial_policy.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 167 | "common/shell_switches.cc", |
| 168 | "common/shell_switches.h", |
| 169 | "common/shell_test_configuration.cc", |
| 170 | "common/shell_test_configuration.h", |
tfarina | 685c3980 | 2015-05-04 22:11:22 | [diff] [blame] | 171 | "renderer/layout_test/blink_test_helpers.cc", |
| 172 | "renderer/layout_test/blink_test_helpers.h", |
tfarina | 8e08285f | 2015-05-02 03:17:39 | [diff] [blame] | 173 | "renderer/layout_test/blink_test_runner.cc", |
| 174 | "renderer/layout_test/blink_test_runner.h", |
mkwst | 02ec0d6 | 2014-10-07 22:07:29 | [diff] [blame] | 175 | "renderer/layout_test/layout_test_content_renderer_client.cc", |
| 176 | "renderer/layout_test/layout_test_content_renderer_client.h", |
mkwst | 3e72c1f | 2014-10-08 05:02:36 | [diff] [blame] | 177 | "renderer/layout_test/layout_test_render_frame_observer.cc", |
| 178 | "renderer/layout_test/layout_test_render_frame_observer.h", |
tyoshino | 832a58a | 2016-04-18 08:14:08 | [diff] [blame] | 179 | "renderer/layout_test/layout_test_render_thread_observer.cc", |
| 180 | "renderer/layout_test/layout_test_render_thread_observer.h", |
mkwst | 04b72d1 | 2014-10-08 15:52:55 | [diff] [blame] | 181 | "renderer/layout_test/leak_detector.cc", |
| 182 | "renderer/layout_test/leak_detector.h", |
jochen | 5126513 | 2015-05-28 07:33:45 | [diff] [blame] | 183 | "renderer/layout_test/test_media_stream_renderer_factory.cc", |
| 184 | "renderer/layout_test/test_media_stream_renderer_factory.h", |
chfremer | bcfff021 | 2016-06-06 18:29:41 | [diff] [blame] | 185 | "renderer/layout_test/test_media_stream_video_renderer.cc", |
| 186 | "renderer/layout_test/test_media_stream_video_renderer.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 187 | "renderer/shell_content_renderer_client.cc", |
| 188 | "renderer/shell_content_renderer_client.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 189 | "renderer/shell_render_view_observer.cc", |
| 190 | "renderer/shell_render_view_observer.h", |
rockot | b814a58 | 2015-06-05 00:30:52 | [diff] [blame] | 191 | "utility/shell_content_utility_client.cc", |
| 192 | "utility/shell_content_utility_client.h", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 193 | ] |
| 194 | |
brettw | bc8b2a2 | 2015-07-28 18:24:42 | [diff] [blame] | 195 | configs += [ |
thakis | ff2eab9c | 2015-11-13 00:29:58 | [diff] [blame] | 196 | ":content_shell_lib_warnings", |
brettw | bc8b2a2 | 2015-07-28 18:24:42 | [diff] [blame] | 197 | "//build/config:precompiled_headers", |
| 198 | |
| 199 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 200 | "//build/config/compiler:no_size_t_to_int_warning", |
kozyatinskiy | 6adbc80 | 2016-01-28 00:16:16 | [diff] [blame] | 201 | |
| 202 | "//third_party/WebKit/public:debug_devtools", |
brettw | bc8b2a2 | 2015-07-28 18:24:42 | [diff] [blame] | 203 | ] |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 204 | |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 205 | defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ] |
| 206 | |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 207 | public_deps = [ |
| 208 | # This exposes all public content APIs. |
| 209 | "//content/public/app:both", |
| 210 | "//content/public/browser", |
| 211 | "//content/public/common", |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 212 | "//content/public/renderer", |
| 213 | "//content/public/utility", |
| 214 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 215 | deps = [ |
ortuno | f78c841 | 2016-03-31 18:59:59 | [diff] [blame] | 216 | ":mojo_bindings", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 217 | ":resources", |
| 218 | "//base", |
| 219 | "//base:base_static", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 220 | "//base/third_party/dynamic_annotations", |
| 221 | "//cc", |
scottmg | cfa5b01b | 2015-11-30 23:13:46 | [diff] [blame] | 222 | "//components/crash/content/app:app_breakpad_mac_win_to_be_deleted", |
dgozman | f720015 | 2015-04-22 17:48:21 | [diff] [blame] | 223 | "//components/devtools_discovery", |
dgozman | 102fee9 | 2015-04-20 15:45:46 | [diff] [blame] | 224 | "//components/devtools_http_handler", |
chrishtr | 8a377e6 | 2015-06-01 19:20:08 | [diff] [blame] | 225 | "//components/plugins/renderer", |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 226 | "//components/test_runner:test_runner", |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame] | 227 | "//components/url_formatter", |
hanxi | 149b92d | 2014-09-11 21:57:18 | [diff] [blame] | 228 | "//components/web_cache/renderer", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 229 | "//content:resources", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 230 | "//content/app/resources", |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 231 | "//content/app/strings", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 232 | "//content/gpu", |
brettw | 6b0712a | 2016-07-15 17:48:20 | [diff] [blame] | 233 | "//content/test:content_test_mojo_bindings", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 234 | "//content/test:layouttest_support", |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 235 | "//content/test:test_support", |
dpranke | 93211fc | 2015-04-29 04:59:42 | [diff] [blame] | 236 | "//device/bluetooth", |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 237 | "//device/bluetooth:mocks", |
mcasas | 822d055 | 2016-07-27 17:07:24 | [diff] [blame] | 238 | "//device/geolocation:device_geolocation", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 239 | "//gin", |
| 240 | "//gpu", |
| 241 | "//ipc", |
| 242 | "//media", |
| 243 | "//net", |
| 244 | "//net:net_resources", |
brettw | 6b0712a | 2016-07-15 17:48:20 | [diff] [blame] | 245 | "//sandbox", |
| 246 | "//services/shell/public/cpp", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 247 | "//skia", |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 248 | "//storage/browser", |
ortuno | fd24faa | 2015-05-20 16:34:37 | [diff] [blame] | 249 | "//testing/gmock", |
| 250 | "//testing/gtest", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 251 | "//third_party/WebKit/public:blink", |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 252 | "//third_party/WebKit/public:image_resources", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 253 | "//third_party/WebKit/public:resources", |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 254 | "//third_party/WebKit/public:test_support", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 255 | "//third_party/icu", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 256 | "//ui/base", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 257 | "//ui/base/ime", |
brettw | 6b0712a | 2016-07-15 17:48:20 | [diff] [blame] | 258 | "//ui/display", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 259 | "//ui/events:events_base", |
| 260 | "//ui/gfx", |
| 261 | "//ui/gfx/geometry", |
| 262 | "//ui/gfx/ipc", |
fsamuel | 6b98cf9 | 2016-04-28 05:42:24 | [diff] [blame] | 263 | "//ui/gfx/ipc/geometry", |
markdittmer | 99d77bf | 2016-03-31 19:03:24 | [diff] [blame] | 264 | "//ui/gfx/ipc/skia", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 265 | "//ui/gl", |
| 266 | "//url", |
| 267 | "//v8", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 268 | ] |
brettw | 6b0712a | 2016-07-15 17:48:20 | [diff] [blame] | 269 | |
| 270 | # Annoyingly, this target and layouttest_support have circular includes. |
| 271 | allow_circular_includes_from = [ "//content/test:layouttest_support" ] |
| 272 | |
jamesr | 5008174 | 2014-09-09 07:52:22 | [diff] [blame] | 273 | if (enable_plugins) { |
dcheng | 0d93c1a | 2015-12-03 02:46:41 | [diff] [blame] | 274 | deps += [ |
| 275 | "//content/ppapi_plugin", |
dcheng | c70b36e | 2016-03-02 02:36:10 | [diff] [blame] | 276 | "//ppapi:blink_deprecated_test_plugin", |
dcheng | 0d93c1a | 2015-12-03 02:46:41 | [diff] [blame] | 277 | "//ppapi:blink_test_plugin", |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 278 | "//ppapi/shared_impl", |
dcheng | 0d93c1a | 2015-12-03 02:46:41 | [diff] [blame] | 279 | ] |
jamesr | 5008174 | 2014-09-09 07:52:22 | [diff] [blame] | 280 | } |
xhwang | be72003 | 2016-02-19 18:45:31 | [diff] [blame] | 281 | if (mojo_media_host == "browser") { |
xhwang | d3b5d3f | 2016-05-18 03:37:59 | [diff] [blame] | 282 | deps += [ "//media/mojo/services" ] |
alokp | aa2fdfb7 | 2016-02-03 22:55:54 | [diff] [blame] | 283 | } |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 284 | |
| 285 | if (is_win) { |
vchigrin | 61944ae | 2015-01-30 23:51:32 | [diff] [blame] | 286 | sources += [ |
| 287 | "common/v8_breakpad_support_win.cc", |
| 288 | "common/v8_breakpad_support_win.h", |
| 289 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 290 | } |
| 291 | |
| 292 | if (is_linux) { |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 293 | deps += [ |
| 294 | "//build/linux:fontconfig", |
| 295 | "//ui/gfx:test_support", |
| 296 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 297 | } |
| 298 | |
| 299 | if (use_x11) { |
[email protected] | c7990dbf | 2014-07-23 22:35:10 | [diff] [blame] | 300 | # Some tests rely on this tool at runtime. Note: it might be better if |
| 301 | # the tests that needed it had this as a dep instead of adding it here. |
sadrul | 1f7fa9f | 2015-10-06 17:14:57 | [diff] [blame] | 302 | data_deps = [ |
| 303 | "//tools/xdisplaycheck", |
| 304 | ] |
dnicoara | 78a73470 | 2014-11-04 19:54:38 | [diff] [blame] | 305 | |
kylechar | ad71487 | 2016-04-20 16:09:52 | [diff] [blame] | 306 | deps += [ "//ui/events/devices/x11" ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 307 | } |
| 308 | |
| 309 | if (is_android) { |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 310 | deps += [ "//content/shell/android:content_shell_jni_headers" ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 311 | } |
| 312 | |
torne | 1b1c978 | 2015-03-30 20:49:00 | [diff] [blame] | 313 | if (is_posix && !is_mac) { |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 314 | deps += [ |
| 315 | "//components/crash/content/app", |
| 316 | "//components/crash/content/browser", |
| 317 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 318 | } |
| 319 | |
| 320 | if (use_aura) { |
| 321 | deps += [ |
| 322 | "//ui/aura", |
| 323 | "//ui/aura:test_support", |
| 324 | "//ui/events", |
| 325 | "//ui/strings", |
| 326 | "//ui/wm", |
| 327 | ] |
| 328 | |
| 329 | if (toolkit_views) { |
mohsen | 6eb57fb | 2016-07-22 03:14:08 | [diff] [blame] | 330 | sources += [ |
| 331 | "browser/shell_views.cc", |
| 332 | "browser/shell_web_contents_view_delegate_views.cc", |
| 333 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 334 | deps += [ |
| 335 | "//ui/resources", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 336 | "//ui/views", |
| 337 | "//ui/views:test_support", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 338 | "//ui/views/controls/webview", |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 339 | "//ui/wm:test_support", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 340 | ] |
| 341 | } else { |
mohsen | 6eb57fb | 2016-07-22 03:14:08 | [diff] [blame] | 342 | sources += [ |
| 343 | "browser/shell_aura.cc", |
| 344 | "browser/shell_web_contents_view_delegate_aura.cc", |
| 345 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 346 | } |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 347 | } else { |
| 348 | sources -= [ |
| 349 | "browser/shell_platform_data_aura.cc", |
| 350 | "browser/shell_platform_data_aura.h", |
| 351 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 352 | } |
| 353 | |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 354 | if (is_chromeos) { |
| 355 | deps += [ |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 356 | "//chromeos", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 357 | "//ui/wm:test_support", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 358 | ] |
| 359 | } |
| 360 | |
bcf | 0ddf78a | 2016-02-02 18:52:21 | [diff] [blame] | 361 | if (is_linux) { |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 362 | deps += [ "//third_party/freetype2" ] |
| 363 | } |
| 364 | |
| 365 | if (!enable_plugins) { |
| 366 | sources -= [ |
| 367 | "browser/shell_plugin_service_filter.cc", |
| 368 | "browser/shell_plugin_service_filter.h", |
| 369 | ] |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | grit("content_shell_resources_grit") { |
brettw | b78fc9e | 2016-03-25 21:02:51 | [diff] [blame] | 374 | # External code should depend on ":resources" instead. |
brettw | 9af4262 | 2014-09-06 21:21:02 | [diff] [blame] | 375 | visibility = [ ":*" ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 376 | source = "shell_resources.grd" |
| 377 | outputs = [ |
| 378 | "grit/shell_resources.h", |
| 379 | "shell_resources.pak", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 380 | ] |
| 381 | } |
| 382 | |
| 383 | copy("copy_shell_resources") { |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 384 | sources = [ |
| 385 | "$target_gen_dir/shell_resources.pak", |
| 386 | ] |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 387 | outputs = [ |
| 388 | "$root_out_dir/shell_resources.pak", |
| 389 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 390 | |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 391 | public_deps = [ |
| 392 | ":content_shell_resources_grit", |
| 393 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 394 | } |
| 395 | |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 396 | group("resources") { |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 397 | public_deps = [ |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 398 | ":copy_shell_resources", |
| 399 | ] |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 400 | deps = [ |
| 401 | "//components/test_runner:resources", |
| 402 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 403 | } |
| 404 | |
| 405 | repack("pak") { |
| 406 | sources = [ |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 407 | "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak", |
| 408 | "$root_gen_dir/blink/public/resources/blink_resources.pak", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 409 | "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 410 | "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 411 | "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 412 | "$root_gen_dir/content/content_resources.pak", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 413 | "$root_gen_dir/content/shell/shell_resources.pak", |
| 414 | "$root_gen_dir/net/net_resources.pak", |
| 415 | "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
| 416 | "$root_gen_dir/ui/resources/webui_resources.pak", |
| 417 | "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 418 | "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 419 | ] |
| 420 | |
| 421 | deps = [ |
| 422 | ":resources", |
| 423 | "//content:resources", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 424 | "//content/app/resources", |
[email protected] | 6586a2e3 | 2014-08-09 19:24:12 | [diff] [blame] | 425 | "//content/app/strings", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 426 | "//content/browser/tracing:resources", |
| 427 | "//net:net_resources", |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 428 | "//third_party/WebKit/public:image_resources", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 429 | "//third_party/WebKit/public:resources", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 430 | "//ui/resources", |
| 431 | "//ui/strings", |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 432 | ] |
| 433 | |
sadrul | 7bd20c9 | 2015-06-24 16:45:44 | [diff] [blame] | 434 | if (toolkit_views) { |
| 435 | deps += [ "//ui/views/resources" ] |
| 436 | sources += |
| 437 | [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ] |
| 438 | } |
| 439 | |
vivek.vg | 77816a1 | 2014-12-18 14:28:20 | [diff] [blame] | 440 | sources += [ "$root_gen_dir/blink/devtools_resources.pak" ] |
cjhopman | 2fd48fd | 2014-09-24 00:52:56 | [diff] [blame] | 441 | deps += [ "//content/browser/devtools:resources" ] |
| 442 | output = "$root_out_dir/content_shell.pak" |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 443 | } |
| 444 | |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 445 | if (is_android) { |
| 446 | group("content_shell") { |
| 447 | testonly = true |
| 448 | deps = [ |
| 449 | "//content/shell/android:content_shell_apk", |
| 450 | ] |
| 451 | } |
| 452 | } else if (is_mac) { |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 453 | tweak_info_plist("content_shell_plist") { |
| 454 | testonly = true |
| 455 | info_plist = "app/app-Info.plist" |
| 456 | args = [ |
| 457 | "--scm=1", |
| 458 | "--version", |
| 459 | content_shell_version, |
| 460 | ] |
| 461 | } |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 462 | mac_app_bundle("content_shell") { |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 463 | testonly = true |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 464 | output_name = content_shell_product_name |
| 465 | sources = [ |
| 466 | "app/shell_main.cc", |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 467 | ] |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 468 | deps = [ |
| 469 | ":content_shell_framework_bundle_data", |
| 470 | ":content_shell_resources_bundle_data", |
rsesek | 1cfe20c3 | 2016-07-27 17:44:51 | [diff] [blame^] | 471 | "//build/config/sanitizers:deps", |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 472 | |
| 473 | # TODO(rsesek): Remove this after GYP is gone, since it only needs to |
| 474 | # be here per the comment in blink_test_platform_support_mac.mm about |
| 475 | # the bundle structure. |
| 476 | "//components/test_runner:resources", |
| 477 | ] |
rsesek | 6a8a5d0 | 2016-06-21 01:16:18 | [diff] [blame] | 478 | ldflags = [ |
| 479 | # The main app is at Content Shell.app/Contents/MacOS/Content Shell |
| 480 | # so set the rpath up to Contents/ so that the loader can find |
| 481 | # Framworks/. |
| 482 | "-rpath", |
| 483 | "@executable_path/../", |
| 484 | ] |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 485 | info_plist_target = ":content_shell_plist" |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 486 | } |
| 487 | } else { |
brettw | 2e2220c | 2015-07-21 18:56:35 | [diff] [blame] | 488 | # TODO(brettw) when GYP is no longer necessary, delete |
| 489 | # content/shell/app/shell.exe.manifest. This file is not used in GN. |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 490 | executable("content_shell") { |
| 491 | testonly = true |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 492 | |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 493 | # TODO(GYP) mac resource bundle stuff for this target. |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 494 | sources = [ |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 495 | "app/shell_main.cc", |
| 496 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 497 | |
brucedawson | d4fde4c | 2016-05-02 19:03:58 | [diff] [blame] | 498 | if (is_win) { |
| 499 | sources += [ "app/shell.rc" ] |
| 500 | } |
| 501 | |
skobes | 502412ae | 2016-01-19 17:40:43 | [diff] [blame] | 502 | defines = [] |
| 503 | |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 504 | deps = [ |
| 505 | ":content_shell_lib", |
| 506 | ":pak", |
brettw | ba7a73d | 2015-08-31 22:17:39 | [diff] [blame] | 507 | "//build/config/sanitizers:deps", |
brettw | 2e2220c | 2015-07-21 18:56:35 | [diff] [blame] | 508 | "//build/win:default_exe_manifest", |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 509 | ] |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 510 | |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 511 | if (is_win) { |
| 512 | deps += [ "//sandbox" ] |
brucedawson | d4fde4c | 2016-05-02 19:03:58 | [diff] [blame] | 513 | |
| 514 | # This is a large module that can't do incremental linking in some cases. |
| 515 | configs -= [ "//build/config/win:default_incremental_linking" ] |
| 516 | configs += |
| 517 | [ "//build/config/win:default_large_module_incremental_linking" ] |
skobes | 502412ae | 2016-01-19 17:40:43 | [diff] [blame] | 518 | if (win_console_app) { |
| 519 | defines += [ "WIN_CONSOLE_APP" ] |
| 520 | } else { |
| 521 | # Set /SUBSYSTEM:WINDOWS unless a console build has been requested. |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 522 | configs -= [ "//build/config/win:console" ] |
| 523 | configs += [ "//build/config/win:windowed" ] |
| 524 | } |
| 525 | } |
| 526 | |
wangxianzhu | 1a34fa3 | 2016-03-10 21:03:00 | [diff] [blame] | 527 | if (is_linux && !is_component_build) { |
| 528 | # Set rpath to find our own libfreetype even in a non-component build. |
| 529 | configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 530 | } |
[email protected] | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 531 | } |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 532 | } |
tfarina | 10ae51f6 | 2015-05-13 03:35:57 | [diff] [blame] | 533 | |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 534 | if (is_win) { |
| 535 | # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service |
brettw | 0d3b1df | 2015-12-03 00:10:01 | [diff] [blame] | 536 | executable("content_shell_crash_service") { |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 537 | sources = [ |
| 538 | "tools/content_shell_crash_service.cc", |
| 539 | ] |
| 540 | |
| 541 | deps = [ |
| 542 | "//base", |
brettw | ba7a73d | 2015-08-31 22:17:39 | [diff] [blame] | 543 | "//build/config/sanitizers:deps", |
brucedawson | f9f7d629 | 2016-04-27 19:11:07 | [diff] [blame] | 544 | "//build/win:default_exe_manifest", |
sdefresne | 8ba0b88c | 2015-09-18 10:33:13 | [diff] [blame] | 545 | "//components/crash/content/tools:crash_service", |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 546 | ] |
| 547 | |
| 548 | configs -= [ "//build/config/win:console" ] |
| 549 | configs += [ "//build/config/win:windowed" ] |
| 550 | } |
sebmarchand | a2df339 | 2016-07-13 15:34:59 | [diff] [blame] | 551 | |
| 552 | if (is_syzyasan) { |
| 553 | syzygy_asan("content_shell_syzyasan") { |
| 554 | binary_name = "content_shell.exe" |
| 555 | dest_dir = "$root_out_dir/syzygy" |
| 556 | deps = [ |
| 557 | "//content/shell:content_shell", |
| 558 | ] |
| 559 | testonly = true |
| 560 | } |
| 561 | } |
tfarina | 795e01a | 2015-05-15 19:29:57 | [diff] [blame] | 562 | } |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 563 | |
| 564 | if (is_mac) { |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 565 | mac_xib_bundle_data("content_shell_framework_xibs") { |
| 566 | sources = [ |
| 567 | "app/English.lproj/HttpAuth.xib", |
| 568 | "app/English.lproj/MainMenu.xib", |
| 569 | ] |
| 570 | output_path = "{{bundle_resources_dir}}/English.lproj" |
| 571 | } |
| 572 | |
| 573 | bundle_data("content_shell_framework_resources") { |
| 574 | sources = [ |
| 575 | "$root_out_dir/content_shell.pak", |
| 576 | "$root_out_dir/icudtl.dat", |
| 577 | "resources/missingImage.png", |
| 578 | "resources/textAreaResizeCorner.png", |
| 579 | ] |
| 580 | |
| 581 | public_deps = [ |
| 582 | ":pak", |
| 583 | ] |
| 584 | |
| 585 | deps = [ |
| 586 | "//third_party/icu:icudata", |
| 587 | ] |
| 588 | |
| 589 | if (v8_use_external_startup_data) { |
| 590 | sources += [ |
| 591 | "$root_out_dir/natives_blob.bin", |
| 592 | "$root_out_dir/snapshot_blob.bin", |
| 593 | ] |
| 594 | public_deps += [ "//v8" ] |
| 595 | } |
| 596 | |
| 597 | outputs = [ |
| 598 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 599 | ] |
| 600 | } |
| 601 | |
| 602 | if (enable_plugins) { |
| 603 | bundle_data("content_shell_framework_plugins") { |
| 604 | sources = [ |
| 605 | "$root_out_dir/blink_deprecated_test_plugin.plugin", |
| 606 | "$root_out_dir/blink_test_plugin.plugin", |
| 607 | ] |
| 608 | |
| 609 | outputs = [ |
| 610 | "{{bundle_root_dir}}/{{source_file_part}}", |
| 611 | ] |
| 612 | |
| 613 | public_deps = [ |
| 614 | "//ppapi:blink_deprecated_test_plugin", |
| 615 | "//ppapi:blink_test_plugin", |
| 616 | ] |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | content_shell_framework_name = "$content_shell_product_name Framework" |
| 621 | content_shell_helper_name = "$content_shell_product_name Helper" |
| 622 | |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 623 | tweak_info_plist("content_shell_framework_plist") { |
| 624 | testonly = true |
| 625 | info_plist = "app/framework-Info.plist" |
| 626 | args = [ |
| 627 | "--breakpad=1", |
| 628 | "--keystone=0", |
| 629 | "--scm=1", |
| 630 | "--version", |
| 631 | content_shell_version, |
| 632 | "--branding", |
| 633 | content_shell_product_name, |
| 634 | ] |
| 635 | } |
| 636 | |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 637 | mac_framework_bundle("content_shell_framework") { |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 638 | testonly = true |
| 639 | |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 640 | output_name = content_shell_framework_name |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 641 | |
| 642 | sources = [ |
tfarina | c708f397 | 2015-10-25 17:42:50 | [diff] [blame] | 643 | "app/shell_content_main.cc", |
| 644 | "app/shell_content_main.h", |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 645 | ] |
| 646 | |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 647 | # TODO(rsesek): Handle these missing pieces: |
| 648 | # - crash_inspector |
| 649 | # - crash_report_sender.app |
| 650 | |
brettw | 6b0712a | 2016-07-15 17:48:20 | [diff] [blame] | 651 | public_deps = [ |
| 652 | ":content_shell_lib", |
| 653 | ] |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 654 | deps = [ |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 655 | ":content_shell_framework_resources", |
| 656 | ":content_shell_framework_xibs", |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 657 | "//third_party/icu:icudata", |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 658 | ] |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 659 | |
| 660 | if (enable_plugins) { |
| 661 | deps += [ ":content_shell_framework_plugins" ] |
| 662 | } |
| 663 | |
rsesek | 6a8a5d0 | 2016-06-21 01:16:18 | [diff] [blame] | 664 | # Both the main :content_shell and :content_shell_helper_app executables |
| 665 | # need to link the framework. Because they are at different directory |
| 666 | # depths, using @executable_path as the install_name would require using |
| 667 | # install_name_tool on one of the executables. However install_name_tool |
| 668 | # only operates in-place, which is problematic to express in GN. Instead, |
| 669 | # use rpath-based loading. |
| 670 | # TODO(rsesek): After GYP is gone, re-write content_shell_main to be like |
| 671 | # chrome_main and use dlopen() instead of a linked framework. |
| 672 | ldflags = [ "-Wl,-install_name,@rpath/Frameworks/$output_name.framework/$output_name" ] |
| 673 | |
| 674 | if (is_component_build) { |
| 675 | # Set up the rpath for the framework so that it can find dylibs in the |
| 676 | # root output directory. The framework is at |
| 677 | # Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Content Shell Framework |
| 678 | # so use loader_path to go back to the root output directory. |
| 679 | ldflags += [ |
| 680 | "-rpath", |
| 681 | "@loader_path/../../../..", |
| 682 | ] |
| 683 | } |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 684 | |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 685 | info_plist_target = ":content_shell_framework_plist" |
| 686 | } |
| 687 | |
| 688 | tweak_info_plist("content_shell_helper_plist") { |
| 689 | testonly = true |
| 690 | info_plist = "app/helper-Info.plist" |
| 691 | args = [ |
| 692 | "--breakpad=0", |
| 693 | "--keystone=0", |
| 694 | "--scm=0", |
| 695 | "--version", |
| 696 | content_shell_version, |
| 697 | ] |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 698 | } |
rsesek | 20a58a6 | 2016-04-15 20:59:23 | [diff] [blame] | 699 | |
| 700 | mac_app_bundle("content_shell_helper_app") { |
| 701 | testonly = true |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 702 | output_name = content_shell_helper_name |
rsesek | 20a58a6 | 2016-04-15 20:59:23 | [diff] [blame] | 703 | sources = [ |
| 704 | "app/shell_main.cc", |
| 705 | ] |
| 706 | deps = [ |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 707 | ":content_shell_framework+link", |
rsesek | 1cfe20c3 | 2016-07-27 17:44:51 | [diff] [blame^] | 708 | "//build/config/sanitizers:deps", |
rsesek | 20a58a6 | 2016-04-15 20:59:23 | [diff] [blame] | 709 | ] |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 710 | ldflags = [ |
| 711 | # The helper is in Content Shell.app/Contents/Frameworks/Content Shell Helper.app/Contents/MacOS/ |
rsesek | 6a8a5d0 | 2016-06-21 01:16:18 | [diff] [blame] | 712 | # so set rpath up to Contents/ so that the loader can find Frameworks/. |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 713 | "-rpath", |
rsesek | 6a8a5d0 | 2016-06-21 01:16:18 | [diff] [blame] | 714 | "@executable_path/../../../..", |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 715 | ] |
rsesek | 90112aa6 | 2016-05-03 17:33:36 | [diff] [blame] | 716 | info_plist_target = ":content_shell_helper_plist" |
rsesek | 20a58a6 | 2016-04-15 20:59:23 | [diff] [blame] | 717 | } |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 718 | |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 719 | bundle_data("content_shell_framework_bundle_data") { |
| 720 | testonly = true |
| 721 | sources = [ |
| 722 | "$root_out_dir/$content_shell_framework_name.framework", |
| 723 | "$root_out_dir/$content_shell_helper_name.app", |
| 724 | ] |
| 725 | outputs = [ |
| 726 | "{{bundle_root_dir}}/Frameworks/{{source_file_part}}", |
| 727 | ] |
| 728 | public_deps = [ |
| 729 | ":content_shell_framework+link", |
rsesek | 6a8a5d0 | 2016-06-21 01:16:18 | [diff] [blame] | 730 | ":content_shell_helper_app", |
rsesek | 7f9d12b | 2016-04-29 02:45:56 | [diff] [blame] | 731 | ] |
| 732 | } |
| 733 | |
| 734 | bundle_data("content_shell_resources_bundle_data") { |
| 735 | testonly = true |
| 736 | sources = [ |
| 737 | "app/app.icns", |
| 738 | ] |
| 739 | outputs = [ |
| 740 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 741 | ] |
| 742 | } |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 743 | } |
ortuno | f78c841 | 2016-03-31 18:59:59 | [diff] [blame] | 744 | |
| 745 | mojom("mojo_bindings") { |
| 746 | sources = [ |
| 747 | "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom", |
| 748 | ] |
yzshen | 4e4d53c | 2016-07-19 06:56:42 | [diff] [blame] | 749 | |
| 750 | use_new_wrapper_types = false |
ortuno | f78c841 | 2016-03-31 18:59:59 | [diff] [blame] | 751 | } |