OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2009 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 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'includes': [ |
| 10 '../../../build/common.gypi', |
| 11 ], |
| 12 'targets': [ |
| 13 { |
| 14 'target_name': 'test_shell_common', |
| 15 'type': 'static_library', |
| 16 'sources': [ |
| 17 'mac/DumpRenderTreePasteboard.h', |
| 18 'mac/DumpRenderTreePasteboard.m', |
| 19 'mac/KeystoneGlue.h', |
| 20 'mac/KeystoneGlue.m', |
| 21 'mac/test_shell_webview.h', |
| 22 'mac/test_shell_webview.mm', |
| 23 'mac/test_webview_delegate.mm', |
| 24 'mac/webview_host.mm', |
| 25 'mac/webwidget_host.mm', |
| 26 'drag_delegate.cc', |
| 27 'drag_delegate.h', |
| 28 'drop_delegate.cc', |
| 29 'drop_delegate.h', |
| 30 'event_sending_controller.cc', |
| 31 'event_sending_controller.h', |
| 32 'foreground_helper.h', |
| 33 'layout_test_controller.cc', |
| 34 'layout_test_controller.h', |
| 35 'resource.h', |
| 36 'simple_resource_loader_bridge.cc', |
| 37 'simple_resource_loader_bridge.h', |
| 38 'test_navigation_controller.cc', |
| 39 'test_navigation_controller.h', |
| 40 'test_shell.cc', |
| 41 'test_shell.h', |
| 42 'test_shell_gtk.cc', |
| 43 'test_shell_mac.mm', |
| 44 'test_shell_platform_delegate.h', |
| 45 'test_shell_platform_delegate_gtk.cc', |
| 46 'test_shell_platform_delegate_mac.mm', |
| 47 'test_shell_platform_delegate_win.cc', |
| 48 'test_shell_request_context.cc', |
| 49 'test_shell_request_context.h', |
| 50 'test_shell_switches.cc', |
| 51 'test_shell_switches.h', |
| 52 'test_shell_win.cc', |
| 53 'test_webview_delegate.cc', |
| 54 'test_webview_delegate.h', |
| 55 'test_webview_delegate_gtk.cc', |
| 56 'test_webview_delegate_win.cc', |
| 57 'text_input_controller.cc', |
| 58 'text_input_controller.h', |
| 59 'webview_host.h', |
| 60 'webview_host_gtk.cc', |
| 61 'webview_host_win.cc', |
| 62 'webwidget_host.h', |
| 63 'webwidget_host_gtk.cc', |
| 64 'webwidget_host_win.cc', |
| 65 ], |
| 66 'dependencies': [ |
| 67 '../../../base/base.gyp:base', |
| 68 '../../../base/base.gyp:base_gfx', |
| 69 '../../../testing/gtest.gyp:gtest', |
| 70 '../../../skia/skia.gyp:skia', |
| 71 '../../../third_party/npapi/npapi.gyp:npapi', |
| 72 '../../webkit.gyp:glue', |
| 73 ], |
| 74 'conditions': [ |
| 75 ['OS!="linux"', {'sources/': [['exclude', '_gtk\\.cc$']]}], |
| 76 ['OS!="mac"', { |
| 77 'sources/': [ |
| 78 ['exclude', 'mac/[^/]*\\.(cc|mm?)$'], |
| 79 ['exclude', '_mac\\.(cc|mm?)$'], |
| 80 ] |
| 81 }], |
| 82 ['OS=="win"', { |
| 83 'include_dirs': [ |
| 84 '../../../breakpad/src', |
| 85 ], |
| 86 'msvs_disabled_warnings': [ 4800 ], |
| 87 }, { # OS!=win |
| 88 'sources/': [ |
| 89 ['exclude', '_win\\.cc$'] |
| 90 ], |
| 91 'sources!': [ |
| 92 'drag_delegate.cc', |
| 93 'drop_delegate.cc', |
| 94 ], |
| 95 }], |
| 96 ], |
| 97 }, |
| 98 { |
| 99 'target_name': 'test_shell', |
| 100 'type': 'application', |
| 101 'sources': [ |
| 102 'test_shell_main.cc', |
| 103 ], |
| 104 'mac_bundle_resources': [ |
| 105 '../../data/test_shell/', |
| 106 'mac/English.lproj/InfoPlist.strings', |
| 107 'mac/English.lproj/MainMenu.nib', |
| 108 'mac/Info.plist', |
| 109 'mac/test_shell.icns', |
| 110 'resources/AHEM____.TTF', |
| 111 ], |
| 112 'mac_bundle_resources!': [ |
| 113 # TODO(mark): Come up with a fancier way to do this (mac_info_plist?) |
| 114 # that automatically sets the correct INFOPLIST_FILE setting and adds |
| 115 # the file to a source group. |
| 116 'mac/Info.plist', |
| 117 ], |
| 118 'dependencies': [ |
| 119 'test_shell_common', |
| 120 '../../../base/base.gyp:base', |
| 121 '../../../net/net.gyp:net', |
| 122 '../../webkit.gyp:glue', |
| 123 ], |
| 124 'xcode_settings': { |
| 125 'INFOPLIST_FILE': 'mac/Info.plist', |
| 126 }, |
| 127 'conditions': [ |
| 128 ['OS=="mac"', {'product_name': 'TestShell'}], |
| 129 ], |
| 130 }, |
| 131 { |
| 132 'target_name': 'test_shell_tests', |
| 133 'type': 'executable', |
| 134 'sources': [ |
| 135 '../../../skia/ext/convolver_unittest.cc', |
| 136 '../../../skia/ext/platform_canvas_unittest.cc', |
| 137 '../../../skia/ext/vector_canvas_unittest.cc', |
| 138 '../../glue/bookmarklet_unittest.cc', |
| 139 '../../glue/context_menu_unittest.cc', |
| 140 '../../glue/cpp_bound_class_unittest.cc', |
| 141 '../../glue/cpp_variant_unittest.cc', |
| 142 '../../glue/dom_operations_unittest.cc', |
| 143 '../../glue/dom_serializer_unittest.cc', |
| 144 '../../glue/glue_serialize_unittest.cc', |
| 145 '../../glue/iframe_redirect_unittest.cc', |
| 146 '../../glue/mimetype_unittest.cc', |
| 147 '../../glue/multipart_response_delegate_unittest.cc', |
| 148 '../../glue/password_autocomplete_listener_unittest.cc', |
| 149 '../../glue/regular_expression_unittest.cc', |
| 150 '../../glue/resource_fetcher_unittest.cc', |
| 151 '../../glue/unittest_test_server.h', |
| 152 '../../glue/webframe_unittest.cc', |
| 153 '../../glue/webplugin_impl_unittest.cc', |
| 154 '../webcore_unit_tests/BMPImageDecoder_unittest.cpp', |
| 155 '../webcore_unit_tests/GKURL_unittest.cpp', |
| 156 '../webcore_unit_tests/ICOImageDecoder_unittest.cpp', |
| 157 '../webcore_unit_tests/UniscribeHelper_unittest.cpp', |
| 158 '../webcore_unit_tests/XBMImageDecoder_unittest.cpp', |
| 159 'image_decoder_unittest.cc', |
| 160 'image_decoder_unittest.h', |
| 161 'keyboard_unittest.cc', |
| 162 'layout_test_controller_unittest.cc', |
| 163 'node_leak_test.cc', |
| 164 'plugin_tests.cc', |
| 165 'run_all_tests.cc', |
| 166 'test_shell_test.cc', |
| 167 'test_shell_test.h', |
| 168 'text_input_controller_unittest.cc', |
| 169 ], |
| 170 'dependencies': [ |
| 171 'test_shell_common', |
| 172 '../../../base/base.gyp:base', |
| 173 '../../../net/net.gyp:net', |
| 174 '../../../skia/skia.gyp:skia', |
| 175 '../../../testing/gtest.gyp:gtest', |
| 176 '../../webkit.gyp:glue', |
| 177 ], |
| 178 'conditions': [ |
| 179 ['OS=="win"', { |
| 180 'msvs_disabled_warnings': [ 4800 ], |
| 181 }, { # OS!=win |
| 182 'sources!': [ |
| 183 '../../../skia/ext/vector_canvas_unittest.cc', |
| 184 '../webcore_unit_tests/UniscribeHelper_unittest.cpp', |
| 185 'plugin_tests.cc' |
| 186 ], |
| 187 }], |
| 188 ], |
| 189 }, |
| 190 ], |
| 191 } |
OLD | NEW |