OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 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") |
| 6 import("//build/config/ui.gni") |
| 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") |
| 9 } |
| 10 |
| 11 static_library("test_runner") { |
| 12 testonly = true |
| 13 sources = [ |
| 14 "accessibility_controller.cc", |
| 15 "accessibility_controller.h", |
| 16 "app_banner_client.cc", |
| 17 "app_banner_client.h", |
| 18 "event_sender.cc", |
| 19 "event_sender.h", |
| 20 "gamepad_controller.cc", |
| 21 "gamepad_controller.h", |
| 22 "mock_color_chooser.cc", |
| 23 "mock_color_chooser.h", |
| 24 "mock_constraints.cc", |
| 25 "mock_constraints.h", |
| 26 "mock_credential_manager_client.cc", |
| 27 "mock_credential_manager_client.h", |
| 28 "mock_grammar_check.cc", |
| 29 "mock_grammar_check.h", |
| 30 "mock_screen_orientation_client.cc", |
| 31 "mock_screen_orientation_client.h", |
| 32 "mock_spell_check.cc", |
| 33 "mock_spell_check.h", |
| 34 "mock_web_audio_device.cc", |
| 35 "mock_web_audio_device.h", |
| 36 "mock_web_media_stream_center.cc", |
| 37 "mock_web_media_stream_center.h", |
| 38 "mock_web_midi_accessor.cc", |
| 39 "mock_web_midi_accessor.h", |
| 40 "mock_web_speech_recognizer.cc", |
| 41 "mock_web_speech_recognizer.h", |
| 42 "mock_web_theme_engine.cc", |
| 43 "mock_web_theme_engine.h", |
| 44 "mock_web_user_media_client.cc", |
| 45 "mock_web_user_media_client.h", |
| 46 "mock_webrtc_data_channel_handler.cc", |
| 47 "mock_webrtc_data_channel_handler.h", |
| 48 "mock_webrtc_dtmf_sender_handler.cc", |
| 49 "mock_webrtc_dtmf_sender_handler.h", |
| 50 "mock_webrtc_peer_connection_handler.cc", |
| 51 "mock_webrtc_peer_connection_handler.h", |
| 52 "spell_check_client.cc", |
| 53 "spell_check_client.h", |
| 54 "test_common.cc", |
| 55 "test_common.h", |
| 56 "test_interfaces.cc", |
| 57 "test_interfaces.h", |
| 58 "test_plugin.cc", |
| 59 "test_plugin.h", |
| 60 "test_preferences.cc", |
| 61 "test_preferences.h", |
| 62 "test_runner.cc", |
| 63 "test_runner.h", |
| 64 "text_input_controller.cc", |
| 65 "text_input_controller.h", |
| 66 "web_ax_object_proxy.cc", |
| 67 "web_ax_object_proxy.h", |
| 68 "web_content_settings.cc", |
| 69 "web_content_settings.h", |
| 70 "web_frame_test_proxy.h", |
| 71 "web_task.cc", |
| 72 "web_task.h", |
| 73 "web_test_delegate.h", |
| 74 "web_test_interfaces.cc", |
| 75 "web_test_interfaces.h", |
| 76 "web_test_proxy.cc", |
| 77 "web_test_proxy.h", |
| 78 "web_test_runner.h", |
| 79 ] |
| 80 |
| 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 82 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 83 |
| 84 deps = [ |
| 85 ":resources", |
| 86 "//base", |
| 87 "//base:base_static", |
| 88 "//cc", |
| 89 "//gin", |
| 90 "//skia", |
| 91 "//third_party/WebKit/public:blink", |
| 92 "//ui/events:events_base", |
| 93 "//ui/gfx", |
| 94 "//ui/gfx/geometry", |
| 95 "//v8", |
| 96 |
| 97 #'copy_test_netscape_plugin', TODO(GYP) |
| 98 ] |
| 99 } |
| 100 |
| 101 # Font copies. |
| 102 if (!is_mac) { |
| 103 copy("copy_ahem") { |
| 104 visibility = [ ":*" ] |
| 105 sources = [ |
| 106 "resources/fonts/AHEM____.TTF", |
| 107 ] |
| 108 outputs = [ |
| 109 "$root_out_dir/AHEM____.TTF", |
| 110 ] |
| 111 } |
| 112 } |
| 113 if (use_x11) { |
| 114 copy("copy_x11_fonts") { |
| 115 visibility = [ ":*" ] |
| 116 sources = [ |
| 117 "//third_party/gardiner_mod/GardinerModBug.ttf", |
| 118 "//third_party/gardiner_mod/GardinerModCat.ttf", |
| 119 "resources/fonts/fonts.conf", |
| 120 ] |
| 121 outputs = [ |
| 122 "$root_out_dir/{{source_file_part}}", |
| 123 ] |
| 124 } |
| 125 } |
| 126 if (is_android) { |
| 127 copy("copy_android_fonts") { |
| 128 visibility = [ ":*" ] |
| 129 sources = [ |
| 130 "resources/fonts/android_fallback_fonts.xml", |
| 131 "resources/fonts/android_main_fonts.xml", |
| 132 ] |
| 133 outputs = [ |
| 134 "$root_out_dir/{{source_file_part}}", |
| 135 ] |
| 136 } |
| 137 } |
| 138 |
| 139 group("resources") { |
| 140 deps = [] |
| 141 |
| 142 if (is_mac) { |
| 143 # TODO(GYP) Mac bundle resources. |
| 144 #'all_dependent_settings': { |
| 145 # 'mac_bundle_resources': [ |
| 146 # 'resources/fonts/AHEM____.TTF', |
| 147 # 'resources/fonts/ChromiumAATTest.ttf', |
| 148 # '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png', |
| 149 # '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png', |
| 150 # ], |
| 151 #}, |
| 152 } else { |
| 153 deps += [ ":copy_ahem" ] |
| 154 } |
| 155 |
| 156 if (use_x11) { |
| 157 deps += [ ":copy_x11_fonts" ] |
| 158 } |
| 159 if (is_android) { |
| 160 deps += [ ":copy_android_fonts" ] |
| 161 } |
| 162 } |
| 163 |
| 164 if (is_mac || is_win) { |
| 165 # GYP version: components/test_runner/test_runner.gyp:layout_test_helper |
| 166 executable("layout_test_helper") { |
| 167 sources = [ |
| 168 "helper/layout_test_helper_mac.mm", |
| 169 "helper/layout_test_helper_win.cc", |
| 170 ] |
| 171 |
| 172 if (is_mac) { |
| 173 libs = [ "AppKit.framework" ] |
| 174 } |
| 175 } |
| 176 } |
OLD | NEW |