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