[email protected] | d56a89c | 2010-03-26 22:08:03 | [diff] [blame] | 1 | # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [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 | { |
| 6 | 'variables': { |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 7 | 'test_shell_windows_resource_files': [ |
| 8 | 'resources/test_shell.rc', |
| 9 | 'resources/pan_east.cur', |
| 10 | 'resources/pan_middle.cur', |
| 11 | 'resources/pan_north.cur', |
| 12 | 'resources/pan_north_east.cur', |
| 13 | 'resources/pan_north_west.cur', |
| 14 | 'resources/pan_south.cur', |
| 15 | 'resources/pan_south_east.cur', |
| 16 | 'resources/pan_south_west.cur', |
| 17 | 'resources/pan_west.cur', |
| 18 | 'resources/small.ico', |
| 19 | 'resources/test_shell.ico', |
| 20 | 'resource.h', |
| 21 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 22 | }, |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 23 | 'targets': [ |
| 24 | { |
| 25 | 'target_name': 'test_shell_common', |
[email protected] | 653bd5f03 | 2009-04-08 12:55:49 | [diff] [blame] | 26 | 'type': '<(library)', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 27 | 'variables': { |
| 28 | 'chromium_code': 1, |
| 29 | }, |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 30 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 31 | '<(DEPTH)/app/app.gyp:app_base', |
| 32 | '<(DEPTH)/base/base.gyp:base', |
| 33 | '<(DEPTH)/base/base.gyp:base_i18n', |
| 34 | '<(DEPTH)/media/media.gyp:media', |
| 35 | '<(DEPTH)/net/net.gyp:net', |
| 36 | '<(DEPTH)/skia/skia.gyp:skia', |
| 37 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 38 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 39 | '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
| 40 | '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', |
| 41 | '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', |
| 42 | '<(DEPTH)/webkit/webkit.gyp:appcache', |
| 43 | '<(DEPTH)/webkit/webkit.gyp:database', |
| 44 | '<(DEPTH)/webkit/webkit.gyp:glue', |
| 45 | '<(DEPTH)/webkit/webkit.gyp:inspector_resources', |
[email protected] | 43b3be3 | 2010-03-04 08:25:08 | [diff] [blame] | 46 | '<(DEPTH)/webkit/webkit.gyp:webkit_support', |
[email protected] | 63aef5e | 2009-11-03 22:48:15 | [diff] [blame] | 47 | 'npapi_layout_test_plugin', |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 48 | ], |
[email protected] | ea2a98d7 | 2009-05-08 01:53:23 | [diff] [blame] | 49 | 'msvs_guid': '77C32787-1B96-CB84-B905-7F170629F0AC', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 50 | 'sources': [ |
[email protected] | 3d1e89d | 2010-03-10 20:01:35 | [diff] [blame] | 51 | 'mac/accelerated_surface_stub.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 52 | 'mac/DumpRenderTreePasteboard.h', |
| 53 | 'mac/DumpRenderTreePasteboard.m', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 54 | 'mac/test_shell_webview.h', |
| 55 | 'mac/test_shell_webview.mm', |
| 56 | 'mac/test_webview_delegate.mm', |
| 57 | 'mac/webview_host.mm', |
| 58 | 'mac/webwidget_host.mm', |
[email protected] | 9599173 | 2009-10-14 22:18:16 | [diff] [blame] | 59 | 'accessibility_controller.cc', |
| 60 | 'accessibility_controller.h', |
| 61 | 'accessibility_ui_element.cc', |
| 62 | 'accessibility_ui_element.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 63 | 'drag_delegate.cc', |
| 64 | 'drag_delegate.h', |
| 65 | 'drop_delegate.cc', |
| 66 | 'drop_delegate.h', |
| 67 | 'event_sending_controller.cc', |
| 68 | 'event_sending_controller.h', |
| 69 | 'foreground_helper.h', |
| 70 | 'layout_test_controller.cc', |
| 71 | 'layout_test_controller.h', |
[email protected] | a003409 | 2010-01-27 06:58:27 | [diff] [blame] | 72 | 'mock_spellcheck.cc', |
| 73 | 'mock_spellcheck.h', |
[email protected] | ad33fd4 | 2009-11-09 06:13:56 | [diff] [blame] | 74 | 'plain_text_controller.cc', |
| 75 | 'plain_text_controller.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 76 | 'resource.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 77 | 'test_navigation_controller.cc', |
| 78 | 'test_navigation_controller.h', |
| 79 | 'test_shell.cc', |
| 80 | 'test_shell.h', |
[email protected] | ac863a0 | 2009-12-15 10:51:23 | [diff] [blame] | 81 | 'test_shell_devtools_agent.cc', |
| 82 | 'test_shell_devtools_agent.h', |
| 83 | 'test_shell_devtools_callargs.cc', |
| 84 | 'test_shell_devtools_callargs.h', |
| 85 | 'test_shell_devtools_client.cc', |
| 86 | 'test_shell_devtools_client.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 87 | 'test_shell_gtk.cc', |
[email protected] | 4c3cd741 | 2009-04-22 17:56:06 | [diff] [blame] | 88 | 'test_shell_x11.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 89 | 'test_shell_mac.mm', |
| 90 | 'test_shell_platform_delegate.h', |
| 91 | 'test_shell_platform_delegate_gtk.cc', |
| 92 | 'test_shell_platform_delegate_mac.mm', |
| 93 | 'test_shell_platform_delegate_win.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 94 | 'test_shell_switches.cc', |
| 95 | 'test_shell_switches.h', |
| 96 | 'test_shell_win.cc', |
[email protected] | 992c86d | 2009-02-27 02:43:05 | [diff] [blame] | 97 | 'test_shell_webkit_init.h', |
[email protected] | d56a89c | 2010-03-26 22:08:03 | [diff] [blame] | 98 | 'test_shell_webmimeregistry_impl.cc', |
| 99 | 'test_shell_webmimeregistry_impl.h', |
[email protected] | cf37da3 | 2009-09-14 21:19:21 | [diff] [blame] | 100 | 'test_shell_webthemecontrol.h', |
| 101 | 'test_shell_webthemecontrol.cc', |
| 102 | 'test_shell_webthemeengine.h', |
| 103 | 'test_shell_webthemeengine.cc', |
[email protected] | 02473008 | 2009-09-11 21:00:55 | [diff] [blame] | 104 | 'test_web_worker.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 105 | 'test_webview_delegate.cc', |
| 106 | 'test_webview_delegate.h', |
| 107 | 'test_webview_delegate_gtk.cc', |
| 108 | 'test_webview_delegate_win.cc', |
| 109 | 'text_input_controller.cc', |
| 110 | 'text_input_controller.h', |
| 111 | 'webview_host.h', |
| 112 | 'webview_host_gtk.cc', |
| 113 | 'webview_host_win.cc', |
| 114 | 'webwidget_host.h', |
| 115 | 'webwidget_host_gtk.cc', |
| 116 | 'webwidget_host_win.cc', |
| 117 | ], |
[email protected] | 19e00ed | 2009-02-26 16:33:19 | [diff] [blame] | 118 | 'export_dependent_settings': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 119 | '<(DEPTH)/base/base.gyp:base', |
| 120 | '<(DEPTH)/net/net.gyp:net', |
| 121 | '<(DEPTH)/third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', |
| 122 | '<(DEPTH)/third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit', |
| 123 | '<(DEPTH)/webkit/webkit.gyp:glue', |
[email protected] | 19e00ed | 2009-02-26 16:33:19 | [diff] [blame] | 124 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 125 | 'conditions': [ |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 126 | # http://code.google.com/p/chromium/issues/detail?id=18337 |
[email protected] | 08be8a7 | 2009-11-18 20:35:54 | [diff] [blame] | 127 | ['target_arch!="x64" and target_arch!="arm"', { |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 128 | 'dependencies': [ |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 129 | 'npapi_test_plugin', |
| 130 | ], |
| 131 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 132 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 133 | 'dependencies': [ |
| 134 | 'test_shell_resources', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 135 | '<(DEPTH)/build/linux/system.gyp:gtk', |
| 136 | '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 137 | ], |
| 138 | # for: test_shell_gtk.cc |
| 139 | 'cflags': ['-Wno-multichar'], |
[email protected] | bf0791a | 2009-08-03 17:33:41 | [diff] [blame] | 140 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 141 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
[email protected] | 9a8f8ce | 2009-06-30 22:21:09 | [diff] [blame] | 142 | # See below TODO in the Windows branch. |
| 143 | 'copies': [ |
| 144 | { |
| 145 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 146 | 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'], |
| 147 | }, |
| 148 | ], |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 149 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 150 | ['OS=="win"', { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 151 | 'msvs_disabled_warnings': [ 4800 ], |
[email protected] | 69acda8 | 2009-03-03 04:22:23 | [diff] [blame] | 152 | 'link_settings': { |
| 153 | 'libraries': [ |
| 154 | '-lcomctl32.lib', |
| 155 | ], |
| 156 | }, |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 157 | 'include_dirs': [ |
[email protected] | cd134c8c | 2010-03-09 05:23:12 | [diff] [blame] | 158 | '<(DEPTH)/third_party/wtl/include', |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 159 | '.', |
| 160 | ], |
[email protected] | 69acda8 | 2009-03-03 04:22:23 | [diff] [blame] | 161 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 162 | '<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler', |
| 163 | '<(DEPTH)/webkit/default_plugin/default_plugin.gyp:default_plugin', |
[email protected] | 69acda8 | 2009-03-03 04:22:23 | [diff] [blame] | 164 | ], |
[email protected] | 04d2c30 | 2009-10-26 21:49:10 | [diff] [blame] | 165 | # TODO(bradnelson): |
[email protected] | 81765d3 | 2009-05-08 08:31:50 | [diff] [blame] | 166 | # This should really be done in the 'npapi_layout_test_plugin' |
| 167 | # target, but the current VS generator handles 'copies' |
| 168 | # settings as AdditionalDependencies, which means that |
| 169 | # when it's over there, it tries to do the copy *before* |
| 170 | # the file is built, instead of after. We work around this |
| 171 | # by attaching the copy here, since it depends on that |
| 172 | # target. |
| 173 | 'copies': [ |
| 174 | { |
| 175 | 'destination': '<(PRODUCT_DIR)/plugins', |
| 176 | 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], |
| 177 | }, |
| 178 | ], |
[email protected] | 3ebf9af0 | 2009-03-04 21:04:04 | [diff] [blame] | 179 | }, { # else: OS!=win |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 180 | 'sources/': [ |
[email protected] | cf37da3 | 2009-09-14 21:19:21 | [diff] [blame] | 181 | ['exclude', '_webtheme(control|engine)\.(cc|h)$'], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 182 | ], |
| 183 | 'sources!': [ |
| 184 | 'drag_delegate.cc', |
| 185 | 'drop_delegate.cc', |
| 186 | ], |
| 187 | }], |
| 188 | ], |
| 189 | }, |
| 190 | { |
[email protected] | f4282f9 | 2009-09-14 07:00:38 | [diff] [blame] | 191 | 'target_name': 'test_shell_pak', |
| 192 | 'type': 'none', |
| 193 | 'variables': { |
| 194 | 'repack_path': '../../../tools/data_pack/repack.py', |
| 195 | 'pak_path': '<(INTERMEDIATE_DIR)/repack/test_shell.pak', |
| 196 | }, |
| 197 | 'conditions': [ |
[email protected] | 10a6e77b | 2009-12-31 01:03:52 | [diff] [blame] | 198 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
[email protected] | f4282f9 | 2009-09-14 07:00:38 | [diff] [blame] | 199 | 'actions': [ |
| 200 | { |
| 201 | 'action_name': 'test_shell_repack', |
| 202 | 'variables': { |
| 203 | 'pak_inputs': [ |
| 204 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
| 205 | '<(SHARED_INTERMEDIATE_DIR)/test_shell/test_shell_resources.pak', |
[email protected] | 2cc098e | 2010-03-11 02:03:47 | [diff] [blame] | 206 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak', |
[email protected] | f4282f9 | 2009-09-14 07:00:38 | [diff] [blame] | 207 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', |
| 208 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
| 209 | ], |
| 210 | }, |
| 211 | 'inputs': [ |
| 212 | '<(repack_path)', |
| 213 | '<@(pak_inputs)', |
| 214 | ], |
| 215 | 'outputs': [ |
| 216 | '<(pak_path)', |
| 217 | ], |
| 218 | 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'], |
| 219 | }, |
| 220 | ], |
| 221 | 'copies': [ |
| 222 | { |
| 223 | 'destination': '<(PRODUCT_DIR)', |
| 224 | 'files': ['<(pak_path)'], |
| 225 | }, |
| 226 | ], |
| 227 | }], |
| 228 | ], |
| 229 | }, |
| 230 | { |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 231 | 'target_name': 'test_shell', |
[email protected] | d92c7c01 | 2009-03-19 19:26:42 | [diff] [blame] | 232 | 'type': 'executable', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 233 | 'variables': { |
| 234 | 'chromium_code': 1, |
| 235 | }, |
[email protected] | d92c7c01 | 2009-03-19 19:26:42 | [diff] [blame] | 236 | 'mac_bundle': 1, |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 237 | 'msvs_guid': 'FA39524D-3067-4141-888D-28A86C66F2B9', |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 238 | 'dependencies': [ |
| 239 | 'test_shell_common', |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 240 | '<(DEPTH)/net/net.gyp:net_test_support', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 241 | '<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff', |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 242 | ], |
[email protected] | d6fc9fd | 2009-10-27 18:03:47 | [diff] [blame] | 243 | 'defines': [ |
| 244 | # Technically not a unit test but require functions available only to |
| 245 | # unit tests. |
| 246 | 'UNIT_TEST' |
| 247 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 248 | 'sources': [ |
| 249 | 'test_shell_main.cc', |
| 250 | ], |
| 251 | 'mac_bundle_resources': [ |
| 252 | '../../data/test_shell/', |
| 253 | 'mac/English.lproj/InfoPlist.strings', |
| 254 | 'mac/English.lproj/MainMenu.nib', |
| 255 | 'mac/Info.plist', |
| 256 | 'mac/test_shell.icns', |
| 257 | 'resources/AHEM____.TTF', |
| 258 | ], |
| 259 | 'mac_bundle_resources!': [ |
| 260 | # TODO(mark): Come up with a fancier way to do this (mac_info_plist?) |
| 261 | # that automatically sets the correct INFOPLIST_FILE setting and adds |
| 262 | # the file to a source group. |
| 263 | 'mac/Info.plist', |
| 264 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 265 | 'xcode_settings': { |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 266 | 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/test_shell/mac/Info.plist', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 267 | }, |
| 268 | 'conditions': [ |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 269 | ['OS=="win"', { |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 270 | 'dependencies': [ |
| 271 | 'layout_test_helper', |
| 272 | ], |
[email protected] | 31512d44 | 2009-06-13 22:07:54 | [diff] [blame] | 273 | 'resource_include_dirs': [ |
| 274 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 275 | ], |
[email protected] | 5376125 | 2009-05-06 06:16:26 | [diff] [blame] | 276 | 'sources': [ |
| 277 | '<@(test_shell_windows_resource_files)', |
| 278 | # TODO: It would be nice to have these pulled in |
| 279 | # automatically from direct_dependent_settings in |
| 280 | # their various targets (net.gyp:net_resources, etc.), |
| 281 | # but that causes errors in other targets when |
| 282 | # resulting .res files get referenced multiple times. |
| 283 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', |
[email protected] | 2cc098e | 2010-03-11 02:03:47 | [diff] [blame] | 284 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc', |
[email protected] | 5376125 | 2009-05-06 06:16:26 | [diff] [blame] | 285 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc', |
| 286 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc', |
| 287 | ], |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 288 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 289 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
[email protected] | 3c4e3015 | 2009-11-25 00:17:53 | [diff] [blame] | 290 | 'conditions': [ |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 291 | ['linux_use_tcmalloc==1', { |
| 292 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 293 | '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 294 | ], |
| 295 | }], |
[email protected] | 3c4e3015 | 2009-11-25 00:17:53 | [diff] [blame] | 296 | ], |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 297 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 298 | '<(DEPTH)/build/linux/system.gyp:gtk', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 299 | 'test_shell_resources', |
[email protected] | f4282f9 | 2009-09-14 07:00:38 | [diff] [blame] | 300 | 'test_shell_pak', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 301 | ], |
| 302 | }], |
[email protected] | 0654b7b | 2009-03-05 20:14:52 | [diff] [blame] | 303 | ['OS=="mac"', { |
| 304 | 'product_name': 'TestShell', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 305 | 'dependencies': [ |
| 306 | 'layout_test_helper', |
| 307 | ], |
[email protected] | 0654b7b | 2009-03-05 20:14:52 | [diff] [blame] | 308 | 'variables': { |
| 309 | 'repack_path': '../../../tools/data_pack/repack.py', |
| 310 | }, |
| 311 | 'actions': [ |
| 312 | { |
| 313 | # TODO(mark): Make this work with more languages than the |
| 314 | # hardcoded en-US. |
| 315 | 'action_name': 'repack_locale', |
| 316 | 'variables': { |
| 317 | 'pak_inputs': [ |
[email protected] | 2cc098e | 2010-03-11 02:03:47 | [diff] [blame] | 318 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak', |
[email protected] | 0654b7b | 2009-03-05 20:14:52 | [diff] [blame] | 319 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak', |
[email protected] | 89628fd | 2009-10-02 18:08:52 | [diff] [blame] | 320 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', |
[email protected] | 0654b7b | 2009-03-05 20:14:52 | [diff] [blame] | 321 | ], |
| 322 | }, |
| 323 | 'inputs': [ |
| 324 | '<(repack_path)', |
| 325 | '<@(pak_inputs)', |
| 326 | ], |
| 327 | 'outputs': [ |
| 328 | '<(INTERMEDIATE_DIR)/repack/test_shell.pak', |
| 329 | ], |
| 330 | 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'], |
| 331 | 'process_outputs_as_mac_bundle_resources': 1, |
| 332 | }, |
[email protected] | bbceb0f | 2009-05-08 14:56:02 | [diff] [blame] | 333 | ], |
| 334 | 'copies': [ |
| 335 | { |
| 336 | 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/PlugIns/', |
| 337 | 'files': [ |
| 338 | '<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/', |
| 339 | ], |
| 340 | }, |
[email protected] | 89628fd | 2009-10-02 18:08:52 | [diff] [blame] | 341 | # TODO(ajwong): This, and the parallel chromium stanza below |
| 342 | # really should find a way to share file paths with |
| 343 | # ffmpeg.gyp so they don't diverge. (BUG=23602) |
| 344 | { |
| 345 | 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/MacOS/', |
| 346 | 'files': [ |
[email protected] | 995925b | 2009-11-05 00:56:41 | [diff] [blame] | 347 | '<(PRODUCT_DIR)/libffmpegsumo.dylib', |
[email protected] | 89628fd | 2009-10-02 18:08:52 | [diff] [blame] | 348 | ], |
| 349 | }, |
[email protected] | bbceb0f | 2009-05-08 14:56:02 | [diff] [blame] | 350 | ], |
[email protected] | 5376125 | 2009-05-06 06:16:26 | [diff] [blame] | 351 | }, { # OS != "mac" |
| 352 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 353 | '<(DEPTH)/net/net.gyp:net_resources', |
| 354 | '<(DEPTH)/webkit/webkit.gyp:webkit_resources', |
| 355 | '<(DEPTH)/webkit/webkit.gyp:webkit_strings', |
[email protected] | 5376125 | 2009-05-06 06:16:26 | [diff] [blame] | 356 | ] |
[email protected] | 0654b7b | 2009-03-05 20:14:52 | [diff] [blame] | 357 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 358 | ], |
| 359 | }, |
| 360 | { |
| 361 | 'target_name': 'test_shell_tests', |
| 362 | 'type': 'executable', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 363 | 'variables': { |
| 364 | 'chromium_code': 1, |
| 365 | }, |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 366 | 'msvs_guid': 'E6766F81-1FCD-4CD7-BC16-E36964A14867', |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 367 | 'dependencies': [ |
| 368 | 'test_shell_common', |
[email protected] | 702a6a72 | 2010-03-17 18:24:51 | [diff] [blame] | 369 | '<(DEPTH)/net/net.gyp:net_test_support', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 370 | '<(DEPTH)/skia/skia.gyp:skia', |
| 371 | '<(DEPTH)/testing/gmock.gyp:gmock', |
| 372 | '<(DEPTH)/testing/gtest.gyp:gtest', |
[email protected] | f0e2c50 | 2009-02-26 05:18:58 | [diff] [blame] | 373 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 374 | 'sources': [ |
| 375 | '../../../skia/ext/convolver_unittest.cc', |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 376 | '../../../skia/ext/image_operations_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 377 | '../../../skia/ext/platform_canvas_unittest.cc', |
| 378 | '../../../skia/ext/vector_canvas_unittest.cc', |
[email protected] | 9b26746e | 2009-08-06 21:35:45 | [diff] [blame] | 379 | '../../appcache/manifest_parser_unittest.cc', |
[email protected] | eaa0885 | 2009-09-02 23:17:33 | [diff] [blame] | 380 | '../../appcache/appcache_unittest.cc', |
[email protected] | 35f2094c | 2009-12-29 22:46:55 | [diff] [blame] | 381 | '../../appcache/appcache_database_unittest.cc', |
[email protected] | eaa0885 | 2009-09-02 23:17:33 | [diff] [blame] | 382 | '../../appcache/appcache_group_unittest.cc', |
[email protected] | 97e3edc | 2009-09-15 22:07:15 | [diff] [blame] | 383 | '../../appcache/appcache_host_unittest.cc', |
[email protected] | 3367fc1d | 2009-11-09 00:09:21 | [diff] [blame] | 384 | '../../appcache/appcache_request_handler_unittest.cc', |
[email protected] | 073aabe | 2009-10-21 18:09:33 | [diff] [blame] | 385 | '../../appcache/appcache_response_unittest.cc', |
[email protected] | e7dff7ba | 2009-10-09 03:25:51 | [diff] [blame] | 386 | '../../appcache/appcache_storage_unittest.cc', |
[email protected] | 35f2094c | 2009-12-29 22:46:55 | [diff] [blame] | 387 | '../../appcache/appcache_storage_impl_unittest.cc', |
[email protected] | ae3c0b26 | 2009-10-06 17:19:37 | [diff] [blame] | 388 | '../../appcache/appcache_update_job_unittest.cc', |
[email protected] | 3367fc1d | 2009-11-09 00:09:21 | [diff] [blame] | 389 | '../../appcache/appcache_url_request_job_unittest.cc', |
[email protected] | e7dff7ba | 2009-10-09 03:25:51 | [diff] [blame] | 390 | '../../appcache/mock_appcache_service.h', |
[email protected] | 550890e | 2009-10-24 21:42:25 | [diff] [blame] | 391 | '../../appcache/mock_appcache_storage_unittest.cc', |
[email protected] | 615dedfc | 2009-11-02 21:41:56 | [diff] [blame] | 392 | '../../database/databases_table_unittest.cc', |
| 393 | '../../database/database_tracker_unittest.cc', |
[email protected] | 3c5ed2c | 2009-11-13 01:30:45 | [diff] [blame] | 394 | '../../database/database_util_unittest.cc', |
[email protected] | 3ccfe53 | 2010-01-06 21:15:55 | [diff] [blame] | 395 | '../../database/quota_table_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 396 | '../../glue/bookmarklet_unittest.cc', |
| 397 | '../../glue/context_menu_unittest.cc', |
| 398 | '../../glue/cpp_bound_class_unittest.cc', |
| 399 | '../../glue/cpp_variant_unittest.cc', |
| 400 | '../../glue/dom_operations_unittest.cc', |
| 401 | '../../glue/dom_serializer_unittest.cc', |
| 402 | '../../glue/glue_serialize_unittest.cc', |
| 403 | '../../glue/iframe_redirect_unittest.cc', |
[email protected] | 8e296bbd | 2009-07-22 21:37:17 | [diff] [blame] | 404 | '../../glue/media/buffered_data_source_unittest.cc', |
[email protected] | 8380c09 | 2009-06-25 17:45:51 | [diff] [blame] | 405 | '../../glue/media/media_resource_loader_bridge_factory_unittest.cc', |
[email protected] | 8e296bbd | 2009-07-22 21:37:17 | [diff] [blame] | 406 | '../../glue/media/mock_media_resource_loader_bridge_factory.h', |
| 407 | '../../glue/media/simple_data_source_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 408 | '../../glue/mimetype_unittest.cc', |
[email protected] | 8e296bbd | 2009-07-22 21:37:17 | [diff] [blame] | 409 | '../../glue/mock_resource_loader_bridge.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 410 | '../../glue/multipart_response_delegate_unittest.cc', |
[email protected] | aeae18c | 2009-09-08 23:26:31 | [diff] [blame] | 411 | '../../glue/plugins/plugin_lib_unittest.cc', |
[email protected] | e612d76 | 2010-03-31 04:32:30 | [diff] [blame] | 412 | '../../glue/plugins/webplugin_impl_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 413 | '../../glue/regular_expression_unittest.cc', |
| 414 | '../../glue/resource_fetcher_unittest.cc', |
| 415 | '../../glue/unittest_test_server.h', |
[email protected] | dca5e3f | 2009-06-26 20:24:31 | [diff] [blame] | 416 | '../../glue/webcursor_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 417 | '../../glue/webframe_unittest.cc', |
[email protected] | 9943280 | 2009-11-12 21:40:31 | [diff] [blame] | 418 | '../../glue/webkit_glue_unittest.cc', |
[email protected] | 979c28b | 2009-11-07 01:30:48 | [diff] [blame] | 419 | '../../glue/webpasswordautocompletelistener_unittest.cc', |
[email protected] | 9943280 | 2009-11-12 21:40:31 | [diff] [blame] | 420 | '../../glue/webview_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 421 | '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 422 | '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', |
[email protected] | 98db7950 | 2010-02-02 21:44:57 | [diff] [blame] | 423 | 'event_listener_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 424 | 'image_decoder_unittest.cc', |
| 425 | 'image_decoder_unittest.h', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 426 | 'layout_test_controller_unittest.cc', |
[email protected] | 7423cb33 | 2009-08-12 09:18:06 | [diff] [blame] | 427 | 'listener_leak_test.cc', |
[email protected] | e4c745c | 2009-07-10 20:34:25 | [diff] [blame] | 428 | 'media_leak_test.cc', |
[email protected] | a003409 | 2010-01-27 06:58:27 | [diff] [blame] | 429 | 'mock_spellcheck_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 430 | 'node_leak_test.cc', |
| 431 | 'plugin_tests.cc', |
| 432 | 'run_all_tests.cc', |
| 433 | 'test_shell_test.cc', |
| 434 | 'test_shell_test.h', |
| 435 | 'text_input_controller_unittest.cc', |
| 436 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 437 | 'conditions': [ |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 438 | ['OS=="win"', { |
[email protected] | b2b4179 | 2009-06-14 17:15:50 | [diff] [blame] | 439 | 'resource_include_dirs': [ |
| 440 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 441 | ], |
[email protected] | 004af19 | 2009-04-09 22:35:15 | [diff] [blame] | 442 | 'sources': [ '<@(test_shell_windows_resource_files)' ], |
| 443 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 444 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 445 | 'dependencies': [ |
[email protected] | f4282f9 | 2009-09-14 07:00:38 | [diff] [blame] | 446 | 'test_shell_pak', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 447 | '<(DEPTH)/build/linux/system.gyp:gtk', |
[email protected] | 9d38403 | 2009-03-20 23:13:26 | [diff] [blame] | 448 | ], |
[email protected] | 2708ec1 | 2009-03-09 18:07:23 | [diff] [blame] | 449 | 'sources!': [ |
| 450 | # TODO(port) |
| 451 | '../../../skia/ext/platform_canvas_unittest.cc', |
[email protected] | 2708ec1 | 2009-03-09 18:07:23 | [diff] [blame] | 452 | ], |
| 453 | }], |
[email protected] | e936571 | 2009-03-03 17:33:42 | [diff] [blame] | 454 | ['OS=="mac"', { |
| 455 | # mac tests load the resources from the built test_shell beside the |
| 456 | # test |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 457 | 'dependencies': [ |
| 458 | 'test_shell', |
| 459 | ], |
[email protected] | 61c2bae0 | 2009-05-18 21:12:37 | [diff] [blame] | 460 | 'sources!': [ |
[email protected] | 935a4d5 | 2009-06-11 01:05:38 | [diff] [blame] | 461 | # Disable the image decoder tests because we use CoreGraphics |
| 462 | # code on mac and these tests are for the Skia image-decoders. |
| 463 | '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', |
| 464 | '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', |
| 465 | '../webcore_unit_tests/XBMImageDecoder_unittest.cpp', |
| 466 | 'image_decoder_unittest.cc', |
| 467 | 'image_decoder_unittest.h', |
[email protected] | 3194e1ed | 2009-06-25 18:16:39 | [diff] [blame] | 468 | ], |
| 469 | 'sources': [ |
| 470 | '../../../skia/ext/skia_utils_mac_unittest.mm', |
| 471 | ], |
[email protected] | e936571 | 2009-03-03 17:33:42 | [diff] [blame] | 472 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 473 | ['OS=="win"', { |
| 474 | 'msvs_disabled_warnings': [ 4800 ], |
[email protected] | 3ebf9af0 | 2009-03-04 21:04:04 | [diff] [blame] | 475 | }, { # else: OS!=win |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 476 | 'sources!': [ |
| 477 | '../../../skia/ext/vector_canvas_unittest.cc', |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 478 | ], |
| 479 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 480 | ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 481 | 'conditions': [ |
| 482 | ['linux_use_tcmalloc==1', { |
| 483 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 484 | '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
[email protected] | d9df2b5 | 2009-12-10 12:06:15 | [diff] [blame] | 485 | ], |
| 486 | }], |
| 487 | ], |
| 488 | }], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 489 | ], |
| 490 | }, |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 491 | { |
| 492 | 'target_name': 'npapi_layout_test_plugin', |
| 493 | 'type': 'loadable_module', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 494 | 'variables': { |
| 495 | 'chromium_code': 1, |
| 496 | }, |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 497 | 'mac_bundle': 1, |
| 498 | 'msvs_guid': 'BE6D5659-A8D5-4890-A42C-090DD10EF62C', |
| 499 | 'sources': [ |
| 500 | '../npapi_layout_test_plugin/PluginObject.cpp', |
| 501 | '../npapi_layout_test_plugin/TestObject.cpp', |
| 502 | '../npapi_layout_test_plugin/main.cpp', |
| 503 | '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', |
| 504 | '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', |
| 505 | ], |
| 506 | 'include_dirs': [ |
| 507 | '../../..', |
| 508 | ], |
| 509 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 510 | '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
| 511 | '<(DEPTH)/third_party/WebKit/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf', |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 512 | ], |
| 513 | 'msvs_disabled_warnings': [ 4996 ], |
| 514 | 'mac_bundle_resources': [ |
| 515 | '../npapi_layout_test_plugin/Info.r', |
| 516 | ], |
| 517 | 'xcode_settings': { |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 518 | 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_layout_test_plugin/Info.plist', |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 519 | }, |
| 520 | 'conditions': [ |
| 521 | ['OS!="win"', { |
| 522 | 'sources!': [ |
[email protected] | fe474ed | 2009-08-21 22:24:43 | [diff] [blame] | 523 | '../npapi_layout_test_plugin/npapi_layout_test_plugin.def', |
| 524 | '../npapi_layout_test_plugin/npapi_layout_test_plugin.rc', |
| 525 | ], |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 526 | # TODO(bradnelson): |
| 527 | # This copy should really live here, as a post-build step, |
| 528 | # but it's currently being implemented via |
| 529 | # AdditionalDependencies, which tries to do the copy before |
| 530 | # the file is built... |
| 531 | # |
| 532 | }, { # OS == "win" |
| 533 | # # The old VS build would explicitly copy the .dll into the |
| 534 | # # plugins subdirectory like this. It might be possible to |
| 535 | # # use the 'product_dir' setting to build directly into |
| 536 | # # plugins/ (as is done on Linux), but we'd need to verify |
| 537 | # # that nothing breaks first. |
| 538 | # 'copies': [ |
| 539 | # { |
| 540 | # 'destination': '<(PRODUCT_DIR)/plugins', |
| 541 | # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'], |
| 542 | # }, |
| 543 | # ], |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 544 | 'variables': { |
| 545 | # This is not a relative pathname. Avoid pathname relativization |
| 546 | # by sticking it in a variable that isn't recognized as one |
| 547 | # containing pathnames, and by using the >(late) form of variable |
| 548 | # expansion. |
| 549 | 'winmm_lib': 'winmm.lib', |
| 550 | }, |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 551 | 'link_settings': { |
| 552 | 'libraries': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 553 | '>(winmm_lib)', |
| 554 | ], |
[email protected] | fe474ed | 2009-08-21 22:24:43 | [diff] [blame] | 555 | }, |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 556 | }], |
| 557 | ['OS=="mac"', { |
| 558 | 'product_name': 'TestNetscapePlugIn', |
| 559 | 'product_extension': 'plugin', |
| 560 | 'link_settings': { |
| 561 | 'libraries': [ |
| 562 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 563 | ], |
| 564 | }, |
| 565 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 566 | ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and (target_arch=="x64" or target_arch=="arm")', { |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 567 | # Shared libraries need -fPIC on x86-64 |
| 568 | 'cflags': ['-fPIC'] |
| 569 | }], |
| 570 | ], |
| 571 | }, |
| 572 | ], |
| 573 | 'conditions': [ |
[email protected] | 08be8a7 | 2009-11-18 20:35:54 | [diff] [blame] | 574 | ['target_arch!="x64" and target_arch!="arm"', { |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 575 | 'targets': [ |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 576 | { |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 577 | 'target_name': 'npapi_test_common', |
| 578 | 'type': 'static_library', |
| 579 | 'dependencies': [ |
| 580 | '<(DEPTH)/base/base.gyp:base', |
| 581 | '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
| 582 | ], |
| 583 | 'sources': [ |
| 584 | '../../glue/plugins/test/npapi_constants.cc', |
| 585 | '../../glue/plugins/test/npapi_constants.h', |
| 586 | '../../glue/plugins/test/plugin_client.cc', |
| 587 | '../../glue/plugins/test/plugin_client.h', |
| 588 | '../../glue/plugins/test/plugin_test.cc', |
| 589 | '../../glue/plugins/test/plugin_test.h', |
| 590 | '../../glue/plugins/test/plugin_test_factory.h', |
| 591 | ], |
| 592 | }, |
| 593 | { |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 594 | 'target_name': 'npapi_test_plugin', |
| 595 | 'type': 'loadable_module', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 596 | 'variables': { |
| 597 | 'chromium_code': 1, |
| 598 | }, |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 599 | 'mac_bundle': 1, |
| 600 | 'msvs_guid': '0D04AEC1-6B68-492C-BCCF-808DFD69ABC6', |
| 601 | 'dependencies': [ |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 602 | '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 603 | 'npapi_test_common', |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 604 | ], |
| 605 | 'sources': [ |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 606 | '../../glue/plugins/test/npapi_test.cc', |
[email protected] | d338629d | 2009-11-03 20:00:34 | [diff] [blame] | 607 | '../../glue/plugins/test/npapi_test.def', |
| 608 | '../../glue/plugins/test/npapi_test.rc', |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 609 | '../../glue/plugins/test/plugin_arguments_test.cc', |
| 610 | '../../glue/plugins/test/plugin_arguments_test.h', |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 611 | '../../glue/plugins/test/plugin_create_instance_in_paint.cc', |
| 612 | '../../glue/plugins/test/plugin_create_instance_in_paint.h', |
| 613 | '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.cc', |
| 614 | '../../glue/plugins/test/plugin_delete_plugin_in_stream_test.h', |
| 615 | '../../glue/plugins/test/plugin_get_javascript_url_test.cc', |
| 616 | '../../glue/plugins/test/plugin_get_javascript_url_test.h', |
| 617 | '../../glue/plugins/test/plugin_get_javascript_url2_test.cc', |
| 618 | '../../glue/plugins/test/plugin_get_javascript_url2_test.h', |
| 619 | '../../glue/plugins/test/plugin_geturl_test.cc', |
| 620 | '../../glue/plugins/test/plugin_geturl_test.h', |
| 621 | '../../glue/plugins/test/plugin_javascript_open_popup.cc', |
| 622 | '../../glue/plugins/test/plugin_javascript_open_popup.h', |
| 623 | '../../glue/plugins/test/plugin_new_fails_test.cc', |
| 624 | '../../glue/plugins/test/plugin_new_fails_test.h', |
| 625 | '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', |
| 626 | '../../glue/plugins/test/plugin_npobject_lifetime_test.h', |
| 627 | '../../glue/plugins/test/plugin_npobject_proxy_test.cc', |
| 628 | '../../glue/plugins/test/plugin_npobject_proxy_test.h', |
| 629 | '../../glue/plugins/test/plugin_schedule_timer_test.cc', |
| 630 | '../../glue/plugins/test/plugin_schedule_timer_test.h', |
| 631 | '../../glue/plugins/test/plugin_thread_async_call_test.cc', |
| 632 | '../../glue/plugins/test/plugin_thread_async_call_test.h', |
| 633 | '../../glue/plugins/test/plugin_windowed_test.cc', |
| 634 | '../../glue/plugins/test/plugin_windowed_test.h', |
| 635 | '../../glue/plugins/test/plugin_private_test.cc', |
| 636 | '../../glue/plugins/test/plugin_private_test.h', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 637 | '../../glue/plugins/test/plugin_test_factory.cc', |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 638 | '../../glue/plugins/test/plugin_window_size_test.cc', |
| 639 | '../../glue/plugins/test/plugin_window_size_test.h', |
| 640 | '../../glue/plugins/test/plugin_windowless_test.cc', |
| 641 | '../../glue/plugins/test/plugin_windowless_test.h', |
| 642 | '../../glue/plugins/test/resource.h', |
[email protected] | fe474ed | 2009-08-21 22:24:43 | [diff] [blame] | 643 | ], |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 644 | 'include_dirs': [ |
| 645 | '../../..', |
| 646 | ], |
| 647 | 'xcode_settings': { |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 648 | 'INFOPLIST_FILE': '<(DEPTH)/webkit/glue/plugins/test/Info.plist', |
[email protected] | fe474ed | 2009-08-21 22:24:43 | [diff] [blame] | 649 | }, |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 650 | 'conditions': [ |
| 651 | ['OS!="win"', { |
| 652 | 'sources!': [ |
| 653 | # TODO(port): Port these. |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 654 | # plugin_npobject_lifetime_test.cc has win32-isms |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 655 | # (HWND, CALLBACK). |
| 656 | '../../glue/plugins/test/plugin_npobject_lifetime_test.cc', |
[email protected] | dabbeb8b | 2009-12-18 17:46:36 | [diff] [blame] | 657 | # The window APIs are necessarily platform-specific. |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 658 | '../../glue/plugins/test/plugin_window_size_test.cc', |
| 659 | '../../glue/plugins/test/plugin_windowed_test.cc', |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 660 | # Seems windows specific. |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 661 | '../../glue/plugins/test/plugin_create_instance_in_paint.cc', |
| 662 | '../../glue/plugins/test/plugin_create_instance_in_paint.h', |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 663 | # windows-specific resources |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 664 | '../../glue/plugins/test/npapi_test.def', |
| 665 | '../../glue/plugins/test/npapi_test.rc', |
| 666 | ], |
| 667 | }], |
| 668 | ['OS=="mac"', { |
[email protected] | 2393d25 | 2009-12-15 19:44:15 | [diff] [blame] | 669 | 'product_extension': 'plugin', |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 670 | 'link_settings': { |
| 671 | 'libraries': [ |
| 672 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 673 | ], |
| 674 | }, |
| 675 | }], |
[email protected] | f5d01f2 | 2010-03-30 04:08:14 | [diff] [blame] | 676 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
[email protected] | dabbeb8b | 2009-12-18 17:46:36 | [diff] [blame] | 677 | 'sources!': [ |
| 678 | # Needs simple event record type porting |
| 679 | '../../glue/plugins/test/plugin_windowless_test.cc', |
| 680 | ], |
| 681 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 682 | ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and (target_arch=="x64" or target_arch=="arm")', { |
[email protected] | 80196bd | 2009-11-03 21:10:23 | [diff] [blame] | 683 | # Shared libraries need -fPIC on x86-64 |
| 684 | 'cflags': ['-fPIC'] |
| 685 | }], |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 686 | ], |
| 687 | }, |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 688 | { |
[email protected] | 705c329 | 2010-03-29 16:28:40 | [diff] [blame] | 689 | 'target_name': 'npapi_pepper_test_plugin', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 690 | 'type': 'loadable_module', |
| 691 | 'mac_bundle': 1, |
[email protected] | 705c329 | 2010-03-29 16:28:40 | [diff] [blame] | 692 | 'msvs_guid': '821F3B89-6AE1-4254-99CB-93C04D0A79BE', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 693 | 'dependencies': [ |
| 694 | '<(DEPTH)/gpu/gpu.gyp:pgl', |
| 695 | '<(DEPTH)/third_party/gles2_book/gles2_book.gyp:stencil_test', |
| 696 | 'npapi_test_common', |
| 697 | ], |
| 698 | 'sources': [ |
[email protected] | 705c329 | 2010-03-29 16:28:40 | [diff] [blame] | 699 | '../npapi_pepper_test_plugin/main.cc', |
| 700 | '../npapi_pepper_test_plugin/pepper_3d_test.cc', |
| 701 | '../npapi_pepper_test_plugin/pepper_3d_test.h', |
| 702 | '../npapi_pepper_test_plugin/plugin.def', |
| 703 | '../npapi_pepper_test_plugin/plugin.rc', |
| 704 | '../npapi_pepper_test_plugin/test_factory.cc', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 705 | ], |
[email protected] | 1252b9a0 | 2010-03-31 17:42:35 | [diff] [blame] | 706 | 'conditions': [ |
| 707 | ['OS!="win"', { |
| 708 | # windows-specific resources |
| 709 | 'sources!': [ |
| 710 | '../npapi_pepper_test_plugin/plugin.def', |
| 711 | '../npapi_pepper_test_plugin/plugin.rc', |
| 712 | ], |
| 713 | }], |
| 714 | ], |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 715 | 'xcode_settings': { |
[email protected] | 705c329 | 2010-03-29 16:28:40 | [diff] [blame] | 716 | 'INFOPLIST_FILE': '<(DEPTH)/webkit/tools/npapi_pepper_test_plugin/Info.plist', |
[email protected] | d20dd3d2 | 2010-03-26 18:54:29 | [diff] [blame] | 717 | }, |
| 718 | }, |
[email protected] | fe474ed | 2009-08-21 22:24:43 | [diff] [blame] | 719 | ], |
[email protected] | 7e32d6b | 2009-11-03 20:21:13 | [diff] [blame] | 720 | }], |
[email protected] | 17d50be | 2010-02-25 10:05:12 | [diff] [blame] | 721 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 722 | 'targets': [ |
| 723 | { |
| 724 | 'target_name': 'test_shell_resources', |
| 725 | 'type': 'none', |
[email protected] | bc7510e8 | 2009-05-01 17:02:42 | [diff] [blame] | 726 | 'actions': [ |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 727 | { |
[email protected] | bc7510e8 | 2009-05-01 17:02:42 | [diff] [blame] | 728 | 'action_name': 'test_shell_resources', |
| 729 | 'variables': { |
| 730 | 'grit_path': '../../../tools/grit/grit.py', |
| 731 | 'input_path': './test_shell_resources.grd', |
| 732 | 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/test_shell', |
| 733 | }, |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 734 | 'inputs': [ |
[email protected] | bc7510e8 | 2009-05-01 17:02:42 | [diff] [blame] | 735 | '<(input_path)', |
[email protected] | b22189f | 2010-03-23 22:07:52 | [diff] [blame] | 736 | 'resources/linux-fontconfig-config', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 737 | ], |
| 738 | 'outputs': [ |
[email protected] | bc7510e8 | 2009-05-01 17:02:42 | [diff] [blame] | 739 | '<(out_dir)/grit/test_shell_resources.h', |
| 740 | '<(out_dir)/test_shell_resources.pak', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 741 | ], |
[email protected] | bc7510e8 | 2009-05-01 17:02:42 | [diff] [blame] | 742 | 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', '-o', '<(out_dir)'], |
| 743 | 'message': 'Generating resources from <(input_path)', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 744 | }, |
| 745 | ], |
| 746 | 'direct_dependent_settings': { |
| 747 | 'include_dirs': [ |
[email protected] | ef36c74c | 2009-03-11 13:32:22 | [diff] [blame] | 748 | '<(SHARED_INTERMEDIATE_DIR)/test_shell', |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 749 | ], |
| 750 | }, |
| 751 | }, |
| 752 | ], |
| 753 | }], |
[email protected] | 584adc2 | 2009-08-04 23:17:44 | [diff] [blame] | 754 | ['OS=="win"', { |
| 755 | 'targets': [ |
| 756 | { |
[email protected] | 04d2c30 | 2009-10-26 21:49:10 | [diff] [blame] | 757 | # Helper application that disables ClearType during the |
[email protected] | 584adc2 | 2009-08-04 23:17:44 | [diff] [blame] | 758 | # running of the layout tests |
| 759 | 'target_name': 'layout_test_helper', |
| 760 | 'type': 'executable', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 761 | 'variables': { |
| 762 | 'chromium_code': 1, |
| 763 | }, |
[email protected] | 584adc2 | 2009-08-04 23:17:44 | [diff] [blame] | 764 | 'sources': [ |
| 765 | 'win/layout_test_helper.cc', |
| 766 | ], |
| 767 | }, |
| 768 | ], |
| 769 | }], |
| 770 | ['OS=="mac"', { |
[email protected] | e10de00 | 2009-06-25 23:58:13 | [diff] [blame] | 771 | 'targets': [ |
| 772 | { |
| 773 | # Helper application that manages the color sync profile on mac |
| 774 | # for the test shells run by the layout tests. |
| 775 | 'target_name': 'layout_test_helper', |
| 776 | 'type': 'executable', |
[email protected] | 7cb9b9d | 2010-02-10 21:11:56 | [diff] [blame] | 777 | 'variables': { |
| 778 | 'chromium_code': 1, |
| 779 | }, |
[email protected] | e10de00 | 2009-06-25 23:58:13 | [diff] [blame] | 780 | 'sources': [ |
| 781 | 'mac/layout_test_helper.mm', |
| 782 | ], |
| 783 | 'link_settings': { |
| 784 | 'libraries': [ |
| 785 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 786 | ], |
| 787 | }, |
| 788 | }, |
[email protected] | 584adc2 | 2009-08-04 23:17:44 | [diff] [blame] | 789 | ], |
[email protected] | e10de00 | 2009-06-25 23:58:13 | [diff] [blame] | 790 | }], |
[email protected] | 40c3f52 | 2009-03-06 21:33:46 | [diff] [blame] | 791 | ], |
[email protected] | 2f80c31 | 2009-02-25 21:26:55 | [diff] [blame] | 792 | } |
[email protected] | f5c990c | 2009-10-06 03:02:38 | [diff] [blame] | 793 | |
| 794 | # Local Variables: |
| 795 | # tab-width:2 |
| 796 | # indent-tabs-mode:nil |
| 797 | # End: |
| 798 | # vim: set expandtab tabstop=2 shiftwidth=2: |